The Pub-Sub model(in Javascript)

Опубликовано: 24 Июнь 2024
на канале: 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  


На этой странице сайта вы можете посмотреть видео онлайн The Pub-Sub model(in Javascript) длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Akilesh Rao 24 Июнь 2024, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 504 раз и оно понравилось 21 зрителям. Приятного просмотра!