Very slow (~ 1000ms) response time. Heroku. node.js. mongolab. does almost nothing

With a free account on Heroku and a free account on MongoLab (not with the Heroku plugin) I get ~ 1000ms response time per request (one user, that's just me still referring to all requests, not just the first one after a long downtime ). I checked on my own computer + the same free MongoLab account and I get ~ 168ms for the same type of queries. Although he is still tall, I want to ask about Iroku. Is it wise to have such a bad response time, even with a free account. Will the response times be significantly better if I pay them?

Mongoose, MongoDB (node.js) Native driver.

Do you have any idea for me what to check?

+3


source to share


1 answer


MongoLab helped me figure out that my database is defined in Europe and the server (Heroku) is in the US. They also told me how to clone an existing database to a new one at us-east-1 (from their web console).



+7


source







All Articles