Blog

Notes on RDMA, EFA, and building a remote-memory cache on AWS.

Design · June 2026 When the cache server writes the answer into you One-sided reads are a pull, but a value on NVMe can't be pulled because the NIC can't fi_read block storage. Flip the direction: the client hands the node a write-key and the node RDMA-writes the value straight into the client's buffer. One round trip, the reply is the completion. Read → Insight · June 2026 How a one-sided RDMA cache stays correct without trusting the reader No server runs on the read path. One decision makes that safe: values are immutable. Write-once dissolves torn and stale reads outright, leaving three guards: a signed descriptor, a checksum over every read, and rkey rotation as a hardware fence on the one moment memory is reused. Why the worst case is always a recompute, never a wrong value. Read → LMCache · June 2026 Optimizing LMCache's prefix lookup for one-sided RDMA How LMCache's existence check works, why it does it (prefix caching), the batched contains it already uses, and how a one-sided RDMA backend folds the read address into that check and releases the GIL. Read → Benchmark · June 2026 Connections, queue depth, and batch reads: tuning a one-sided RDMA cache What it takes to saturate EFA across object sizes: how many connections each size needed (32 for 4 KiB, one from 4 MiB up), why queue depth is the cheaper knob, and how batched get_many collapses the metadata round-trips. Read → Architecture · June 2026 Rasa architecture in one page A compact system map: client SDK, Valkey control plane, data nodes, registered arenas, EFA/libfabric, and what deliberately stays off the hot path. Read → Deep dive · June 2026 How Rasa reads: descriptors, bulk reads, and the cost of moving memory One-sided reads are simple once the client has a descriptor. The deeper story is descriptor batching, tiny client maps, and why stable remote memory is the real invariant. Read → Deep dive · June 2026 How Rasa writes: allocate, RDMA-write, commit RDMA writes move bytes quickly. Production correctness comes from allocation grants, commit ordering, signed descriptors, and not publishing half-written memory. Read → Insight · June 2026 Why mutability is hard with RDMA One-sided reads are fast because no one is home on the read path, which is exactly what makes changing a value in place hard: torn reads, no read-side validation, and memory you cannot safely reclaim. Why immutability is the usual answer. Read → Deep dive · June 2026 SRD: the cloud-native transport under EFA Why AWS replaced TCP and InfiniBand inside the cloud with SRD: packet spraying across many paths, out-of-order delivery, microsecond hardware retransmission in the Nitro card, and where it powers EFA, ENA Express, and EBS. Read → Guide · June 2026 Deploy Rasa in your own AWS account with the CDK What the stack creates, the deploy steps, every context parameter, and the controls the management console gives you, from adding a data node to draining and rotating arenas. Read → Primer · June 2026 RDMA on AWS: what it is, how it works, and what makes EFA different A concise, objective primer: kernel bypass and one-sided reads, why RDMA is hard, how it differs from a normal key/value GET, what AWS's SRD transport changes, and which EC2 instances support EFA. Read →