# S2 E17: An MQTT Broker for Large-Scale IoT with Dominik Obermaier of HiveMQ

Published: 2020-06-02
Duration: 2269s
Audio: https://pdst.fm/e/pscrb.fm/rss/p/audio4.redcircle.com/episodes/01acc4ff-0127-417d-9328-37d22e3f74fa/stream.mp3

## Key Takeaways
- Built for IoT Scale: Dominik saw that train connectivity projects relied on technology designed for the human internet, like HTTP. HiveMQ pivoted in 2014 around a commercial, cloud-ready broker based on the MQTT protocol.
- Simplicity Before Scalability: The three-month MVP had no graphical interface and handled only tens of thousands of connections. The team prioritized ease of use and high availability for operators to test whether demand existed.
- Rewriting the Core: Third-party clustering capped HiveMQ at about 50,000 to 100,000 devices, so the team rewrote the core. At larger scale, it found cloud providers' networks became the limiting factor.
- Testing at Massive Scale: An in-house simulator can mimic tens of millions of devices on real infrastructure. Quality test suites run basically all the time because small code errors can cause catastrophic problems for customers.
- CTO Out of the Code: Dominik jumped back into coding during a time-pressed major rewrite. His rusty skills and working outside the Kanban process hurt quality and nearly delayed the product, until the team stepped up to ship without him.

Growing up in a small rural city in Germany, Dominic Obermaier was not exposed too much when it comes to computers. After studying computer science in college, he was hooked. A frequent reader of ancient philosophy, he likes to hang out with friends and play board games, specifically long-lasting games such as Arkham horror. Obermaier started a company with his college friends with the goal to broker data from connected devices, and not just a few, but millions following his very own standardized IoT protocol MQTT. This solution is now known as HiveMQ.

  

Today’s Sponsors:

- [Atomic Child (atomicchild.com)](https://www.atomicchild.com/)
- [Save the Children (savethechildren.org/savekids)](https://www.savethechildren.org/savekids)
- [RIMS (go.rims.org/codestory)](http://go.rims.org/codestory)
- [Calibre (calibreapp.com)](https://calibreapp.com/)

  

Episode Resources:

- [https://www.hivemq.com/](https://www.hivemq.com/)
- [https://www.linkedin.com/in/dobermai](https://www.linkedin.com/in/dobermai/?originalSubdomain=de)

  

Leave us a [review on Apple Podcasts](https://ratethispodcast.com/codestory)

  

Amazing tools we use:

- If you want the best publishing platform for your podcast, with amazing support & people – use [Transistor.fm](https://transistor.fm/?via=code-story)
- Want to record your remote interviews with class? Then, you need to use [Squadcast](https://squadcast.fm/?ref=noahlabhart).
- Code Story uses the 1-click product [ClipGain](https://clipgain.io/?utm_campaign=clipgain&utm_medium=episode&utm_source=codestory), sign up now to get 3hrs of podcast processing time FREE

  

Credits: Code Story is hosted and produced by Noah Labhart, Co-produced and edited by [Bradley Denham](https://www.recordeditpodcast.com/). Be sure to subscribe on [Apple Podcasts](https://podcasts.apple.com/us/podcast/code-story/id1466861744), [Spotify](https://open.spotify.com/show/0f5HGQ2EPd63H83gqAifXp), [Pocket Casts](https://pca.st/Z1k7), [Google Play](https://play.google.com/music/listen?pcampaignid=MKT-na-all-co-pr-mu-pod-16&t=Code_Story&view=%2Fps%2FIcdmshauh7jgmkjmh6iu3wd4oya), [Breaker](https://www.breaker.audio/code-story), [Youtube](https://www.youtube.com/channel/UCgjZsiUDp-oKY_ffHc5AUpQ), or the podcasting app of your choice.

  

Timestamps

00:00 – Intro

06:20 – MVP Decisions and Trade-Offs

08:12 – Maturing HiveMQ After MVP

14:37 – Building the HiveMQ Roadmap

17:47 – Building the HiveMQ Team

20:31 – Scaling HiveMQ

25:19 – Proudest Moment

27:01 – A Mistake and Response

29:04 – The Future of HiveMQ

32:11 – Influences and Role Models

33:42 – What He'd Do Differently

34:46 – Advice for Founders

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 Dominik Obermaier from HiveMQ: [https://www.codestory.co/episodes/s2-e17-enterprise-mqtt-brokers-and-large-scale-iot-messaging-with-dominik-obermaier-of-hivemq/](https://www.codestory.co/episodes/s2-e17-enterprise-mqtt-brokers-and-large-scale-iot-messaging-with-dominik-obermaier-of-hivemq/)

  
  

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 Stacklist! [https://stacks.codestory.co/](https://stacks.codestory.co/)

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

Hosted by  [Noah Labhart | Technical Founder & Startup Mentor.](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
- 6:20 — MVP Decisions and Trade-Offs
- 8:12 — Maturing HiveMQ After MVP
- 14:37 — Building the HiveMQ Roadmap
- 17:47 — Building the HiveMQ Team
- 20:31 — Scaling HiveMQ
- 25:19 — Proudest Moment
- 27:01 — A Mistake and Response
- 29:04 — The Future of HiveMQ
- 32:11 — Influences and Role Models
- 33:42 — What He'd Do Differently
- 34:46 — Advice for Founders

## Frequently Asked Questions
- **Q:** How are MQTT brokers different from traditional message queues? — **A:** Dominik Obermaier explains that classic queues offer features like transactions and suit inter-service communication, while MQTT brokers are built for huge numbers of IoT devices, with some trade-offs. In his words, "these MQTT brokers, are fundamentally different from classic message queues people have used since the 1980s" [04:40].
- **Q:** How many devices can HiveMQ connect? — **A:** Dominik says HiveMQ customers send hundreds of thousands or millions of messages per second, and the team aims to eventually reach 100 million devices. As he put it, "our customers use our product to connect more than 10 million devices" [05:41].
- **Q:** How did HiveMQ solve its early scalability limits? — **A:** The team found that third-party clustering technology held the software back, so it changed the foundation and invested in distributed systems research, including work with universities. Dominik said they "basically rewrote the core of our software and we did a lot of research" [21:27].
- **Q:** Can HiveMQ run on-premise and in the cloud? — **A:** Yes, HiveMQ started as on-premise software that customers also ran on public clouds, and it now offers a managed service as well. Dominik said that with it, "our customers don't need to install anything on their own infrastructure, but we run it" [13:33].
- **Q:** What advice does HiveMQ's CTO give startup founders about product-market fit? — **A:** Dominik Obermaier advises building an embarrassing MVP, selling early, iterating on customer feedback and bootstrapping if you can. He says the best way to validate "that product market fit is actual customers paying you money for it" [35:15].
