Field Notes

Asu Singh’s notebook

Performance engineering

TailCache

We built a shared cache at a hackathon. I wanted to know why some requests take so much longer than others.

Read from the start →

Contents 6 milestone notes

  1. 01
    5 Jun 2026

    Why did every program need its own copy?

    At a hackathon at ION Trading, my team built a way for several programs to share one copy of a record. TailCache grew out of the question that stayed with me.

    ↗
  2. 02
    15 Aug 2026

    When is an off-heap Java cache worth the copy?

    Caffeine keeps records in memory that Java manages. Chronicle Map stores their bytes outside it. Reading one record a thousand times helped me see the trade.

    ↗
  3. 03
    5 Sept 2026

    What does a cache hit cost?

    A Java cache can find a record before the program can use it. Deciding when to stop the timer shaped my first Caffeine and Chronicle Map benchmark.

    ↗
  4. 04
    19 Sept 2026

    How do you give two Java caches the same work?

    I gave both caches the same list of records to read and update. One shortcut in the test code could still have made Caffeine look cheaper to run.

    ↗
  5. 05
    10 Nov 2026

    Why the same cache test gave me two answers

    At the same memory setting, two runs picked different winners. Counting how many requests took longer than 100 microseconds helped explain the split.

    ↗
  6. 06
    23 Nov 2026

    Same write rate, different winner

    Both Java caches handled about 2,500 updates a second. Changing which records got updated reversed which cache gave the quicker response near the slow end.

    ↗
← Asu Singh’s portfolio