全部书籍

专业

应用 关于 Coach 登录 开始阅读

书籍暂未推出简体中文版——当前显示英文版。

Quantitative Finance · 术语表

什么是 Disruptor pattern?

Definition 12.2 Low-Latency Software · 第 12 章 — Queues, Ring Buffers and Shared Memory

In the disruptor pattern one ring carries every event to several consumers, each reading at its own position; consumers that depend on each other wait on each other’s positions rather than on queues between them, so a pipeline of stages becomes one ring with several cursors and no copies.

A broadcast ring of eight slots after 16 messages. Each reader keeps its own position; the producer never waits. A reader at position 6 finds slot 6 holding message 14, a later sequence than it expects: it has been lapped (a slow consumer) and must resynchronise.
Figure 12.3. A broadcast ring of eight slots after 16 messages. Each reader keeps its own position; the producer never waits. A reader at position 6 finds slot 6 holding message 14, a later sequence than it expects: it has been lapped (a slow consumer) and must resynchronise.
在原文中阅读 →