1NN_BUS(7) nanomsg 1.1.5 NN_BUS(7)
2
3
4
6 nn_bus - message bus scalability protocol
7
9 #include <nanomsg/nn.h>
10
11 #include <nanomsg/bus.h>
12
14 Broadcasts messages from any node to all other nodes in the topology.
15 The socket should never receive messages that it sent itself.
16
17 This pattern scales only to local level (within a single machine or
18 within a single LAN). Trying to scale it further can result in
19 overloading individual nodes with messages.
20
21 Warning
22 For bus topology to function correctly, user is responsible for
23 ensuring that path from each node to any other node exists within
24 the topology.
25
26 Raw (AF_SP_RAW) BUS socket never sends the message to the peer it was
27 received from.
28
29 Socket Types
30 NN_BUS
31 Sent messages are distributed to all nodes in the topology.
32 Incoming messages from all other nodes in the topology are
33 fair-queued in the socket.
34
35 Socket Options
36 There are no options defined at the moment.
37
39 nn_pubsub(7) nn_reqrep(7) nn_pipeline(7) nn_survey(7) nn_pair(7)
40 nanomsg(7)
41
43 Martin Sustrik <sustrik@250bpm.com>
44
45
46
47 2023-01-19 NN_BUS(7)