← tech log
· 12 min read

Designing a Lock-Free SPMC Queue for Market Data Fan-Out

Placeholder description. One sharp sentence about the post, used as the OG/social preview text. Rewrite this.

c++lock-freelow-latencyconcurrency
Diagram of a single-producer multi-consumer ring buffer

This is a placeholder post. Structure, code blocks, tables, and formatting are here to demo the layout. Replace the prose with your own.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Intro paragraph goes here: what the problem is and why it matters on the hot path. Keep it plain.

A subheading

Lorem ipsum dolor sit amet. Explain the idea. Code renders with Shiki syntax highlighting:

template <class T, size_t N>  // N must be a power of two
struct SpmcRing {
  struct alignas(64) Slot {
    std::atomic<uint64_t> seq{0};
    T value;
  };
  alignas(64) std::atomic<uint64_t> write_pos_{0};
  std::array<Slot, N> slots_;
};

A short list works too:

  • First point.
  • Second point.
  • Third point.

Another subheading

Tables render as well:

Column AColumn BNotes
foobarplaceholder
bazquxplaceholder

Wrap up here. Replace everything above with the real writeup.