p_consti
@p_consti@lemmy.world
This is a remote user, information on this page may be incomplete. View at Source ↗
Programming and reading.
- Comment on How do you manage you DB in a docker environment? 2 days ago:
I typically have one DB service per app service (not just ler cluster, unless multiple services need the same db).
Advantages:
- Simple backup/data organization, each service is self-contained
- True isolation: Unless you manually create DB accounts for each service, likely all your services have access to all data, and even with accounts there are data leaks and exploits
Disadvantages:
- You have more services running than strictly needed, but this is a minuscule impact on performance (the overhead of the DB service is typically not noticable)