WEBVTT

00:00.200 --> 00:04.400
So guys, now we will going to discuss the concept of notification chains.

00:05.090 --> 00:10.220
So notification chains is all about notifying the subscribers about the events.

00:10.250 --> 00:15.050
So now let us quickly discuss what notification chains are and how do they work.

00:15.080 --> 00:21.680
So notification chain is an architectural concept and used to notify multiple subscribers interested

00:21.680 --> 00:23.310
in a particular event.

00:23.330 --> 00:23.990
Right.

00:23.990 --> 00:30.170
So note that it is an architectural concept or you can say it is something that can be implemented in

00:30.170 --> 00:31.760
any programming language.

00:32.330 --> 00:34.700
In other words, it's a design pattern.

00:35.890 --> 00:39.310
A party which generates an event is called a publisher.

00:39.310 --> 00:45.620
And parties which are interested in being notified of the event are called subscribers.

00:45.640 --> 00:46.390
Right.

00:46.570 --> 00:47.710
So need not worry.

00:47.710 --> 00:50.590
We will going to understand it with the help of an example.

00:51.640 --> 00:55.930
There is always one publisher and multiple subscribers.

00:57.040 --> 01:03.910
Shortly we will going to discuss what exactly publishers are and what exactly subscribers are and what

01:03.910 --> 01:05.960
exactly these events are.

01:05.980 --> 01:06.730
Right.

01:07.480 --> 01:11.100
Once the event is generated or produced by the publisher.

01:11.110 --> 01:11.650
Right.

01:11.650 --> 01:16.720
So note that events is something which is generated or produced by the publisher.

01:16.750 --> 01:21.930
The event is pushed to the subscribers which are interested in this event.

01:21.940 --> 01:22.720
Right.

01:23.930 --> 01:29.660
Subscribers can register and register for the event with the publisher at their will.

01:29.840 --> 01:33.170
And publisher subscribers could be any entities.

01:33.170 --> 01:35.800
They could be multiple threads of the same process.

01:35.810 --> 01:41.660
They could be multiple processes running on the same system, or they could be multiple processes running

01:41.660 --> 01:48.290
on different systems, or in fact they could be different components of the same big software system,

01:48.290 --> 01:49.120
right?

01:49.130 --> 01:55.610
So there is absolutely no constraint as to who can be publisher and who could be subscriber.

01:55.640 --> 02:02.180
The publisher subscriber could be anything including thread process, running on the same system or

02:02.180 --> 02:08.090
processes running on the different system or different components of the same big software system running

02:08.090 --> 02:11.240
on the same machine right now.

02:11.240 --> 02:16.970
Let us try to understand technically what publishers and subscribers and events are.

02:17.000 --> 02:24.180
So basically notification chain is all about communication between publishers and multiple subscribers.

02:25.540 --> 02:32.320
Notification chain is important because this is one of the most important and common communication pattern

02:32.320 --> 02:36.460
which you will definitely come across when you will be working in the industry.

02:36.490 --> 02:43.420
It is not uncommon to find this type of communication pattern between different entities and therefore

02:43.420 --> 02:46.330
I have included it as a part of this course.

02:47.170 --> 02:53.530
Now, in the next lecture video, we will going to have pictorial representation regarding how publishers,

02:53.530 --> 02:56.830
subscribers and events are related to each other.
