Skip to content

Idea for horizontal scaling #1

@schaier-io

Description

@schaier-io

Maybe add a CLI argument (index and parallel_count) to have multiple instance running in parallel.

This could be achived by having each instance only handle the IPFS hashes which correspond to the index after running them through a proper splitting algorithm.

The algorithm should split each IPFS hash into different buckets by equal probability, this in the simplest form might be implemented by something like converting the hash into a number and taking it modulo the parallel_count.

However one must take into account, that there might be some occurrences in the hash wich are more likely (especially if a special prefix is used) Therefore it might be a possibility to hash the data again beforehand. The new hashing algorithm of course must allow for proper splitting.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions