Recently I migrated the Parse Server backed for one of the applications I was developing to Heroku and since Parse Server became open
continued to use it as the backend server.
I noticed an issue that wasn't mentioned in many places on the web. The server timeout response
seem to be not handled properly out of the box and the server was crashing if a long process didn't
finish execution for whatever reason.
To be able to handle this (thanks for help from Heroku guys), I wrote the below code using node.js
on server side:
By doing so, if a process takes longer than 4 seconds, it is automatically killed, allowing your server
to remain up and alive.
I hope this helps someone out there.