fairDataSociety / fdp-contracts

Fair Data Protocol smart contracts and its utilities
4 stars 1 forks source link

Proposal: Swarm DB - Indexing and computing queries, jobs and work orders #86

Open molekilla opened 2 years ago

molekilla commented 2 years ago

Swarm DB - Indexing and Computing

Swarm DB Indexing and Computing

Summary

A node handles data work orders assing by a router. A database to be useful, besides basic simple queries, requires data indexing, data ETL and batch or recurring jobs.

Given that a node might be a web browser, a mobile phone or a server, not any node can handle any kind of job. In this proposal we define two basic kind of nodes: an indexing and a computing node.

Guide-level explanation

Indexing

Similar to existing protocols like The Graph, where a GraphQL schema is used to index smart contracts, indexing uses a Beeson schema and Beeson Query Language, to index Beeson objects.

Computing

WASM Executables linked to Work Orders are used for data computing use cases. See Swarm DB - Compute Node for more information.

Copyright

Copyright and related rights waived via CC0.

Author

@molekilla (Rogelio Morrell)