2 ms·
The article mentions microservices, which can increase the likelihood of collisions in sequential incremental keys. One more reason to stay away from microserv
by grim_io 10mo ago
The article mentions microservices, which can increase the likelihood of collisions in sequential incremental keys.
One more reason to stay away from microservices, if possible.
- mrkeen 10mo agoThe 'collision' is two service classes both trying to use one db. If you separate them (i.e. microservices) the they no longer try to use one db.
- grim_io 10mo agoThere is nothing stopping multiple microservices from using the same DB, so of course this will happen in practice. Sometimes it might even be for a good reason.
- bardsore 10mo agoAlways try to avoid having two services using the same DB. Only way I'd ever consider sharing a DB is if only one service will ever modify it and all others only read.
- grim_io 10mo agoGood luck enforcing that :)