Laravel-microservices-starter

Muhammad Ahmed
Published

0
  • Project creator

A production-ready microservices boilerplate built with Laravel and Docker. Demonstrates how to decompose a monolith into independent services that communicate via both REST HTTP and RabbitMQ message queues. Designed as a reference architecture for senior engineers building distributed systems.

Communication Patterns
REST (synchronous)
Used when a service needs an immediate response:

API Gateway → User Service (proxy user requests)
API Gateway → Order Service (proxy order requests)
Order Service → User Service (verify user exists before creating order)
RabbitMQ (asynchronous)
Used for fire-and-forget events that don’t need an immediate response:

User Service publishes user.registered → Notification Service sends welcome email
Order Service publishes order.created → Notification Service sends order confirmation
Order Service publishes order.status_changed → Notification Service sends status update

https://www.twine.net/signin