1. [Home](<https://delaparra-services.nl/>) 
1. [Knowledge hub](<https://delaparra-services.nl/knowledge-hub>) 
1. [Subscription](<https://delaparra-services.nl/knowledge-hub/subscription>)

  

Category: Programming paradigms 

# Subscription

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

## What is Subscription?

 

Subscription: The act of "listening to" an observable. When you subscribe, you provide handlers for: next value, error, and completion. Don't forget to unsubscribe to avoid memory leaks. A subscription connects your code to an Observable. When you subscribe, you provide handlers for new values, errors and completion, and the stream starts delivering.

 

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 Subscription

  

### How is Subscription used in practice?

 

Many streams never complete on their own, such as clicks, timers or WebSocket messages. Their subscriptions keep running until you unsubscribe, even after the component that created them is gone.

    

### What should you keep in mind with Subscription?

 

Forgotten subscriptions are a classic source of memory leaks and of strange behaviour, such as an API being called twice because an old component still listens. Unsubscribe when a component is destroyed, or use helpers that do it for you, such as Angular's ` async ` pipe or the ` takeUntil ` pattern in RxJS. In Vue and React, the same applies to event listeners and intervals set up in effects or lifecycle hooks.

 

## At a glance

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

 

## More Programming paradigms terms

 

- [Structure of Arrays](<https://delaparra-services.nl/knowledge-hub/structure-of-arrays>) 
- [Structured Programming](<https://delaparra-services.nl/knowledge-hub/structured-programming>) 
- [Subject](<https://delaparra-services.nl/knowledge-hub/subject>) 
- [Supervision](<https://delaparra-services.nl/knowledge-hub/supervision>) 
- [Symbol](<https://delaparra-services.nl/knowledge-hub/symbol>) 
- [Symbolic Programming](<https://delaparra-services.nl/knowledge-hub/symbolic-programming>)

 

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

 

## 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/subscription/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/subscription)
