hadron-project / hadron

The Kubernetes native and CloudEvents native distributed event streaming, event orchestration & messaging platform
https://hadron-project.github.io/hadron/
Apache License 2.0
36 stars 2 forks source link

Scalable write throughput #38

Closed thedodd closed 3 years ago

thedodd commented 3 years ago

In GitLab by @doddzilla on Nov 28, 2020, 14:20

abstract

The main consideration here is that we want stream writing throughput to be scalable. With a single raft, throughput will degrade as more streams are added with high writes. If each stream were to have its own raft group, then the raft could be isolated to a few nodes, and other streams with high writes will be moved to other nodes.

The primary difficulty to be addressed with this design is that we will need to implement a distributed transactions system to work with pipelines & the transaction system overall.

We will quite likely need a transaction raft which will be authoritative on the state of transactions, and then follow CockroachDB's design on distributed transactions from there.


thedodd commented 3 years ago

In GitLab by @doddzilla on Nov 28, 2020, 14:27

changed the description

thedodd commented 3 years ago

In GitLab by @doddzilla on Nov 28, 2020, 14:29

changed the description

thedodd commented 3 years ago

Done.