In this video at 20:50 (corresponding slide), Nicholas Zakas presents what I think is an Event Bus architecture. What I don't know is whether the calls that interact with the Bus should be asynchronous or not?
The second question: if the calls are asynchronous, how should they be implemented?
Thank you
Asked
Active
Viewed 2,831 times
2

titus
- 5,512
- 7
- 25
- 39
1 Answers
1
I believe they are asynchronous indeed.
My guess is that way they seem to be implemented is by using custom DOM events
.
This is a useful technique for decoupling in javascript and you can check jQuery's trigger docs, look for the 'custom' string to see how to fire a custom event.

Pablo Fernandez
- 103,170
- 56
- 192
- 232