Ubiquitous Caching: A Journey of Building Efficient Distributed and In-Process Caches at Twitter

QCon San Francisco 2022

Session

Ubiquitous Caching: A Journey of Building Efficient Distributed and In-Process Caches at Twitter

Monday Oct 24 / 01:40PM PDT, Ballroom A

Abstract

Modern web applications widely deploy cache across the stack to speed up data access and improve throughput.

In this talk, I will discuss three trends in hardware, workload, and cache usage that shape the design of modern caches.
The slow down of memory capacity scaling, the exploding data creation rate, and the wide adoption of Time-to-live (TTL) motivated the design of Segcache (https://paper.segcache.com and https://open-source.segcache.com).

Segcache is a new cache storage design that provides high memory efficiency and high throughput via metadata sharing to save space wasted on metadata, approximate indexing to efficiently remove short-lived data, and macro management for high throughput and linear scalability.
The design of Segcache is driven by the insight that key-value cache is different from key-value store + eviction, and is the outcome of exploring different trade-offs between caching and storage.

We deploy Segcache as standalone distributed caches and embedded off-heap caches for JVM-based microservices at Twitter. The distributed cache deployment significantly reduces the resources (CPU/DRAM) provisioned for cache clusters; the embedded deployment allows us to speed up data access and reduce GC pause time.

76% senior dev or higher
1:11 speaker ratio
60+ practitioners

QCon San Francisco 2022 is a three day conference for senior software engineers, architects and team leads. An international program committee of working engineers selects every session. Patterns and practices, not products and pitches.

Share

From the same track

Monday 24 October

10:35 Bayview Session Backends Backends in Dart Chris Swan Engineer @atsigncompan, Previously Fellow @DXCTechnology, CTO & Director of R&D roles @CohesiveNetworks @UBS @Capital SCF and @Credit Suisse 11:50 Bayview Session Backends 24/7 State Replication Todd Montgomery Ex Researcher @Nasa, Engineering Fellow @ Adaptive Financial Consulting and a High Performance Distributed Systems Whisperer 13:40 Ballroom A Session Ubiquitous Caching: A Journey of Building Efficient Distributed and In-Process Caches at Twitter Juncheng Yang Ph.D. student @CarnegieMellon, Focus on Efficiency and Performance, Previously @Twitter & @Cloudflare, Facebook Fellow 14:55 Ballroom BC Session Panel: Building Modern Backends Chris Swan, Frank Yu, Juncheng Yang 16:10 Ballroom BC Session Microservices Data Mesh: Are We There Yet? Zhamak Dehghani CEO and Founder @Stealth Startup, Data Mesh Founder, Author, Speaker 17:25 Ballroom A Session Backends Leveraging Determinism Frank Yu Director of Engineering @Coinbase, Previously Principal Engineer and Director @FairX