what"s the difference between an event bus (engine) and a message queue?
what"s the difference between an event bus (engine) and a message queue?
event bus contains multiple message queues, that is, all events are received, and internal logic determines which message queue to push to
try to answer:
they have different roles in the system architecture.
eventbus can dispatch collected events to heterogeneous consumer (such as mq) to handle.
of course, event bus is a pattern, and mq is a technology. You can modify mq and let mq realize the function of event bus, then the modified mq can also be used as event bus at this time.
Previous: Adaptive width of text realized by CSS
Next: Is there any library that vue and react's webapp, share with Wechat?
recently, I have been learning the rpc framework, because I see that some rpc frameworks are not cross-language, serialization is only in their own language, and those languages are rarely used in client-side development. I m talking about the client s...
A large binary tree with uncertain tree hierarchy. Now we need to realize the following requirements: 1. Record hierarchical relationships. For example: to give you a node id:9, needs to find out the son or grandson under this node, or. Or all descenda...
after uploading the certificate, I click the notification bar message to test my single iPhone machine, always indicating that the device is not registered, but I have created two devices to make sure they are created successfully, as follows: ...
$m = new Memcached(); $res = $m->get( key ); if(empty($res)) { $ret = $m->set( key ); $ret && $this->insert($data); } Why does the insert data repeat in the above code? What is the correct way to write it? ...
mongodb involves updating multiple tables and has no transaction. How to deal with it ...
A common system in the company, a statistical method of system performance indicators. can not use full log, full log is relatively large, if sampling, what good way, sampling, can be closer to the real situation? if sampling, is there a similar set up ...
1. Suppose you use swoole to make a web version of Wechat, and the client uses websocket to connect to the server 2. How to realize the private chat of friends (1 to 1), without writing the dead server port 3. Not writing the port means that the server...
I want to write a comic platform server, comics will be divided into paid and free, how should I deal with these picture resources. If I put it on oss, how can I tell whether the requesting user has paid or not? under the guidance of which god, I would b...
I used to be in php, but now I want to do ai, in my spare time. What language should I use? which GO JAVA PYTHON is more suitable for php programmers like me? I feel that php is very powerful, but I just can t write all kinds of middleware systems. ...
< H1 > problem description < H1 > I use the hash table to represent the people on the seat (key represents the seat position, value is the specific uid), and then use hsetnx to process the concurrent seat. but there is a problem that, after the seat ...
when a novice learns redis and tries a redis lock, the go code is as follows: while(true) { xxxxxxx } grab the lock. So I wonder if the real production environment is also realized in this way. I was wrong in the first place. If you have releva...