1. [Home](<https://delaparra-services.nl/>) 
1. [Knowledge hub](<https://delaparra-services.nl/knowledge-hub>) 
1. [Publish / Subscribe (Pub/Sub)](<https://delaparra-services.nl/knowledge-hub/publish-subscribe-pubsub>)

  

Category: Programming paradigms 

# Publish / Subscribe (Pub/Sub)

  Explained by [Reinier de la Parra](<https://delaparra-services.nl/about>)  Updated November 25, 2026    

## What is Publish / Subscribe (Pub/Sub)?

 

Publish / Subscribe (Pub/Sub): An event pattern where publishers emit events without knowing who's listening, and subscribers react without knowing who published. Decouples components. Publish and subscribe, or pub/sub, is a messaging pattern where publishers send events without knowing who will receive them, and subscribers listen for events without knowing who sent them. An ` OrderPlaced ` event can be picked up by the email service, the warehouse integration and the analytics system, each independently. Adding a new subscriber does not require any change to the code that publishes the event.

 

Definition source [Coders Lingo](<https://coderslingo.com/resources/open-dataset/>), [CC BY 4.0](<https://creativecommons.org/licenses/by/4.0/>)

 

## Frequently asked questions about Publish / Subscribe (Pub/Sub)

  

### What should you keep in mind with Publish / Subscribe (Pub/Sub)?

 

This decoupling makes systems easier to extend. It also makes them harder to follow, because no single piece of code shows the whole flow. Use clear event names, document which subscribers exist, and decide how failures are handled, since one subscriber failing should usually not affect the others. Redis, Google Pub/Sub, SNS and Laravel's event system all support this pattern at different scales.

 

## At a glance

   CategoryProgramming paradigms Explained by[Reinier de la Parra](<https://delaparra-services.nl/about>) UpdatedNovember 25, 2026

 

## More Programming paradigms terms

 

- [Prototype](<https://delaparra-services.nl/knowledge-hub/prototype-paradigms>) 
- [Prototype Chain](<https://delaparra-services.nl/knowledge-hub/prototype-chain>) 
- [Prototype-Based Programming](<https://delaparra-services.nl/knowledge-hub/prototype-based-programming>) 
- [Pure Function](<https://delaparra-services.nl/knowledge-hub/pure-function>) 
- [Query / Goal](<https://delaparra-services.nl/knowledge-hub/query-goal>) 
- [Quote / Eval](<https://delaparra-services.nl/knowledge-hub/quote-eval>)

 

[All terms starting with P](<https://delaparra-services.nl/knowledge-hub#letter-p>)

 

## Skills

 

- ### Architecture Patterns

 

Implement proven backend architecture patterns including Clean Architecture, Hexagonal Architecture, and Domain-Driven Design. Use this skill when designing clean architecture for a new microservice, when refactoring a monolith to use bounded contexts, when implementing hexagonal or onion architecture patterns, or when debugging dependency cycles between application layers.

 [View skill](<https://delaparra-services.nl/skills/architecture-patterns>) [Download zip](<https://delaparra-services.nl/skills/architecture-patterns/download>) 
- ### CQRS Implementation

 

Implement Command Query Responsibility Segregation for scalable architectures. Use when separating read and write models, optimizing query performance, or building event-sourced systems.

 [View skill](<https://delaparra-services.nl/skills/cqrs-implementation>) [Download zip](<https://delaparra-services.nl/skills/cqrs-implementation/download>) 
- ### Laravel Queues & Jobs

 

Laravel 13 queue and job patterns — driver choice, job design (idempotency, ShouldQueue, model serialisation), retry and failure handling, worker scaling, Bus batching and chaining, Horizon when warranted, queue testing. Use when designing async jobs, scheduling background work, configuring Horizon, debugging stuck jobs, or auditing queue health. Triggers on "Laravel queue", "Laravel job", "backgr

 [View skill](<https://delaparra-services.nl/skills/laravel-queues>) [Download zip](<https://delaparra-services.nl/skills/laravel-queues/download>)

 [Download all skills (zip)](<https://delaparra-services.nl/knowledge-hub/publish-subscribe-pubsub/skills.zip>)

 

## Manuals

 

- [Programming paradigms and design patterns](<https://delaparra-services.nl/manuals/programmeerstijlen-en-ontwerppatronen>) 
- [Getting started with a React project](<https://delaparra-services.nl/manuals/een-react-project-starten>)

 

## Related services

 

- [Custom software and web applications](<https://delaparra-services.nl/services#service-03>)

Perhaps your customers need somewhere to download their invoices, or your staff are managing bookings in a spreadsheet.

 

## Need any help?

 

Stuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.

  [Get in touch](<https://delaparra-services.nl/availability>)

[HTML version](https://delaparra-services.nl/knowledge-hub/publish-subscribe-pubsub)
