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 Tme||DO DROPLET||DO APPS|
|Booting Time||99 millisecond||1.2 second|
is there any tweaks I can do to improve performance?
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.
Click below to sign up and get $200 of credit to try our products over 60 days!
I could suggest a couple of things:
php artisan optimizeto 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.