Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Asynchronous Observer Pattern

I wanted to find out other ways to do Asynchronous Observer Pattern without using Message Queue. Ideas and examples are mostly welcomed. :-) (Think of this as a brainstorming session).

PS Language preference is up to you.

like image 287
Buhake Sindi Avatar asked Nov 05 '22 09:11

Buhake Sindi


1 Answers

In Java, you could submit notification tasks to an Executor which manages a single thread of group of threads that are all responsible just for handling observable events. You still effectively have a queue, but instead of a "message queue" in the traditional sense it's a queue of notification tasks.

like image 52
Mike Daniels Avatar answered Nov 10 '22 00:11

Mike Daniels