←back to thread

234 points benocodes | 1 comments | | HN request time: 0s | source
Show context
sandGorgon ◴[] No.41837780[source]
so how does an architecture like "2100 clusters" work. so the write apis will go to a database that contains their data ?

how is this done - like a user would have history, payments, etc. are all of them colocated in one cluster ? (which means the sharding is based on userid) ?

is there then a database router service that routes the db query to the correct database ?

replies(2): >>41837941 #>>41838866 #
1. bob1029 ◴[] No.41837941[source]
I imagine it works just like any multi-tenant SaaS product wherein you have a database per customer (region/city) with a unified web portal. The primary difference being that this is B2C and the ratio of customers per database is much greater than 1.