TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

MQTT – machine-to-machine connectivity protocol

65 点作者 knowbody将近 10 年前

13 条评论

marceldegraaf将近 10 年前
We&#x27;re using MQTT extensively at Karma [1] as the communication protocol between our LTE devices and our backend services. It has worked really well for us, and we&#x27;re super happy that we chose for MQTT in favour of our previous HTTP&#x2F;JSON stack.<p>We&#x27;re about to release a very detailed blog post about our MQTT setup on our blog [2], describing why and how we implemented our own MQTT server and how we hooked that up to our Ruby backend services and Redis. The post should be live somewhere this week.<p>1: <a href="https:&#x2F;&#x2F;yourkarma.com" rel="nofollow">https:&#x2F;&#x2F;yourkarma.com</a> 2: <a href="https:&#x2F;&#x2F;blog.yourkarma.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;blog.yourkarma.com&#x2F;</a>
评论 #10031703 未加载
kbaker将近 10 年前
MQTT is really nice for generic pubsub, but from what I&#x27;ve seen doesn&#x27;t handle RPC-style transactions at all.<p>It is very hard to have something like this without requiring a whole bunch of ephemeral topics or lots of message id tracking on the client and server:<p><pre><code> server&gt; set this value to Z. device&gt; oops, in your previous command, Z is invalid. </code></pre> Of course you can have an another service to handle this (HTTP API, CoAP, etc.,) but I think if MQTT added a command for something like this, then it would see a lot more adoption. It is nice to keep the broker in the middle of the communication to the devices even for RPC, simplifies a lot of things.
评论 #10031402 未加载
bizzleDawg将近 10 年前
I&#x27;ve found MQTT really useful in M2M&#x2F;IoT situations, but I often found that I wanted to make use of existing HTTP based web solutions in combination with my MQTT networks.<p>As the first thing on my wishlist, I recently made a little python library [1] to aid people in pushing selected MQTT events to KeenIO[2]. It&#x27;s mainly for development and testing, but I&#x27;ve found it pretty useful in my applications.<p>[1]: <a href="https:&#x2F;&#x2F;github.com&#x2F;ZoetropeLabs&#x2F;keenmqtt" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;ZoetropeLabs&#x2F;keenmqtt</a> [2]: <a href="https:&#x2F;&#x2F;keen.io" rel="nofollow">https:&#x2F;&#x2F;keen.io</a>
Animats将近 10 年前
The protocol almost totally ignores security. They try to pass the buck downwards:<p><i>&quot;As a transport protocol, MQTT is concerned only with message transmission and it is the implementer’s responsibility to provide appropriate security features. This is commonly achieved by using TLS.&quot;</i><p>and upwards:<p><i>&quot;The Server MAY also use a security component to selectively authorize actions on the topic resource for a given Client.&quot;</i><p>This is a very weak security model. There&#x27;s nothing like a distinction between &quot;report body temperature&quot; and &quot;update pacemaker firmware&quot;.
评论 #10031648 未加载
zimbatm将近 10 年前
It would be nice if the protocol allowed extension points in the SUBSCRIBE action. Right now it&#x27;s not possible to use dynamic authorization delegation using signatures.
评论 #10030593 未加载
clumsysmurf将近 10 年前
MQTT works OK on Android via Paho library, but it seems that changes to upcoming &quot;Android M&quot; will reduce its usefulness.<p>In the scenario the phone would go to sleep, incoming data on a socket should wake it up - then you could grab a wakelock and do some work.<p>However with the new Doze mode(s) this no longer seems to be the case. Now the only way to wake the phone up externally now is with GCM.<p>Its too early to know for sure (more previews of M will be released) but I&#x27;m curious how this end.
justinsaccount将近 10 年前
MQTT is not really machine-to-machine is it? Isn&#x27;t it only machine-to-broker? Are there any uses of mqtt that operate in a more p2p decentralized setup?
soupbowl将近 10 年前
I can&#x27;t wait for <a href="http:&#x2F;&#x2F;www.matrix.org" rel="nofollow">http:&#x2F;&#x2F;www.matrix.org</a> to mature. But this looks interesting.
reefab将近 10 年前
I&#x27;m using MQTT on my current project that involves interactive applications running on solar powered devices.<p>I&#x27;m using RabbitMQ for the broker, it supports MQTT too, this means I can use MQTT on the clients and the services on the backend only needs to understand AMQP.<p>I made a simple RPC system on top of it, unfortunately it&#x27;s a homegrown solution as I couldn&#x27;t use RabbitMQ RPC features with MQTT.
IshKebab将近 10 年前
It&#x27;s ok (I use it a bit at work), but from reading the specs it seems like AllJoyn is much more powerful (though I haven&#x27;t used AllJoyn).<p>Also the QoS parameter means different things depending on which server you use.
elisiariocouto将近 10 年前
Keep an eye on this MQTT broker. It supports clustering, for me the &quot;selling point&quot;.<p><a href="https:&#x2F;&#x2F;verne.mq" rel="nofollow">https:&#x2F;&#x2F;verne.mq</a>
k__将近 10 年前
Someone told me to use Apache Kafka instead, because it scales better. What do you think?
评论 #10031367 未加载
platz将近 10 年前
I wonder how hard it is to just use AMQP in these scenarios