Skip to content
Learn Netverks
Company prep Mollie
Senior (5–8 years) System design Hard

Design a distributed caching layer for a high-traffic read-heavy application

Reported in Mollie European engineering loops. Senior system design combining sharding, eviction, consistency, and observability.

Role
Senior SDE
Location
Remote (EU)

Often asked in Mollie loops at European offices (London, Berlin, Amsterdam, Paris, Stockholm, Dublin, and remote EU). Prepare a clear spoken answer plus key trade-offs.

Try answering aloud first

Cover trade-offs, structure, and a concrete example before revealing the baseline response.

Spoiler-free prep mode

How to frame this at Mollie: Connect your answer to measurable impact, clarity of thought, and trade-offs the team cares about. Below is a strong baseline response you can adapt with your own project examples.

Requirements: sub-millisecond reads, horizontal scale, TTL support, tolerate node failures, optional near-cache on app servers.

Architecture: Client-side consistent hashing to shard keys across Redis/Memcached cluster; replication for HA; optional local LRU (Caffeine) as L1 with invalidation via pub/sub.

Patterns: cache-aside with TTL jitter to prevent thundering herd; single-flight on miss; negative caching for absent keys briefly to protect DB.

Consistency: accept eventual consistency; version stamps in values; write-through for critical keys. Monitor hit ratio, latency p99, evictions, and hot keys—consider read replicas or key splitting for hot spots.

Comments (0)

Share how this question came up in your loop, or add tips for others preparing.

Log in to comment on this question.