Semua buku

Profesional

Aplikasi Tentang Pelatih Masuk Mulai membaca

Quantitative Finance · Glosarium

Apa itu Disruptor pattern?

Definition 12.2 Low-Latency Software · Bab 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.
Baca dalam konteks →