frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

ProtoMQ: Type-safe, bandwidth-efficient MQTT for the rest of us

https://github.com/electricalgorithm/protomq
1•gyokhan•1h ago

Comments

gyokhan•1h ago
Hey folks!

I have always wanted to combine protobufs with the MQTT protocol, with a native de/serialisation logic built in to clients and servers to reduce the amount of message bytes (compared to the JSONs or other text encoding messages).

Lately, I found the time to implement it and decided to go with Zig to learn the language since I hear a lot about it, and said why not implement most of the parts as much as possible (like MQTT stack, epoll/kqueue-based TCP layer, protobuf encoder/decoder, etc.). Of course, with a lot of AI coding.

So, here you are, the ProtoMQ project. A type-safe, bandwidth-efficient protocol based on MQTT and Protobuf to reduce the bloated messages for your edge-devices. It includes a topic-2-scheme map at build time, where you can register your schemes.

To make sure that it is as performant as it sounds, I've created a benchmark suite and tested the server (for now, on loopback) with a variety of scenarios. You can find the benchmark scripts and results for M2 Pro and Raspberry Pi 5 hardware. Here's a small list for a quick look:

- Message throughput with 10-byte messages: --- 208k msg/s on M2 Pro --- 147k msg/s on RPi5

- Message throughput with 64 kb messages: --- 39k msg/s on M2 Pro --- 27k msg/s on RPi5

- 10,000 concurrent clients' message fan-out: --- 0.12 sec on M2 Pro --- 0.21 sec on RPi5

- Sustained load (10 min) throughput: --- 8,981 msg/s on M2 Pro --- 9,012 msg/s on RPi5

- Sustained load (10 min) memory growth: --- 0.16 MB on M2 Pro --- 0.09 MB on RPi5

(Source: https://github.com/electricalgorithm/protomq/tree/main/bench...)

It'd be great to hear some feedback from you folks. I might look into the automatic service discovery for supported schemes, runtime-load of the topic-2-scheme or better performance for several metrics. What do you think? What can be done better for the future of the project?

Here's the repository: https://github.com/electricalgorithm/protomq

Thanks already!

Regards, Gyokhan

2025 Globalscape: Race for Compute

https://www.accel.com/globalscape
1•gmays•3m ago•0 comments

Gen Z is Nostalgic for the Photo Aesthetic of 2016

https://petapixel.com/2026/01/25/gen-z-is-nostalgic-for-the-photo-aesthetic-of-2016/
1•gbugniot•3m ago•0 comments

China Fertility Facts of the Day

https://marginalrevolution.com/marginalrevolution/2025/12/china-fertility-facts-of-the-day.html
1•surprisetalk•3m ago•0 comments

Defining Groupcore

https://www.ystrickler.com/a-theory-of-groupcore/
1•surprisetalk•3m ago•0 comments

What potent consumer technologies have long remained inaccessible?

https://tsvibt.blogspot.com/2026/01/what-potent-consumer-technologies-have.html
1•surprisetalk•3m ago•0 comments

Show HN: Resurf – a local-first quick capture and personal library for Mac

https://resurf.so
1•deep933•9m ago•0 comments

The four modes of AI-augmented technical writing

https://passo.uno/four-modes-ai-augmented-tech-writing/
1•theletterf•9m ago•0 comments

Sir Mark Tully has died

https://www.telegraph.co.uk/obituaries/2026/01/25/sir-mark-tully-bbc-reporter-delhi-best-loved-in...
2•mikhailfranco•12m ago•2 comments

Adviser of Highest EU Court Backs VPN Neutrality in Anne Frank Copyright Battle

https://torrentfreak.com/adviser-of-eus-highest-court-backs-vpn-neutrality-in-anne-frank-copyrigh...
2•iamnothere•13m ago•0 comments

Ask HN: How to reach out to a commenter under an old submission (nick_m)?

2•jsumn•13m ago•1 comments

Show HN: Vortex-[BitTorrent,CLI] – Fast io_uring BitTorrent lib and TUI

https://github.com/Nehliin/vortex
3•vortex_bit•13m ago•0 comments

My agents are working. Are yours?

https://importai.substack.com/p/import-ai-441-my-agents-are-working
1•gmays•15m ago•0 comments

Show HN: Timer-wheel–based TTL cache for Node.js

https://github.com/m-thenot/tick-cache
1•mtht•17m ago•0 comments

Show HN: Humynize – A tool to fix the rhythmic stiffness of AI writing

https://humynize.pro/
1•dumebioruche•19m ago•1 comments

Using amino acids as fuels to make conductive graphene

https://phys.org/news/2026-01-amino-acids-fuels-graphene.html
1•westurner•25m ago•1 comments

Samsung Galaxy S26 Ultra

https://comuniq.xyz/post?t=753
1•01-_-•27m ago•0 comments

Considering Strictly Monotonic Time

https://matklad.github.io/2026/01/23/strictly-monotonic-time.html
1•birdculture•28m ago•1 comments

Ikejime

https://en.wikipedia.org/wiki/Ikejime
1•brightbeige•28m ago•1 comments

Show HN: LLMNet – The Offline Internet, Search the web without the web

https://github.com/skorotkiewicz/llmnet
2•modinfo•28m ago•1 comments

Iran Limits Traders to 20 Minutes of Supervised Internet Access per Day

https://iranwire.com/en/news/148111-iran-limits-traders-to-20-minutes-of-supervised-internet-acce...
2•01-_-•29m ago•0 comments

Building an eBPF/XDP L2 Direct Server Return Load Balancer from Scratch

https://labs.iximiuz.com/tutorials/xdp-dsr-layer2-lb-92b02f3e
2•valyala•32m ago•0 comments

Show HN: CouchDB Importer – A pragmatic CSV/JSON import tool

https://github.com/wanjus/couchdb-importer
1•wanjus•34m ago•0 comments

Schwarz-Christoffel Mapping

https://en.wikipedia.org/wiki/Schwarz%E2%80%93Christoffel_mapping
1•ogogmad•34m ago•0 comments

How to Preserve Your Writing for a Hundred Years

https://idiallo.com/blog/preserve-your-writing-for-a-hundred-years
1•leephillips•34m ago•0 comments

AI Full-Stack App and Website Builder with Fewer Hallucinations, Runs Locally

https://www.elaric.ai
2•Aman_Kalwar•37m ago•2 comments

Iran Protest Death Toll Could Top 30k, According to Local Health Officials

https://time.com/7357635/more-than-30000-killed-in-iran-say-senior-officials/
51•mhb•39m ago•3 comments

Lawsuit claims Meta can see WhatsApp chats in breach of privacy

https://finance.yahoo.com/news/lawsuit-claims-meta-see-whatsapp-013745124.html
5•phyzix5761•40m ago•0 comments

The IndieWeb and Small Web

https://christiano.dev/post/indieweb_smallweb/
1•todsacerdoti•41m ago•0 comments

What is the best way to train for a marathon?

https://www.economist.com/science-and-technology/2025/12/26/what-is-the-best-way-to-train-for-a-m...
1•rienbdj•43m ago•0 comments

Secret 'discombobulator' weapon was crucial to Venezuelan raid on Maduro

https://nypost.com/2026/01/24/us-news/trump-reveals-to-the-post-secret-discombobulator-weapon-was...
9•diogenes_atx•43m ago•1 comments