Sign in Go Pro

Design Patterns

The Observer/Observable Pattern

 
Autoplay

Up next

Previous

About

In this lesson, we are going to explore the Observer/Observable pattern. The observer pattern is used to help to avoid continuous polling of a data source. This is also known as the publisher and subscriber pattern (pub/sub). You can use the observer pattern to be notified when the data is ready instead of polling from it.

In this lesson you will learn ...

  • What the Observer pattern is
  • What an oberver is.
  • What an observable is
  • How to create an Observable which will communicate with observers.
  • How to implement multiple observers which do different things.
  • How to wire them together to have the observable notify all observers when an action occurs.

Links

Source Code

Instructor

Links

Comments

There are no comments on this lesson, start the conversation below ...

>
You need to go PRO to post comments.

Lessons in Design Patterns