浏览代码

add dispatch, route images

Feng 10 年之前
父节点
当前提交
d75d3719e1
共有 3 个文件被更改,包括 5 次插入1 次删除
  1. 二进制
      docs/source/_static/images/dispatch.png
  2. 二进制
      docs/source/_static/images/route.png
  3. 5 1
      docs/source/design.rst

二进制
docs/source/_static/images/dispatch.png


二进制
docs/source/_static/images/route.png


+ 5 - 1
docs/source/design.rst

@@ -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.