# VerneMQ - have you used it?

**URL:** <https://erlangforums.com/t/vernemq-have-you-used-it/602>\
**Category:** VerneMQ Chat\
**Tags:** vernemq-chat\
**Created:** [November 18, 2021, 11:26am UTC](https://erlangforums.com/t/vernemq-have-you-used-it/602 "2021-11-18T11:26:19Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![afa](https://erlangforums.com/user_avatar/erlangforums.com/afa/32/298_2.png) [@afa](https://erlangforums.com/u/afa)\
**Post date:** [November 18, 2021, 11:26am UTC](https://erlangforums.com/t/vernemq-have-you-used-it/602/1 "2021-11-18T11:26:19Z")

</div>

Have you used MQTT and [VerneMQ](https://github.com/vernemq/vernemq)?  
If so, what have you used it for or built using it?

Surprise us, surprise us… in Open Source you never know about all the use cases out there! 🙂

---

<div class="post-metadata">

**Author:** ![Rainer](https://erlangforums.com/user_avatar/erlangforums.com/rainer/32/210_2.png) [@Rainer](https://erlangforums.com/u/Rainer)\
**Post date:** [November 19, 2021, 7:20am UTC](https://erlangforums.com/t/vernemq-have-you-used-it/602/2 "2021-11-19T07:20:33Z")

</div>

I have to admit that I havn’t heard about VerneMQ until I saw it pop up here…  
So far I used RabbitMQ, what would be the benefits / main differences when using VerneMQ? If I understand correctly, it’s a more distributed approach and IoT devices are a main target?

---

<div class="post-metadata">

**Author:** ![afa](https://erlangforums.com/user_avatar/erlangforums.com/afa/32/298_2.png) [@afa](https://erlangforums.com/u/afa)\
**Post date:** [November 19, 2021, 7:44am UTC](https://erlangforums.com/t/vernemq-have-you-used-it/602/3 "2021-11-19T07:44:13Z")

</div>

You never heard of Verne… how is this even possible!? 😉

Jokes aside: VerneMQ is a single-protocol system (MQTT only) while RabbitMQ is multi-protocol (including the MQTT plugin, but with AMQP as the primary protocol, of course).

Both are distributed (clusterable). In terms of making a messaging protocol “distributed”, MQTT and AMQP have similar but also a couple of quite different challenges to address.

And yes, the main field where MQTT is used and shines is IoT, telemetry data collection etc. Queued task distribution is not what it’s mainly used for.

---

<div class="post-metadata">

**Author:** ![Rainer](https://erlangforums.com/user_avatar/erlangforums.com/rainer/32/210_2.png) [@Rainer](https://erlangforums.com/u/Rainer)\
**Post date:** [November 19, 2021, 8:37am UTC](https://erlangforums.com/t/vernemq-have-you-used-it/602/4 "2021-11-19T08:37:36Z")

</div>

So for example it would be a good fit for collecting telemetry data from a fleet of delivery vehicles?  
Or i could use it to extend my [Elixir/Nerves based model train remote](https://elixirforum.com/t/model-train-controller-with-nerves/43855) to a full train control system 😉

---

<div class="post-metadata">

**Author:** ![afa](https://erlangforums.com/user_avatar/erlangforums.com/afa/32/298_2.png) [@afa](https://erlangforums.com/u/afa)\
**Post date:** [November 19, 2021, 8:52am UTC](https://erlangforums.com/t/vernemq-have-you-used-it/602/5 "2021-11-19T08:52:10Z")

</div>

> [@Rainer](#):
>
> So for example it would be a good fit for collecting telemetry data from a fleet of delivery vehicles?

Yes, Telematics is one of the fields.

> [@Rainer](#):
>
> Or i could use it to extend my [Elixir/Nerves based model train remote](https://elixirforum.com/t/model-train-controller-with-nerves/43855) to a full train control system 😉

Fun project! 🙂

---

<div class="post-metadata">

**Author:** ![jerry-chao](https://erlangforums.com/user_avatar/erlangforums.com/jerry-chao/32/436_2.png) [@jerry-chao](https://erlangforums.com/u/jerry-chao)\
**Post date:** [November 20, 2021, 2:25pm UTC](https://erlangforums.com/t/vernemq-have-you-used-it/602/6 "2021-11-20T14:25:49Z")

</div>

I do not use vernemq, I have used emqx something like it. And i search some mqtt broker which used erlang.

---

<div class="post-metadata">

**Author:** ![rlipscombe](https://erlangforums.com/user_avatar/erlangforums.com/rlipscombe/32/459_2.png) [@rlipscombe](https://erlangforums.com/u/rlipscombe)\
**Post date:** [November 23, 2021, 7:01pm UTC](https://erlangforums.com/t/vernemq-have-you-used-it/602/7 "2021-11-23T19:01:51Z")

</div>

We use VerneMQ as a test broker in our system tests ([we support MQTT](https://developer.electricimp.com/api/mqtt) as one of our connectivity options). We’ve not had any need (yet) to actually use it in production. For our internal message broker, we mostly use RabbitMQ.

---

<div class="post-metadata">

**Author:** ![afa](https://erlangforums.com/user_avatar/erlangforums.com/afa/32/298_2.png) [@afa](https://erlangforums.com/u/afa)\
**Post date:** [November 24, 2021, 6:48am UTC](https://erlangforums.com/t/vernemq-have-you-used-it/602/8 "2021-11-24T06:48:44Z")

</div>

Cool example, thanks for letting us know about it.

---

<div class="post-metadata">

**Author:** ![mmzeeman](https://erlangforums.com/user_avatar/erlangforums.com/mmzeeman/32/467_2.png) [@mmzeeman](https://erlangforums.com/u/mmzeeman)\
**Post date:** [December 2, 2021, 3:50pm UTC](https://erlangforums.com/t/vernemq-have-you-used-it/602/9 "2021-12-02T15:50:01Z")

</div>

FYI, for everybody who is interested in MQTT. [Zotonic](https://github.com/zotonic/zotonic) uses MQTT as pub/sub protocol between browsers and the server. A lot of zotonic’s functionality is exposed via model topics, making it possible for clients to subscribe to resource updates etc.

At the moment I’m working on a teleview module which makes it possible to have server rendered components which publishes its updates (patches) via MQTT to interested clients.

 ![Screenshot 2021-11-27 at 15.07.46](https://erlangforums.com/uploads/default/original/2X/d/d211ff7da3a18329f4eac206c680b87791513ca4.jpeg)

It would probably be possible to connect the browsers via our client side javascript code to VereMQ. (see [Cotonic](https://github.com/cotonic/cotonic)

---

<div class="post-metadata">

**Author:** ![afa](https://erlangforums.com/user_avatar/erlangforums.com/afa/32/298_2.png) [@afa](https://erlangforums.com/u/afa)\
**Post date:** [December 2, 2021, 4:15pm UTC](https://erlangforums.com/t/vernemq-have-you-used-it/602/10 "2021-12-02T16:15:53Z")

</div>

Nice… must try to hook VerneMQ one of these days.  
Does this go over WebSockets?

---

<div class="post-metadata">

**Author:** ![mmzeeman](https://erlangforums.com/user_avatar/erlangforums.com/mmzeeman/32/467_2.png) [@mmzeeman](https://erlangforums.com/u/mmzeeman)\
**Post date:** [December 2, 2021, 6:41pm UTC](https://erlangforums.com/t/vernemq-have-you-used-it/602/11 "2021-12-02T18:41:49Z")

</div>

Yes, we use web sockets.

There is an hidden chat example which connects to the open broker at [mqtt.eclipseprojects.io](http://mqtt.eclipseprojects.io).

You can find it here: [https://cotonic.org/examples/chat/](https://cotonic.org/examples/chat/)

Normally we connect the client to the origin webserver, but the client side library also works without zotonic.
