I have a project with several services: multiple services for different sync tasks and one service for an API. All of them make requests to the same database, which is hosted outside of Render. The sync services make a lot of DB queries, but the API service only receives a couple of requests per second.
The problem I am facing is that the response time of the API is very high (~8 seconds), and I found that the reason for that is that each DB request is taking about 4 seconds to respond (so 4 for the authentication request plus 4 for the actual API request query).
I already confirmed that the issue is not in the queries themselves, as they are at most taking around 100ms to execute. The issue is definitely in the communication between Render and the DB host.
The geographical distance between the servers is also not the culprit, as I’ve already tested deploying the same API into another cloud platform in the same region that the Render’s host is, and I do not face that high request latency there.
So my hunch is that the multiple services doing requests to the same DB host is the reason I am experiencing this slowness. However, I could not find anywhere in Render’s doc if services under the same project will compete for network bandwidth. Hence, the question from the title:
Do services under same project compete for resources?