Skip to content

Proposal: Swarm DB - Router #84

@molekilla

Description

@molekilla

Swarm DB - Router

Swarm DB Router

Summary

A Router in Swarm DB handles compute queries that required certain amount of complexity and query planning. For simple queries with Beeson Query Language, that won't require extensive reference lookups or transform, a direct query planning estimation is enough and does not require a router.

For any other type of transaction or execution, like eg data / index jobs or work orders, availability and query planning will be required to query a router.

Guide-level explanation

Defining a registry of compute node

As specified in Swarm DB - Compute Node, a node takes care of data computations that takes certain amount of resources and complexity. Each compute node must register in a smart contract registry and be assigned an ENS name. Using EIP-3668, a off-chain call is made with a polling mechanism to get the liveness and compute cycles of the node (WASM) engine. A node also needs to implement EIP-5559: Cross Chain Write Deferral Protocol to accept storage tasks

There are two types of nodes as described in Swarm DB - Indexing and computing, indexing and compute nodes.

Router goals and use cases

  • Lookup availability of EIP-5559 nodes and which type
  • Lookup available data computing resources

Copyright

Copyright and related rights waived via CC0.

Author

@molekilla (Rogelio Morrell)

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions