Splitting Orders and Billing with BowPHP Microservices
· 4 min read
As an application grows, some responsibilities want to live on their own — their
own deploy cadence, their own scaling, their own team. Billing is a classic
example. In this post we'll extract billing into a separate service and have our
Orders application talk to it using the
bowphp/microservice package over Redis.
We'll use both communication modes the package offers:
- Request/Response (RPC) with
send()— when Orders needs an answer back. - Fire-and-forget (Event) with
emit()— when Orders just wants to announce that something happened.