Go

Go Command-streaming lib for distributed systems (3x faster than gRPC)

Hacker News

Go Command-streaming lib for distributed systems (3x faster than gRPC)

I created cmd-stream-go, a high-performance client-server library based on the Command Pattern, where Commands are first-class citizens. Why build around Commands? As serializable objects, they can be sent over the network and persisted. They also provide a clean way to model distributed transactions through composition, and naturally support features like Undo and Redo. These qualities make them a great fit for implementing consistency patterns like Saga in distributed systems. On the performance side, sending a Command involves minimal overhead — only its type and data need to be transmitted. In benchmarks focused on raw throughput (measured using 1, 2, 4, 8, and 16 clients in a simple request/response scenario), cmd-stream/MUS ( cmd-stream/Protobuf ) is about 3x (2.8x) faster than gRPC/Protobuf , where MUS is a serialization format optimized for low byte usage. This kind of speedup can make a real difference in high-throughput systems or when you're trying to squeeze more out of limited resources. By putting Commands at the transport layer, cmd-stream-go avoids the extra complexity of layering Command logic on top of generic RPC or REST. The trade-offs: it’s currently Go-only and maintained by a single developer. If you’re curious to explore more, you can check out the cmd-stream-go repository ( https://github.com/cmd-stream/cmd-stream-go ), see performance benchmarks ( https://github.com/ymz-ncnk/go-client-server-benchmarks ), or read the series of posts on Command Pattern and how it can be applied over the network ( https://medium.com/p/f9e53442c85d ). I’d love to hear your thoughts — especially where you think this model could shine, any production concerns, similar patterns or tools you’ve seen in practice. Feel free to reach me as ymz-ncnk on the Gophers Slack or follow https://x.com/cmdstream_lib for project updates.

Share card

Actual performance

12points
4comments
Made the leaderboard

Launch Intel predictions

Analyze your own launch →
Product HuntOn track for Day 1 leaderboard · Strong signals: model, slack, single · Missing: mac, agents, macos
74%74% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Indie HackersFits the IH revenue-focused audience · Strong signals: created · Missing: supports, reddit linkedin, podcasting
74%74% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
TrustMRRFits verified-revenue profile · Strong signals: way · Missing: mobile apps, ios, personal
51%51% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
AppSumoMay struggle as an AppSumo deal · Missing: plus, platform, intuitive
43%43% predicted probability of success on AppSumo, based on ML models trained on real launch data.
Hacker NewsMay not resonate with HN audience · Strong signals: ide, io · Missing: https docs, excited, just released
31%31% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
Acquire.comPre-revenue stage for this audience · Missing: arr, mrr, revenue
17%17% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
0%0% predicted probability of success on BetaList, based on ML models trained on real launch data.

Incorrect prediction on native model

Similar products

Ji
Jist searches JSON 3x faster than jq57%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Jist searches JSON 3x faster than jq

Hacker News11
Bu
Build Dashboard 3x Faster39%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Build Dashboard 3x Faster

Hacker News1
YouReadFast
YouReadFast50%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Read 3x faster with enhanced comprehension

Product Hunt+6
Pr
Prexist – AI-powered search for products (now 3x faster with Exa AI)40%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Prexist – AI-powered search for products (now 3x faster with Exa AI)

Hacker News1
Vibesuite
Vibesuite85%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Work 3x faster with v0, Lovable, and more

Product Hunt+190Chrome Extensions
Si
Sipp – Run small local LLMs in browser 3x faster82%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Sipp – Run small local LLMs in browser 3x faster

Hacker News5
3X Data Engineering Accelerators
3X Data Engineering Accelerators32%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Automating Data Engineering Services 3X Faster

Indie Hackerscommitment-full-time
Monologue
Monologue80%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Effortless voice dictation so you can work 3x faster

Product Hunt+329Productivity
CP
CPU transcription for YouTube/TikTok/X, now 3x faster and diarization57%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

CPU transcription for YouTube/TikTok/X, now 3x faster and diarization

Hacker News3
Ho
How we created a mail client that's 2-3x faster than Gmail56%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

How we created a mail client that's 2-3x faster than Gmail

Hacker News2