How can i implement real time notifications in django?

1.2k Views Asked by At

I have read many blogs regarding this but could not understand. Can someone help me in this like what are the different ways of doing it and how to implements this.

1

There are 1 best solutions below

0
On

For real-time updates on your website / webapp, you will need to use something like Websockets or Server Sent Events. You can use a package to implement it yourself (in this case one approach is using django-channels) or use an external service that can deal with all the infrastructural complexity for you, such as Pusher, Ably or many others (a more comprehensive list can be found here).

Choosing one or another approach depends on your needs and requirements and how to implement this depends on the approach you have chosen.

You can see a description of how to implement a similar feature with django channels here. And how to do it using pusher here.