logoalt Hacker News

grim_iolast Monday at 11:23 AM2 repliesview on HN

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.


Replies

bardsorelast Monday at 11:28 AM

Always 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.

show 1 reply
mrkeenlast Monday at 11:46 AM

The '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.

show 1 reply