add dispatch, route images

This commit is contained in:
Feng 2016-04-02 14:40:54 +08:00
parent c0cc696b52
commit d75d3719e1
3 changed files with 5 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 19 KiB

View File

@ -177,7 +177,11 @@ For example, if node1 subscribed 't/+/x' and 't/+/y', node2 subscribed 't/#' and
| t/a -> node3 | | t/a -> node3 |
------------------------- -------------------------
The routing layer would route MQTT messages between clustered nodes by topic trie match and routing table lookup, and follow the rules below: The routing layer would route MQTT messages between clustered nodes by topic trie match and routing table lookup:
.. image:: _static/images/route.png
The routing design follows the two rules:
1. A message only gets forwarded to other cluster nodes if a cluster node is interested in it. This reduces the network traffic tremendously, because it prevents nodes from forwarding unnecessary messages. 1. A message only gets forwarded to other cluster nodes if a cluster node is interested in it. This reduces the network traffic tremendously, because it prevents nodes from forwarding unnecessary messages.