Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

YoussefMaged's avatar

SaaS Product implemented in Microservices/CQRS and Multi-Tenancy?

Hi, this is my first time asking here on the forms, I'm about to start a relatively large SaaS product for social media marketing, and I want to approach it with the best architecture possible to help me scale it easier in the future and integrate with multiple social media networks APIs, also, I'm thinking of implementing Multi-Tenancy on it, so what's the best architecture for it? Microservices? CQRS? Or other architectures, also, I can't think of how the implementation of any of these architectures works with Multi-Tenancy - especially tenancyforlaravel package - with Laravel Framework, will it also be possible to use packages like Spark, Socialite, and Nova in this approach?

0 likes
7 replies
MohamedTammam's avatar

My first approach is to use as basic architecture as possible, and then scale only when needed. Because only then you will know what do you need to do.

YoussefMaged's avatar

@MohamedTammam If I started with a monolithic approach, when my product starts scaling, breaking this monolith to microservices would be a hassle, that's why.

MohamedTammam's avatar

@YoussefMaged If it didn't scale and you start with Microservices, it's also a hassle. Keep in mind that when it scales, mostly you're going to have more budget. But now if you start simple you're going to have better vision and MVP quickly.

Please or to participate in this conversation.