Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal: Swarm DB - Router #84

Open
molekilla opened this issue Sep 14, 2022 · 0 comments
Open

Proposal: Swarm DB - Router #84

molekilla opened this issue Sep 14, 2022 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@molekilla
Copy link
Contributor

molekilla commented Sep 14, 2022

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)

@crtahlin crtahlin added the documentation Improvements or additions to documentation label Sep 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants