DELAPARRA
Index
Color
NL
Category: Programming paradigms

Observable

Explained by Updated

What is Observable?

Observable: A data source that emits values over time — like an async iterator. You subscribe to it and receive values as they arrive: HTTP responses, mouse moves, WebSocket messages. An Observable represents a stream of values that arrive over time, such as mouse movements, WebSocket messages or repeated API results. You subscribe to it, and your code runs every time a new value arrives.

Definition source Coders Lingo, CC BY 4.0

Frequently asked questions about Observable

How is Observable used in practice?

Libraries like RxJS make Observables powerful by offering operators to transform streams: filter them, combine them, wait until typing pauses before searching, or cancel an old request when a new one starts. Angular uses them heavily.

What should you keep in mind with Observable?

They shine for complex event-driven interfaces, such as live search, real-time dashboards or collaborative editing. For a single request that returns once, a Promise with async and await is simpler. Always unsubscribe when a component is destroyed, or the subscription keeps running in the background and causes memory leaks and duplicate updates.

At a glance

CategoryProgramming paradigms
Explained by
Updated

More Programming paradigms terms

All terms starting with O

Skills

Download all skills (zip)

Manuals

Related services

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.