3 ms·
We do this for several key elements of a high throughput service. It keeps the critical path local only. The flow is to dual write to our rdms and a local proc
by sb8244 7y ago
We do this for several key elements of a high throughput service. It keeps the critical path local only.
The flow is to dual write to our rdms and a local process. The process either stores in ETS or an process state map. It also broadcasts out the event to the cluster. When a node in the cluster gets a message, it executes on it. Process startup is restored from the DB which is still authority.
Generally this is really easy to do in Elixir. Maybe 50 lines of code for the system described (minus DB code), much of it definition lines.