3 ms·
Normally we talk about these things in terms of CAP: consistency, availability, and partition tolerance. Systems with a central server avoid problems of partit
by pjc50 9y ago
Normally we talk about these things in terms of CAP: consistency, availability, and partition tolerance.
Systems with a central server avoid problems of partition tolerance and consistency just fine. It's the availability that's a problem. The system cannot operate without the central server. Whether this is a problem in your use case depends on your use case. Nationwide financial system? Aerospace control system? You probably care a lot about availability and can't use the central server model.
(Although ironically a large part of how stock exchange clearing works is imposing an order on transactions and reconciling the result at the end of the day)
- burntsushi 9y agoYeah that is a good take! Thanks. Do you have any links to (relatively?) accessible reading on how stock exchange clearing works? That sounds like an interesting application of exactly this sort of problem that I'd like to learn more about.
- pjc50 9y agoYou could have a look at https://www.lseg.com/areas-expertise/our-markets/turquoise/equities/tq-technology https://www.lseg.com/areas-expertise/our-markets/turquoise/e... although I don't know if I'd call it "accessible". "Clearing" in general is a pre-digital technique for resolving concurrency. Someone writes a cheque for payment and puts a date on it, then exchanges it for goods; at some point later, it reaches the single, central ledger of that customer's bank account which is updated to reflect the transaction. I'll also reccommend https://martinfowler.com/articles/lmax.html https://martinfowler.com/articles/lmax.html , because it's an interesting architecture with a similar approach of just routing all the operations through in series, but with a number of producer/consumers attached to a ring buffer.