Reputation: 7768
Is sharing database with multiple serverless functions good practice?
Like in a CRUD application, normally the Create, Update, Delete and Read are different operations sharing the same database. If we migrate that idea on serverless, is that still ideal? All of those operations accessing the same database.
My hesitation comes from the idea of sharing databases between different microservices. Since that increases coupling and makes things more fragile.
Upvotes: 9
Views: 1749
Reputation: 932
The answer to this question is dependent on the circumstances of both the database and the operations.
These concerns can be boiled down to the following characteristics of the database:
In most cases, the first two bullets are most important, since limitations normally are not reached except for a few rare cases.
Upvotes: 5