TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Zed Shaw's Advanced Network Architectures With ZeroMQ at Pycon 2011 [video]

75 点作者 atarashi大约 14 年前

5 条评论

haberman大约 14 年前
Can't watch the video right away, but I'll just say that every time I read the ZeroMQ guide (<a href="http://zguide.zeromq.org/page:all" rel="nofollow">http://zguide.zeromq.org/page:all</a>) I am frustrated by the lack of any clear technical explanation of ZeroMQ's basic architecture.<p>Today I gave it another shot, and after half an hour of trying to glean technical detail and skipping any parts that read like a like a comic book ("zap-pow-kaboom satori paradigm-shift moment"), I think I've learned the following:<p><pre><code> * ZMQ works by spawning a background thread that runs a poll() (or equivalent)-based async I/O loop. This thread is created when you create a ZMQ "context." * On top of a context you can create a ZMQ "socket", which may map to N underlying UNIX sockets (or a comparable transport), and which will transparently queue data to slow or unavailable receivers. * Over a socket you can send or receive "messages", which are length-delimited strings which are always delivered in full with the original length. Send/receive can be either blocking or non-blocking. * Contexts can be shared across threads, but sockets are not thread-safe. Communication between application threads and the ZMQ I/O thread is via a lock-free queue. </code></pre> The main features seem to be topology-agnostic programming (since you don't have to know what a socket is connected to to send/receive over it) and transparent queuing. In my opinion transparent queues can be problematic because they transparently use up memory that can be hard to account for. Topology-agnostic programming certainly seems interesting, but in my experience of distributed systems programming I never seem to need or want complex messaging topologies. I guess I don't really get what all the hype is about. Maybe I should watch the video.
评论 #2411921 未加载
评论 #2412034 未加载
评论 #2411800 未加载
评论 #2421769 未加载
评论 #2413318 未加载
xtacy大约 14 年前
I guess it would've been better if the title were "Advanced Network Communication Architectures (or Patterns)" with ZeroMQ. Network Architectures sounds more hardware-ish and (at least to me) sounds like it's talking about the actual network topology... :-)
JoachimSchipper大约 14 年前
Is there some text available somewhere (slides, perhaps)?
runjake大约 14 年前
Previously (with comments): <a href="http://news.ycombinator.com/item?id=2319875" rel="nofollow">http://news.ycombinator.com/item?id=2319875</a>
antidaily大约 14 年前
Is it Zed Shaw week on HN or something?
评论 #2411711 未加载