REST API Performance issue

Hai All, In our project, we have an Rest API which perform fast if we interact continuously but if we keep ideal for some time then it will take some time to fetch the data. kindly help me to sort out this performance issue
1 answers

Are you using a Free App on the Mendix Cloud to host this REST API? 

If you are using Free Apps these go to sleep after an hour of inactivity, so if you access them after that they will take a while to respond.

Hope this helps.