Skip to main content

2 posts tagged with "redis"

View All Tags

Speeding Up a BowPHP API with Caching

· 4 min read
Franck DAKIA
Principal maintainer

The fastest query is the one you never run. In this post we'll take a slow API endpoint and make it fast with the BowPHP cache — then keep the cached data correct when the underlying records change, and finish by adding a lightweight rate limiter. Everything here works the same whether you're on the file, database, or redis driver.

Splitting Orders and Billing with BowPHP Microservices

· 4 min read
Franck DAKIA
Principal maintainer

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.