Brokers
Message brokers in Node.js act as intermediaries for communication between different processes or components by facilitating the efficient exchange of messages. When it comes to direct one-way sending, message brokers excel in speed due to their optimized routing mechanisms, allowing messages to be quickly dispatched from a sender to a recipient without the need for direct connections or complex coordination.
Configuring
Why?
The incorporation of message brokers in our architecture was driven by the need for streamlined communication between various components and processes. By introducing message brokers, we aimed to enhance the efficiency and reliability of data exchange, enabling seamless interaction. This decision is substantiated by the benchmark image below, which vividly illustrates the significant performance gains achieved through the utilization of message brokers in terms of message throughput and reduced latency sending data in only one way.
Broker
17.76ms
17.42ms
17.04ms
17.65ms
661.5µs
616.4µs
IPC Send
19.72ms
19.78ms
19.37ms
19.55ms
1058.8µs
1171.8µs
397.3µs
60.06%
Manager -> Clusters
555.4µs
90.10%
Cluster -> Manager
Last updated
Was this helpful?