Using parse with multiple dynos in heroku

Hi. We’re experiencing some issues in heroku with load balancing and one of the reasons is that all our cloud functions keep using external server url to store data in db, which causes cloud function on one dyno invoke multiple other dynos. Is there a way to avoid this and keep all database requests on same dyno that is running the cloud function?

Yes. You can try to pass the option directAccess: true in your ParseServer initialization. Please, make sure to test it before going to production since it is an experimental feature.

1 Like

Thank you! Seems like what we need. Is it already available in 4.2 version of cloud code?

Yes. It is out there for a while and for sue in the 4.2. Discussions are in place to make it set true by default.

1 Like