Answer the question
In order to leave comments, you need to log in
How to make a large database hold the load?
Good day to all!
I am launching my cloud platform, the code and architecture are created from scratch.
The essence of my DBaaS: shared-server, users create databases with the prefix "username_"
Provided DBMS: MySQL, PostgreSQL.
One question arose: how to shard / replicate database servers so that for the user there are no differences from a server without scaling tools?
For example: a user writes some kind of request and he does not need to specify which server to send or where to read from, for him this is one server.
Thanks in advance)
Answer the question
In order to leave comments, you need to log in
Oooh .... Are you serious now?
If you are running a DBaaS platform and don't know what to do with the databases, then you don't have
I am launching my cloud platform, the code and architecture are created from scratch.
For example: a user writes some kind of request and he does not need to specify which server to send or where to read from, for him this is one server.
select somefunc();
begin isolation level repeatable read;
select ...
update ...
commit;
Use connection pullers and load balancers. For example haproxy and pgbouncer for pgsql.
Study materials, articles, conduct research on suitable options.
Here is an article with an example from percona, maybe a good starting point https://www.percona.com/blog/2018/10/02/scaling-po...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question