How do I design a microservice architecture with Laravel?
@moseskamau338 Laravel is a full-stack framework. It’s not suited for microservices in my opinion.
How would database relationships work?
If you’re asking this, then you don’t need micro-services. If you have related data that doesn’t have a clear boundary, then you should not be separating those codebases at all. All you’re doing is moving your database joins to be over HTTP, which is the worse thing you can do and the network is the slowest form of transferring data in the computing stack.
Don’t jump on the microservices train Just Because™. You should only be using microservices where you’re absolutely sure you need them, because they introduce far more problems than they solve. If you’re in any way unsure you need microservices, then you most likely don’t. And from the project you’ve described, there’s very little to make me think you actually need microservices.
My rule of thumb is, if you have a model that depends or needs a model in another “service”, then there is not a boundary between those two entities and they should not be in separate services.