dylansp / miscd Goto Github PK
View Code? Open in Web Editor NEWA distributed, sharded key-value store for learning how to build distributed systems.
License: MIT License
A distributed, sharded key-value store for learning how to build distributed systems.
License: MIT License
REST endpoints for clients:
/api
/api/kv
/api/locks
)/api/kv
, such as /api/kv/locks
or /api/kv/:keyID/lock
If I use REST for Raft intra-cluster communication:
/raft
GET /raft/status
- debugging, returns node state, any other metadata I wantPOST /raft/entries
- AppendEntries RPCPOST /raft/poll
- RequestVote RPCSee section 7 of the Raft paper.
Should show Raft cluster state, provide key-value interface.
Right now, the routes for Raft RPCS are planned to be publicly exposed, which is an obvious safety/security flaw. They should be locked down to only allow communication from other nodes in the cluster.
Note: this should only affect the endpoints for the RequestVote and AppendEntries RPCs. Information-only status endpoints should be publicly exposed.
https://notes.eatonphil.com/distributed-postgres.html
Fundamental ideas of the post/the linked hashicorp Raft library:
FSM
) that consumers of the Raft library should implement, providing an Apply()
operation for applying a log entry to the local state machine (and optionally, Snapshot()
and Restore()
for optimization).NewRaft()
) that takes an FSM
implementation and a locally-determined (but globally-unique) server ID, and returns a local Raft instance.Apply()
method (note - distinct from the FSM Apply()
method) that takes application data as a byte array (opaque to the Raft library), and attempts to apply it to the Raft cluster's distributed log.
Other notes:
https://github.com/jepsen-io/maelstrom for general testing
https://github.com/jepsen-io/etcd for etcd-specific stuff, if I implement that API
v1 will store data purely in memory, causing data to be lost on restarts. Some later version should store data in local persistent storage, probably as a SQLite database.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.