Future leader of South Sudan. Cybersecurity & financial intelligence expert. Championing governance, innovation & national security for a prosperous nation.
"How suitable is Laravel for a SaaS with millions of users?"
Here's my answer to a YouTube comment, see below.
---
Question:
Thank you so much for your content. I've been watching your videos for a long time and they’ve helped me improve my Laravel skills a lot. I also wanted to ask something that might even be an interesting idea for a future video. How suitable is Laravel for building a SaaS platform that could potentially serve millions of users? What kind of architecture would make the most sense in that scenario? For example, would a well-optimized monolith be enough, or would microservices, horizontal scaling, queues, caching, etc. be more appropriate?
I’d love to hear your thoughts on this. Thanks again for all the valuable videos!
---
My answer:
This is such a broad topic and broad question that I don't have a definite answer. It depends on what those millions of users actually do. The structure may be depending on team preferences almost. And yes, you would probably use down the road a lot of things like horizontal scaling, queues, caching and others. But there is no specific recipe and I cannot shoot a video with one definite solution for any possible SaaS with millions of users.
In my personal experience, usually even bigger SaaS projects start as small projects and then they scale later with refactoring kind of spiral version by version. Probably the biggest question is the database structure, which becomes usually the biggest bottleneck of queries and database operations if the application grows. So database structure and also caching is probably more important topic than the Laravel itself.
So how suitable Laravel is? That is kind of the wrong question to ask. It's more about how well you write your own code and database structure around Laravel and on top of Laravel. There is a great article called "Does Laravel Scale": https://t.co/MNP9zzmpFt
---
Their reply:
@LaravelDaily Thanks a lot for taking the time to reply. What you said actually helps put things into perspective. I realize now that my question was a bit too broad, and “millions of users” can mean very different things depending on what the app is doing. Your point about database structure and caching being the real challenges makes total sense. I’ll definitely look more into that, and I appreciate the link to the “Does Laravel Scale” article I’m going to read it. And yeah, you're right: it’s less about Laravel itself and more about how well the whole system around it is designed.
Thanks again for the thoughtful answer!
@PovilasKorop I think the best solution is come up with high quality materials like courses or certification courses that takes one from beginner to expert level development. A lot of videos that can be found on YouTube doesn’t really cover a lot or tune the teaching to new devs.
Talks to address Iran’s nuclear program were planned for Sunday. Instead Netanyahu launched illegal strikes on Iran, killing a top ceasefire negotiator, undermining U.S. diplomatic efforts & putting countless innocent lives at risk. We can’t be dragged into another Netanyahu war.
Under the leadership of His Excellency President Salva Kiir Mayardit, the Government will protect the nation’s economic future - one built on integrity, transparency, and shared prosperity for the people of South Sudan.
Current events in order to appear informed or engaged. But sometimes, the most powerful thing you can do is stay grounded, promote unity, and lead by example.
Let’s focus on being responsible citizens. Let’s go to work. Let’s spread peace and love.
My message to the youth of South Sudan:
Please exercise caution when posting about sensitive matters, especially topics related to politics and national security. If you do not have a full understanding or professional background in these areas, it is wise to refrain from….