The Pub-Sub model(in Javascript)

Publié le: 24 juin 2024
sur la chaîne: Akilesh Rao
504
21

The Pub/Sub (Publisher/Subscriber) model in JavaScript is a design pattern that facilitates communication between different parts of an application. In this model, publishers emit events without knowing who will receive them, while subscribers listen for specific events and react accordingly. This decouples the components, making the system more modular and easier to maintain. It's widely used in scenarios where multiple components need to respond to the same event, such as in real-time applications, user interface updates, and messaging systems.

⌚Timestamps:
0:00 - Intro
1:20 - Building the model
1:55 - Subscribe method
3:10 - Unsubscribe method
3:43 - Publish method
4:10 - Testing the model
6:36 - Outro

🧑‍💻Other playlists:

Javascript Polyfills -    • Javascript polyfills  

Playwright crash course:    • Playwright + React Crash Course (2024)  

Tanstack query -    • React/Tanstack Query(2024)  

Push Notifications using SW -    • Push Notifications using Service worker  

Service worker in Javascript (2023) -    • Service worker in Javascript (2023)  

Javascript observers(2023) -    • Javascript Observers(2023)  

The Web components Playlist -    • Web components 2023  

The Git series(2023) -    • The Git series(2023)  

Multitasking in NodeJS -    • Multi tasking in NodeJS  

NodeJS Authentication with Passport -    • NodeJS Authentication with Passport(2021)  

Job scheduling in NodeJS -    • Job scheduling in NodeJS  

NPM Tutorial Series -    • NPM Tutorial Series (2021)  

Javascript(Behind the scenes) -    • Javascript(Behind the scenes)  

😎Socials
🐤 Twitter -   / themangalorian  
📷 Instagram -   / _alt.ar_  
👔 LinkedIn -   / akilesh-rao-610357137  
🧑‍💻 GitHub - https://github.com/AkileshRao
📝 Medium -   / akileshrao19  


Sur cette page du site, vous pouvez voir la vidéo en ligne The Pub-Sub model(in Javascript) durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Akilesh Rao 24 juin 2024, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 504 fois et il a aimé 21 téléspectateurs. Bon visionnage!