Комментарии:
I reinvented this wheel when I wrote a backend with Node.js - my goal was to decouple push notifications service from business logic, so I used Redis' PubSub commands so that the backend publishes some data, and the push notifications service would send appropriate messages to clients.
Ответитьwhy to re-invent the wheel if RxJs :)
ОтветитьHmm sounds similar to observable pattern.
ОтветитьSounds like ReactiveX
ОтветитьSounds like Redux? Observable maybe?
ОтветитьI have been doing this for years. I have always called it "Event Driven Programming"
ОтветитьYour hair is so perfectly combed that contradicts the Hairy Ball Theorem.
ОтветитьHow is this different from event emitter?
ОтветитьHey Surma, thanks for the video. Perfect as always. But the intro is soooo long. Can you reduce it?
ОтветитьWhy are we avoding the name "PubSub"? Isn't this the actual term for this? You also get much more hits, when searching for PubSub
ОтветитьIs this going to be a new web spec?
ОтветитьNative websockets are using events, and they are not coupled with the DOM or with any visual input/output.
ОтветитьFavorite moment - You should click the <Subscribe> button so you will get a <Notification> when the next video comes out. :D
ОтветитьAha!, so MessageBus + ServiceWorker = Communication between browser's tabs? :) Love the channel BTW
Ответить