如何提高WSO2 Message Broker的交付速度?

时间:2017-03-20 07:22:27

标签: performance wso2 mqtt wso2mb

我想创建一个用于开发IoT项目的发布和订阅模型。我用Python语言创建了它。一切都运行良好,但似乎有3秒的延迟从发布者那里向订阅者发送消息。

有没有办法在 WSO2 Message Broker 或任何建议中最小化邮件传递延迟并提高其性能......

2 个答案:

答案 0 :(得分:0)

您可以找到MB 1的效果调整指南。另外,请检查邮件发布者和消费者绩效指南以及2

  1. https://docs.wso2.com/display/MB310/Performance+Tuning+Guide
  2. https://docs.wso2.com/display/MB310/Message+Publisher+and+Consumer+Performance

答案 1 :(得分:0)

您可以更改[Failure instance: Traceback: <class 'ValueError'>: No application configured for scope type 'websocket' /home/vaibhav/.local/lib/python3.6/site-packages/autobahn/websocket/protocol.py:2801:processHandshake /home/vaibhav/.local/lib/python3.6/site-packages/txaio/tx.py:429:as_future /home/vaibhav/.local/lib/python3.6/site-packages/twisted/internet/defer.py:151:maybeDeferred /home/vaibhav/.local/lib/python3.6/site-packages/daphne/ws_protocol.py:82:onConnect --- <exception caught here> --- /home/vaibhav/.local/lib/python3.6/site-packages/twisted/internet/defer.py:151:maybeDeferred /home/vaibhav/.local/lib/python3.6/site-packages/daphne/server.py:198:create_application /home/vaibhav/.local/lib/python3.6/site-packages/channels/staticfiles.py:41:__call__ /home/vaibhav/.local/lib/python3.6/site-packages/channels/routing.py:61:__call__ ] WebSocket DISCONNECT /ws/chat/lobby/ [127.0.0.1:34724]

broker.xml

此参数为1000,默认为3000