按年被提到
20102023 · 9 次2026
开源书›系统与网络·No.38·简称 zguide

ZeroMQ: The Guide

ZeroMQ 指南
Pieter Hintjens

用 ZeroMQ 讲透消息传递模式与分布式系统设计的综合指南

免费阅读 ↗
被推荐 · 67 人首次 2010-11-17 · 最近 2026-04-30许可证 CC BY-NC-SA 3.0
67不同的人
50活跃月份
24有推荐的月份
61讨论串

Pieter Hintjens 以 ZeroMQ 为线索,讲消息传递的基本模式,如请求应答、发布订阅、分发与汇总,再延伸到可靠性、代理和更大的分布式系统设计。书中有大量多种语言的示例代码,从简单的 hello world 讲到复杂的模式。和单纯的库文档相比,它先定义问题、再讲设计模式,对并发和网络编程也有借鉴价值。

HN 为什么推荐它

HN 上的人称它是自己见过的最好的技术写作之一,即使不用 ZeroMQ 也值得读,因为它讲清了并发消息传递和分布式系统的通用原理;也有人批评它对 ZeroMQ 基本架构缺少清晰的技术说明。

难度 3 / 5约 25 小时开放许可
适合谁

想学网络编程与消息系统设计的开发者

读之前最好知道
1C 语言或任一主流语言
2套接字(socket)基础
3并发基础

怎么读

由 Claude 根据这本书和 HN 上的说法整理,可能有错
  1. 1先读第一章的概览,再跑通 hello world 和任务分发的例子
  2. 2按模式一章一章往下读,每个模式自己写一遍
  3. 3可靠性相关的章节,如 Lazy Pirate 一类模式,值得细读
  4. 4即使不打算用 ZeroMQ,也建议看设计思路和问题定义

HN 书评

推荐在前,同类按时间 · 每本最多保留 20 条,统计用全部提及 · 作者本人贴的不算
强烈推荐unoti · 2014-06

“you owe it to yourself to spend some time working through this guide on ZeroMQ[1]. It could change the way you think about software architecture forever”

强烈推荐花时间读它,可能永远改变你对软件架构的想法
Concurrency is the New Memory Management原评论 ↗
强烈推荐jen20 · 2019-10

“is undoubtedly one of the best pieces of technical writing I've ever encountered - like another commenter posted, it's worth reading even if you will never use ZeroMQ.”

称它是读过最好的技术写作之一,即使不用 ZeroMQ 也值得读
Fixing the World (2011)原评论 ↗
推荐kogir · 2011-03

“to actually learn about it The Guide is awesome:”

称想真正学 ZeroMQ,这份 Guide 很棒
PyCon 2011 Video: Advanced Network Architectures With ZeroMQ, by Zed Shaw原评论 ↗
推荐j2d2j2d2 · 2011-03

“I think their doc explains the rest better than I could, I recommend reading this: ZeroMQ”

推荐读它,讲 ZeroMQ 套接字类型和搭建 broker
How Grooveshark Uses Gearman原评论 ↗
推荐pjscott · 2011-04

“It's surprisingly well-written, and I wish it had existed when I first tried to learn ZeroMQ.”

称它写得出奇地好,希望自己当初学 ZeroMQ 时就有
335k downloads of Learning Python The Hard Way原评论 ↗
推荐pedoh · 2011-11

“The guide is very lengthy and comprehensive, but the "hello world" example and the "Divide and Conquer" example (fan out jobs, work, fan in results) will get you up and running”

说它冗长全面,但 hello world 和 Divide and Conquer 示例就能上手
ØMQ: Mission Accomplished原评论 ↗
看全部 20 条 →
推荐jhawk28 · 2011-11

“chapter one does a good overview of the capabilities: ZeroMQ”

推荐第一章,对 ZeroMQ 能力有很好的概览
ØMQ: Mission Accomplished原评论 ↗
推荐Loic · 2012-03

“Check the ZMQ Guide[2], you have nearly everything nicely explained there.”

让人看 ZMQ Guide,几乎所有内容都讲得很清楚
推荐snprbob86 · 2012-08

“The ZeroMQ Guide [1] is extremely enlightening in this regard. It's worth reading even if you never use ZeroMQ because all of the underlying principals apply to any network transport.”

称它极具启发,即使不用 ZeroMQ,其原理也适用于任何网络传输
Distributed Systems with ZeroMQ原评论 ↗
推荐kinofcain · 2013-07

“The guide is a fascinating read. Even if you never write anything using ZeroMQ, it's a very useful intro to designing concurrent message passing systems.”

称它读来迷人,是设计并发消息传递系统的有用入门
ZeroMQ instead of HTTP, for internal services原评论 ↗
推荐nieksand · 2013-07

“The "lazy pirate pattern" was added to the Guide a while back. It explains how to deal with this robustly.”

指出 Guide 里的 lazy pirate pattern 讲了如何稳健处理这个问题
ZeroMQ instead of HTTP, for internal services原评论 ↗
推荐jvoorhis · 2014-07

“I recommend checking out the online 'zguide' book at ZeroMQ.”

推荐在线的 zguide,了解以 ZeroMQ 为基础的网络编程模式
Ask HN: Books on network programming patterns?原评论 ↗
推荐ejstronge · 2014-07

“reading the ZeroMQ introduction was great in gaining an appreciation for the difficulties arising from creating distributed applications and was enjoyable, to boot [3].”

说读它的导言让自己体会到分布式应用的难处,读来也愉快
Ask HN: Python SOA framework原评论 ↗
推荐dhanush · 2015-11

“And a very comprehensive guide: ZeroMQ”

推荐它作为非常全面的 ZeroMQ 指南
Ask HN: Which open source projects have kind, supportive, talented teams?原评论 ↗
推荐drakenot · 2016-02

“It is useful not just for using ZeroMQ, but about learning about distributed systems in general.”

称它不止教 ZeroMQ,也是学分布式系统的好文档
Ask HN: What's the best documentation you've ever read (or written)?原评论 ↗
推荐tengbretson · 2016-08

“You should checkout the ØMQ guide. They do such a good job of first defining the problem space, and then establishing the design patterns they use to solve it.”

推荐它,先界定问题空间再确立设计模式,值得 API 设计借鉴
Ask HN: What are good reads for designing APIs?原评论 ↗
推荐macns · 2016-09

“It's a great read and describes most scenarios well and easy to understand.”

称它好读,把大多数场景讲得清楚易懂
From Kafka to ZeroMQ for real-time log aggregation原评论 ↗
推荐croo · 2018-04

“Take a look at the documentation of zeromq [1]. This is one of the best documentations I've read so far.”

拿它当先讲问题的技术文档范例,称是读过最好的文档之一
Ask HN: How to document your *project*原评论 ↗
推荐metadaemon · 2020-01

“Also, the ZeroMQ Guide has some fun networking concepts.”

说它有一些有趣的网络概念,可用来学网络知识
Ask HN: What Technologies to Learn in 2020?原评论 ↗
批评haberman · 2011-04

“every time I read the ZeroMQ guide I am frustrated by the lack of any clear technical explanation of ZeroMQ's basic architecture.”

批评它每次读都缺少对 ZeroMQ 基本架构的清晰技术说明
Zed Shaw's Advanced Network Architectures With ZeroMQ at Pycon 2011 [video]原评论 ↗