Question

app platform slow startup?

Every time I click on the link of my project it starts slow, it takes more than 10s load the first time, then it loads normally until there is inactivity. Then it’s slowing down again. check the site: browsedocs.com. It takes forever to load the first time.

How to stop the app platform from shutting down after a few seconds of inactivity?

Thanks

Show comments

Submit an answer


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!

Sign In or Sign Up to Answer

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.

Bobby Iliev
Site Moderator
Site Moderator badge
December 8, 2023

Hi there,

It’s unusual for applications hosted on the DigitalOcean App Platform to experience significant delays in startup time after periods of inactivity, as the services on the platform are designed to run continuously.

This contrasts with serverless functions, where ‘cold starts’ can occur due to their on-demand resource allocation. After testing your application, I haven’t been able to replicate the slow-loading issue you described. The problem might be due to other factors unrelated to the typical operation of the App Platform.

Are you utilizing a serverless function in your app? If this is the case, you can implement a scheduled job (like a cron job) to invoke the function at regular intervals. This keeps the function ‘warm’ by ensuring that it’s executed periodically, thus reducing the likelihood of a cold start.

Hope that this helps!

Best,

Bobby

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel