# S9 E8: Mosquitto, the Open Source MQTT Broker, with Roger Light of Cedalo

Published: 2024-01-23
Duration: 1275s
Audio: https://pdst.fm/e/pscrb.fm/rss/p/audio4.redcircle.com/episodes/f0e0483c-6aab-4b4d-97d1-4a5142030109/stream.mp3

## Key Takeaways
- A Two-Month Project, 14 Years: After a 2009 talk showed MQTT relying on a proprietary IBM server, Roger Light set out to build an open source version. He expected it to take a couple of months and was still working on it 14 years later.
- Copying Has Long-Term Costs: Modeling Mosquitto on IBM's small implementation helped prioritize features, but copying its unstructured config file format became a long-term headache that Light hopes to replace.
- Single-Core Performance First: Mosquitto wasn't designed with scale in mind, yet Light's benchmarks show it on one core outperforming competitors on six to eight. Clustering was in progress and multi-threading planned.
- From Hobby to Enterprise Roadmap: At Cedalo, priorities shifted to MQTT 5 support, then easier management, including on-the-fly authentication and authorization changes, and enterprise needs like monitoring, high availability and reliability.
- Consider Commercializing Your Side Project: Looking back, Light says he might have started commercializing Mosquitto himself. He urges builders who don't see themselves as entrepreneurs to consider doing something with what they've made.

Roger Light lives in the midlands of the UK. He has his PhD in Electrical Engineering, and post graduating, he did research, then taught. But in parallel, he worked on hobby projects that eventually led him to a new venture. Outside of tech, he is married with 4 young boys and a dog - so he mentioned things get a little loud and crazy at home. He loves spicy food, but has been enjoying the visit to the local carvery lately.

In 2009, Roger attended a conference on iOT, MQTT, and how it was being used to track electricity monitoring. What he realized was that an open source version of management software didn't exist. He happened to be looking for a project at the time, and thought "this should only take a couple of months".

This is the creation story of [Cedalo](https://cedalo.com/).

Sponsors

- [CacheFly](https://cachefly.com/codestory)
- [ClearQuery](https://clearquery.io/codestory)

Links

- [https://cedalo.com/](https://cedalo.com/)
- [https://www.linkedin.com/in/roger-light-aba81919/](https://www.linkedin.com/in/roger-light-aba81919/)

 

  

Timestamps

00:00 – Intro

05:10 – Building the Mosquitto MVP

06:15 – MVP Decisions and Trade-offs

08:00 – Building the Cedalo Roadmap

10:07 – Building the Cedalo Team

11:39 – Scaling Mosquitto

14:08 – Proudest Moment

15:41 – Mistakes and Lessons Learned

16:10 – The Future of Cedalo

17:37 – Roger's Influences

18:56 – Advice for Young Entrepreneurs

Times are from the episode recording; ad breaks in your player may shift them a bit later.

  

Read the key answers from this episode, with quotes and timestamps from Roger Light from Cedalo: [https://www.codestory.co/episodes/s9-e8-the-iot-data-backbone-engineering-ultra-lightweight-mqtt-architectures-and-scaling-critical-edge-infrastructure-with-roger-light-creator-of-eclipse-mosquitto-co-founder-of-cedalo/](https://www.codestory.co/episodes/s9-e8-the-iot-data-backbone-engineering-ultra-lightweight-mqtt-architectures-and-scaling-critical-edge-infrastructure-with-roger-light-creator-of-eclipse-mosquitto-co-founder-of-cedalo/)

  
  

Current Sponsors:

- [Tiger Data](https://tigerdata.com/)

- [Protected Harbor](http://protectedharbor.com/codestory)

- [Render](https://render.com/)

- [Fitnexa](https://www.fitnexa.com/)

- [Perplexity](https://pplx.ai/codestory)

- [Entelligence](https://entelligence.ai/)

Checkout our [Substack](https://news.codestory.co/subscribe)

Checkout our [Stacklist!](https://stacks.codestory.co/)

Checkout our [Patreon!](https://www.patreon.com/cw/codestory)

Hosted by  [Noah Labhart.](https://noahlabhart.com/)

  
  
Our Sponsors:  
* Check out Granola and use my code granola.ai/CODESTORY for a great deal: https://granola.ai  
* Check out Perplexity: https://pplx.ai/codestory  
  
  
Advertising Inquiries: [https://redcircle.com/brands](https://redcircle.com/brands)  
  
Privacy & Opt-Out: [https://redcircle.com/privacy](https://redcircle.com/privacy)

## Chapters
- 0:00 — Intro
- 5:10 — Building the Mosquitto MVP
- 6:15 — MVP Decisions and Trade-offs
- 8:00 — Building the Cedalo Roadmap
- 10:07 — Building the Cedalo Team
- 11:39 — Scaling Mosquitto
- 14:08 — Proudest Moment
- 15:41 — Mistakes and Lessons Learned
- 16:10 — The Future of Cedalo
- 17:37 — Roger's Influences
- 18:56 — Advice for Young Entrepreneurs

## Frequently Asked Questions
- **Q:** Why was the Mosquitto MQTT broker created? — **A:** Roger Light attended a 2009 talk where MQTT's use depended on a proprietary IBM server, and he was looking for a project, so he decided to build an open source version. He recalls thinking, "That seems like it might take a couple of months maybe and then I'll be done with it." [03:56]
- **Q:** How does Mosquitto's performance compare with other MQTT brokers? — **A:** Roger Light says Mosquitto does well in single-instance comparisons, although horizontal clustering was not yet available at the time of the interview. In his past benchmarks, it ran on a single core against competitors "running on six, seven, eight cores, and Mosquitto's outperforming it, outperforming them." [12:58]
- **Q:** What design decision does Roger Light regret in Mosquitto? — **A:** Light regrets copying the very unstructured config file format used by the IBM implementation, which Mosquitto still uses. He says it was an easy thing to do in the short term, "something there to copy, but has been a bit of a long-term headache." [07:38]
- **Q:** Where is Eclipse Mosquitto used in the real world? — **A:** Roger Light mentions an electricity company in Iceland that adopted it early, as well as hobbyist sensor projects. He also shared that "some of the signalling on the UK Rail network is running off Mosquitto" [14:48].
- **Q:** What has Cedalo focused on when developing Mosquitto? — **A:** According to Roger Light, the early focus was better coverage of the MQTT specifications, especially version 5, followed by usability and enterprise features such as monitoring and high availability. He described the usability goal as "trying to make it a more pleasant experience for people to use" [09:08].
