Report this

What is the reason for this report?

What cloudflare settings does App Platform use?

Posted on March 8, 2021

I was testing my rest api deployed to app platform and noticed that after spamming requests quickly one after another my response times increased i.e. 200ms, 400ms, 2s, 3s and stayed at 3s afterwards. After waiting for few seconds and making another request it was back to 200ms

Looking at my server insights, I don’t see any stress on resources at all so I am assuming this delay is applied by cloudflare?

If so, is there any documentation or reference about this and perhaps any other cloudflare related behaviour users should be aware of?



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Heya,

Just came across this answer and decided to write some general guidelines for anyone who comes across this in the future despite the old question.

The App Platform uses Cloudflare under the hood to provide reverse proxy services and enhance security. Cloudflare may employ certain measures like rate limiting to prevent potential abuse of resources. This might be the reason you’re observing an increase in response times after sequential rapid requests.

Regarding documentation specific to DigitalOcean’s implementation of Cloudflare, there isn’t any available because the specifics of that configuration are managed internally by DigitalOcean. The best approach here will be to reach out to our support team and they will be more than happy to assist you.

If you would like to delve deeper into potential solutions for the behavior you are observing, it would be recommended to look into optimizing your API or considering the use of caching strategies.

For information about improving performance and decreasing response times, check this tutorial on how to optimize Nginx configuration in DigitalOcean’s community tutorials section, which may provide some useful insights.

Hope that this helps!

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.