Laravel Booting is slow.

Hello, All I have been using DO Droplet as a de-facto standard for my Laravel Application, and to be frank, they are working pretty much smoothly. Now for much scalability option, I have created a demo application on DO Apps but its performance is slow compared to the droplet. Is there any way I can improve boot time for larvel apps ?

Booting Time 99 millisecond 1.2 second

is there any tweaks I can do to improve performance?

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
March 5, 2023

Hi there,

I could suggest a couple of things:

  • Make sure that you use a Managed Database cluster rather than a Dev Database.
  • Consider using a Redis cluster for your caching and sessions, that way the Laravel containers will not have to write all files to the local ephemeral storage.
  • Make sure that the web component container has enough memory.
  • Add php artisan optimize to your run command so that you could take advantage of the standard Laravel optimization features.

Let me know how it goes!



Yes, there are several ways to improve the boot time of a Laravel application on DO Apps. Here are some suggestions:

Use a smaller application stack: Use a smaller stack for your application that includes only the essential components required by your application. This will reduce the time taken for the application to start up.

Optimize your code: Ensure that your code is optimized to minimize the amount of time it takes for the application to start up. This can include things like reducing the number of queries made to the database, using caching, and optimizing the code for faster execution.

Use a CDN: Using a content delivery network (CDN) can help to reduce the time it takes for your application to load by delivering content from the closest server to the user.

Try DigitalOcean for free

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

Sign up

card icon
Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Sign up
card icon
Hollie's Hub for Good

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

Learn more
card icon
Become a contributor

You get paid; we donate to tech nonprofits.

Learn more
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