Simply put, "it doesn't matter."
Depending on what suits you.
At the API level, DB services do not exist, and this is just an implementation detail.
If the API is executed correctly, the database implementation should not โleakโ through the client API layer.
As soon as you reach this level of the API, you can leave the database โas isโ (if it is functioning, executing, supporting, etc.), or you can start breaking everything up at once, or gradually.
Obviously, a database break will have its own problems and problems.
So, I would start with services and their APIs, and making sure that you and your customers are happy with these. Only this process can make your decision for you.
source share