File Uploads Need a Quarantine State Bind approval to an immutable object version so a slow scanner cannot approve replacement bytes, and keep access gated by explicit upload state.
Webhook Consumers Need a Replay Contract Authenticate exact request bytes, preserve delivery identity in an inbox, and define what duplicate delivery means after a crash or a long delay.
Request Deadlines Need an End-to-End Budget Make queue time, downstream attempts, retry delays, and cleanup share one deadline, with an explicit contract for cancellation and propagation.
LLM Sandbox Goes Containerless: Bubblewrap and NsJail Backends How LLM Sandbox runs each command in a fresh native Linux sandbox while keeping session files, plus controlled benchmarks against Docker and the tradeoffs that matter.
Build your own Redis (3/5) - Redis Replication Following our exploration of Redis's persistence mechanisms, we now dive into one of Redis's most critical architectural features: replication. Replication enables data redundancy, read scaling, and high availability by maintaining copies of data across multiple Redis instances. Let's explore how Redis achieves this through
Redis Data Structures: A Pythonic Interface for Distributed Data Structures Introducing redis-data-structures - A Python library providing high-level, Redis-backed data structures with a clean, Pythonic interface.
Build your own Redis (2/5) - Redis Persistence Following the previous post, now, we will talk about redis persistence. While primarily known as an in-memory database, Redis offers a sophisticated durability model through two complementary strategies: RDB snapshots and AOF logs. Let's dive deep into how these work, implementing our own RDB parser along the
Build your own Redis (1/5) - Redis Serialization Protocol and Concurrency Model Redis represents a masterclass in systems design, particularly in how it balances performance with architectural elegance. Through implementing a Redis-compatible server via the CodeCrafters challenge, we'll deconstruct two fundamental architectural decisions that shape Redis's behavior: its wire protocol (RESP) and its event-driven concurrency model.
Building a Database From Scratch: Understanding LSM Trees and Storage Engines (Part 1) Learn core database concepts by implementing a Python key-value store with crash recovery and efficient writes. In this tutorial, we'll build a simple but functional database from scratch with Python. Through this hands-on project, we'll explore core database concepts like Write-Ahead Logging (WAL)
Concurrency Programming in Python: Thread vs. Process Concurrency is a vital aspect of modern programming, allowing applications to perform multiple tasks simultaneously, thus improving efficiency and responsiveness. In Python, developers often face the choice between using threads or processes to achieve concurrency. This blog explores the differences between these two concurrency models, how they interact with Python&