Kafka Availability Checklist

Five things to check when spreading Kafka on Kubernetes (Strimzi, KRaft) across three zones: controller quorum, broker rack, pod scheduling, operator placement, and follower fetching. Each item covers the risk, what happened, and what to check.

November 24, 2026 · 8 min read

Kafka Cross-Zone Transfer Cost

Spreading Kafka across zones creates cross-zone transfer charges on three paths: produce, replication, and consume. This covers how GCP and AWS bill that traffic, the path you can cut without changing placement (follower fetching), the trade-offs of per-zone clusters and two-zone placement, and controller quorum placement, then measures broker egress before and after follower fetching on a local Docker cluster.

November 17, 2026 · 14 min read

Rust async and the tokio Scheduler

Calling an async fn runs none of its body; it only produces a Future value. A Future is a state machine that advances to the next await each time it is polled, and when it cannot advance it leaves a Waker behind and returns Pending. After the first poll its state depends on its own address, so Pin keeps it from being moved. On a tokio runtime with two workers, four std::thread::sleep(100ms) jobs occupied both workers and delayed a task that wakes every 10ms by about 200ms; moving the same jobs to spawn_blocking brought the delay back to the few milliseconds seen without blocking. The tenth and final post in a Rust study series.

November 17, 2026 · 20 min read

Rust Closures and Iterators

A closure is a struct whose fields are the values it captures, and whether its body reads, mutates, or consumes those values decides whether it is Fn, FnMut, or FnOnce. Iterator adapters only stack up structs that hold such closures; elements pass through the chain one at a time when a consuming method like collect calls next. The sixth post in a Rust study series.

November 17, 2026 · 19 min read

Rust Memory Layout and Allocation

The same three-field struct takes 12 bytes when it keeps declaration order and 8 when the compiler picks the order. Option<&T> is 8 bytes like the pointer itself, with no tag, and a Vec keeps 24 bytes on the stack and its elements on the heap. Sizes were checked with size_of and the effect of removing allocations with criterion. The eighth post in a Rust study series.

November 17, 2026 · 18 min read

Rust Smart Pointers

A linked list written as a plain enum fails with E0072, and an Rc sent to a thread fails with E0277. Box lifts the rule that sizes must be known at compile time, while Rc, RefCell, Arc, and Mutex each relax the one-owner, no-overlapping-borrows rule, paying with a heap allocation, count updates, run-time checks, or locking. The seventh post in a Rust study series.

November 17, 2026 · 20 min read

Rust Traits, Generics, and dyn

Generics (including argument-position impl Trait) compile a copy of the function for each type it is called with and call it statically. dyn Trait compiles one function that reads the implementation’s address from a vtable. I treat the choice as depending on whether types must be mixed, and on whether the cost of extra copies or of indirect calls is the one that hurts. The fifth post in a Rust study series.

November 17, 2026 · 17 min read

Rust unsafe Boundaries

The borrow checker still runs inside an unsafe block, so two mutable borrows there still give E0499. What unsafe opens is operations the compiler cannot check, such as dereferencing a raw pointer (the Rust Book lists five), and the author has to supply the reason each one is safe. I wrapped split_at_mut in a safe function and implemented Send by hand for a type holding a raw pointer, to see where that responsibility splits. The ninth post in a Rust study series.

November 17, 2026 · 17 min read

Rust Lifetimes

A lifetime annotation 'a does not make a value live longer. It is a contract stating which input a returned reference borrows from, and the borrow checker combines that contract with each reference’s last use to compute borrow regions. The fourth post in a Rust study series.

November 14, 2026 · 11 min read

The eBPF Program Model

How an eBPF program enters the kernel as bytecode, passes the verifier and JIT compilation, and attaches to a hook; how it talks to the kernel and user space through maps, helpers, and kfuncs; and a hands-on look with bpftrace at syscall counts, a latency histogram, and a verifier rejection.

November 1, 2026 · 12 min read

Rust References and Borrowing

A Rust reference borrows a value without taking ownership. The compiler allows many shared references &T or a single mutable reference &mut T at a time, rejecting code that changes a borrowed value, and it also rejects references that would outlive their owner, all at compile time. The third post in a Rust study series.

October 29, 2026 · 13 min read

TCP Congestion Control Algorithms

Why AIMD’s add-and-multiply rule converges to fairness, how loss-based Reno and CUBIC build on it and where they fall short, and how BBR replaces the loss signal with a model of bandwidth and RTT.

October 22, 2026 · 13 min read

Rust Move, Copy, and Clone

In Rust, assignment and passing a function argument move ownership by default. Only Copy types are bitwise-copied and leave the original usable, and the cost of duplicating heap data shows up in the code as a clone() call. The second post in a Rust study series.

October 15, 2026 · 11 min read

Rust Ownership and Freeing Memory

Rust has no garbage collector. Every value has a single owner, and the value is dropped where that owner’s scope ends. Because the drop point is fixed by scopes in the source code, files and locks are cleaned up by the same rule as memory. The first post in a Rust study series.

October 8, 2026 · 9 min read

Why Put a Rust Sidecar Next to a Go Service

A Rust sidecar next to a Go service is a latency-budget decision, not a language preference. Moving pointer-heavy, long-lived data off the Go heap cuts GC cost, and running it as a process in the same Pod avoids a network hop. Covers GC diagnosis, the costs, and when the setup fits.

October 1, 2026 · 8 min read

GitHub ARC — From Queued Job to Deleted Runner Pod

How a single job moves through Actions Runner Controller (ARC) runner scale set mode, from the GitHub queue to a runner pod and its deletion, component by component. Also covers differences from legacy mode, container modes, and common operational issues.

September 17, 2026 · 8 min read

Iceberg: Turning a Pile of Files into a Table

A set of Parquet files in object storage lacks what a database table provides: atomic commits, schema changes, and point-in-time reads. Iceberg restores them by recording the table’s file list in metadata files and treating a pointer swap as the commit. The cost is ongoing maintenance to clean up small files, old snapshots, and orphan files.

September 3, 2026 · 12 min read

Data Lakes and ETL for Backend Engineers

A data lake keeps raw data cheaply and leaves structure to whoever reads it. Moving data between the raw, staging, and mart layers is the transformation called ETL/ELT, and Spark is the engine that runs it across many machines. Written for backend engineers used to service databases.

August 12, 2026 · 9 min read

Top-K — Heap Is Not Always the Answer

A heap is the reflex answer to K-th largest problems, but when the whole array is already in memory, Quick Select is faster on average. The size-K heap and Quick Select mechanics, and how the shape of the data decides between them.

July 9, 2026 · 5 min read

JPA Persistence Context and Dirty Checking

A managed entity from findById gets UPDATEd through dirty checking, with no save() call. The three entity states, how snapshot comparison works, what save() actually does, and the persistence context lifetime that all of it depends on.

July 6, 2026 · 4 min read

@Transactional Only Works Through the Proxy

@Transactional doesn’t work just because it’s declared. Spring wraps the bean in a proxy and intercepts only the calls that go through it. Why the annotation is silently ignored on private methods and self-invocation, and how @DataJpaTest’s test transaction hides the defect.

July 5, 2026 · 5 min read

Union-Find — Two Optimizations Make It Practically Constant

Union-Find gives each group a root representative and decides whether two elements share a group. The unoptimized version stretches find to O(N) on chain trees; path compression and union by rank make it practically constant.

July 4, 2026 · 5 min read

Topological Sort — Process Zero In-degree First

Kahn’s BFS for topological sort repeatedly takes nodes with zero in-degree, and cycle detection comes along without extra logic. The mechanism, the Course Schedule problems, and the selection criteria against DFS post-order.

July 3, 2026 · 5 min read

Sliding Window and Prefix Sum — When Monotonicity Decides

Subarray-sum problems collapse from O(N²) to O(N) along two paths — sliding window or prefix sum with a hash. Negative inputs or strict-equality conditions break monotonicity and shift the work from sliding window to prefix sum.

June 14, 2026 · 4 min read

Load Balancing Algorithms — From Round Robin to LOR

Round Robin and Least Connection were the standard load balancer choices for years. Yet the core algorithm that modern LBs like Envoy and AWS ALB ship as their headline option is Least Outstanding Requests, and its practical implementation is Power of Two Choices. This post traces the evolution path along which the unit of routing decisions moved from connection to request.

June 13, 2026 · 7 min read

Parametric Search — Binary-search the Answer

When the answer isn’t sitting in any array, you can still binary-search the answer itself. The parametric-search recipe — define the decision function, fix the direction of monotonicity, justify lo and hi.

June 13, 2026 · 5 min read

Microservices Architecture

MSA is a decision about which criterion to use to decompose the system. Domain boundary, data ownership, scale pattern, failure isolation — the chosen criterion creates the service boundaries, and those boundaries decide communication and data in turn.

May 9, 2026 · 7 min read

Claude Code Config in Four Layers

settings.json, CLAUDE.md, slash commands, subagents, hooks. Claude Code’s customization surface settles into four layers once you pick one criterion: when does each one step in?

May 1, 2026 · 11 min read

macOS Dev Environment: Dotfiles

alacritty + tmux + nvim + zsh + Claude Code in a single screen. The choices and structure behind a terminal-centric development environment.

April 30, 2026 · 10 min read

JIRA Sprint Workflows and Git/GitHub Integration

Looking at JIRA’s issues and workflows as a graph of work units — covering the Sprint lifecycle, issue hierarchy, Git/GitHub integration patterns, and automation flows.

December 30, 2025 · 6 min read

GitHub Actions Fundamentals — Workflow, Job, Step

GitHub Actions seen as an event-driven automation engine — the three-layer abstraction of workflow / job / step, plus the operational details of triggers, runners, and secrets.

December 15, 2025 · 6 min read

GitHub PRs and the Code Review Cycle

Looking at GitHub PRs as a collaboration layer added to Git’s change graph, and walking through the Code Review cycle, PR-level design, and merge strategies.

November 30, 2025 · 5 min read

Git Workflow Basics — Commits, Branches, Merge vs Rebase

Looking at Git as a graph of changes — and seeing how commit hygiene, branching strategy, and the merge-vs-rebase choice are all decisions about the shape of that graph.

November 15, 2025 · 5 min read

Designing and Operating SLAs for Low-Latency Services

An SLA isn’t kept by monitoring after the fact — it’s built by design and held by operation. Once the SLI for a low-latency service becomes p99 latency rather than availability, timeout budgets, caching, degradation, isolation, and load shedding build the SLA, while p99 SLOs, burn-rate alerting, headroom, deploy gates, and the review cycle hold it.

September 15, 2025 · 10 min read

Zero-Downtime Data Transition Pattern

A three-step pattern combining dual write and fallback read to transition data formats in live services without downtime.

April 15, 2025 · 4 min read

MLflow and the ML Lifecycle

Which slot of the ML lifecycle each MLflow component fills, and which pieces a lightweight team can pick.

February 20, 2025 · 6 min read

Circuit Breaker

A Circuit Breaker’s trip trigger and recovery strategy must be designed together. Trip without recovery cuts the dependency permanently; recovery without a trip basis becomes meaningless cycling.

February 15, 2025 · 7 min read

Training Frameworks and Inference Formats: Where sklearn and ONNX Belong

sklearn and ONNX aren’t competing at the same layer. Once you separate their roles, the real question becomes ‘do I need an ONNX layer at all?’

February 1, 2025 · 6 min read

Revisiting Logistic Regression

The structure and characteristics of Logistic Regression, and why an old model still serves as the baseline in CTR prediction.

January 15, 2025 · 9 min read

Envoy — When Static Reverse Proxies Meet Cloud-Native

Manual reload, static upstreams, weak L7 observability — four limits a static reverse proxy hits in a cloud-native environment, and the four mechanisms Envoy uses to address them.

July 10, 2024 · 5 min read

VPC for Backend Engineers

Isolation, routing, connectivity, security — VPC’s four axes pulled into one place, framed around the decisions backend engineers actually face.

June 17, 2024 · 10 min read

Three Type Systems and Runtimes — JVM, CPython, and the Go Compiler

Java pairs static strong typing with JVM bytecode and adaptive JIT optimization. Python combines dynamic typing with an interpreter and declarative type hints. Go ships static structural typing and a single compiler. The type-system decision drives the runtime mechanism.

June 16, 2024 · 6 min read

Three Concurrency Models — GIL, Virtual Thread, and Goroutine

CPython’s GIL serializes multithreaded execution and pushes work onto multiprocessing or asyncio. Java pinned threads 1:1 to the OS until virtual threads (Java 21) reopened the thread-per-request model. Go shipped with an M:N scheduler from day one. The model you start from decides whether your service goes thread-per-request, reactive, or multiprocess.

June 15, 2024 · 6 min read

Web Server, WAS, Reverse Proxy — Three Different Problems

These three tools often sit in the same place but solve different problems. A look at how static content, dynamic content, and traffic mediation get split among them.

June 15, 2024 · 4 min read

Three Garbage Collectors — How Java, Python, and Go Reclaim Memory

All three languages use a garbage collector, but the priorities differ. Java leans on generational + region GCs (G1, ZGC), Python combines reference counting with a cyclic detector, and Go runs a single concurrent tri-color mark-and-sweep. What each GC gave up is what shapes its operational profile.

June 14, 2024 · 6 min read

Everything Is Pass by Value — Memory Transfer in Go, Java, and Python

Calling a function with an object is often described as pass by reference, but in memory all three languages copy values. Java copies a reference value, Python binds a new name to the same object (call by sharing), and Go copies a struct header — escape analysis decides where the values live.

June 13, 2024 · 7 min read

TLS in Practice: Session Resumption, mTLS, and Automated Issuance

Three practical topics for operating TLS on top of the basic handshake. Session resumption and 0-RTT cut the repeated cost, mTLS authenticates the client too, and ACME automates certificate issuance and renewal.

April 12, 2024 · 6 min read

Kubernetes Fundamentals

Container orchestration basics and what backend developers need to know: core objects, networking, scaling with HPA, and operational essentials.

April 10, 2024 · 7 min read

Go Concurrency Model

Go’s concurrency model builds on CSP, providing Goroutines and Channels as core tools. An overview of how each works and when to choose what.

April 5, 2024 · 4 min read

TLS Handshake and Certificates

TLS builds a secure channel over an untrusted network by providing confidentiality, integrity, and authentication. A walkthrough of symmetric/asymmetric hybrid encryption, the TLS 1.2 handshake, the certificate and PKI trust model, and what TLS 1.3 improved.

April 5, 2024 · 7 min read

MongoDB vs Redis — Same NoSQL, Different Roles

Why MongoDB and Redis end up in different roles even under the same NoSQL umbrella. A comparison across data model, storage, schema, scaling, and use cases.

April 2, 2024 · 5 min read

Spring WebFlux Fundamentals — Non-blocking I/O and the Reactive Stack

Spring MVC assigns one thread per request. When I/O waits pile up, threads sit idle. WebFlux replaces this with an event loop-based non-blocking model. A summary of the structural differences from MVC, the Reactor pattern, and when to choose which.

March 25, 2024 · 4 min read

HTTP/1.1 and HTTP/2

HTTP/1.1 processes requests and responses sequentially. HTTP/2 changed this with multiplexing, binary framing, and header compression. A summary of the differences between the two protocols and gRPC, which runs on HTTP/2.

March 20, 2024 · 5 min read

Observer

Observer cuts coupling through a one-to-many relationship that notifies subscribers of state changes. The Subject just notifies, unaware of who listens. EventEmitter, RxJS, and event-driven architecture all extend from here. It differs from broker-mediated pub/sub.

March 17, 2024 · 3 min read

Docker Container Fundamentals

Covers container concepts, the differences from VMs, Docker’s architecture, and the basics of Dockerfile and Docker Compose.

March 15, 2024 · 5 min read

Horizontal vs Vertical Slicing

The difference between splitting code by technical layers (horizontal) and by features or domains (vertical). Trade-offs and selection criteria for each approach.

March 10, 2024 · 3 min read

Strategy

Strategy encapsulates a family of algorithms behind a single interface and swaps them at runtime. It extends by adding a strategy instead of editing an if/switch. In languages with first-class functions, a separate Strategy class collapses into a single function.

March 3, 2024 · 4 min read

Nest.js Fundamentals — DI and Module System

Nest.js provides a DI container and Module system at the framework level in the Node.js ecosystem. A summary of its core design principles: IoC, DI, Module, and Provider.

February 26, 2024 · 5 min read

Facade

Facade provides a simple entry point to a complex subsystem, cutting the coupling between the client and the internals. A service layer or a library SDK is effectively a Facade. It differs from Adapter (interface conversion) and Mediator (two-way coordination).

February 25, 2024 · 3 min read

Layered Architecture and Dependency Inversion

Layered architecture separates code into horizontal layers by technical responsibility. A summary of the four-layer structure, dependency direction rules, and how DIP decouples layers.

February 23, 2024 · 4 min read

Kafka Fundamentals and KRaft Mode

Core Kafka concepts (topics, partitions, consumer groups, replication) and the background behind KRaft mode, which removes the ZooKeeper dependency.

February 22, 2024 · 9 min read

Implementing Hexagonal Architecture in Go

Core concepts of Hexagonal Architecture and its idiomatic implementation in Go using implicit interfaces and package structure for dependency direction control.

February 21, 2024 · 5 min read

Decorator

Decorator replaces the subclass explosion of inheritance with composition. It stacks wrappers that keep the same interface to add behavior at runtime. java.io, Python function decorators, and web middleware chains are all variations on the same intent.

February 18, 2024 · 4 min read

Builder

Builder is the answer when three limits of constructors meet at once — many parameters, some optional, and step-wise validation. With fewer than all three, simpler tools suffice. When the language provides rich named/default parameters, the need for Builder shrinks as well.

February 11, 2024 · 5 min read

Factory

Factory’s shared intent is separating creation from use. The three variants — Factory Method, Abstract Factory, and Static Factory Method — split creation differently and suit different conditions. Static Factory Method is the variant most often encountered in practice, and DI containers absorb part of Factory’s explicit role.

February 4, 2024 · 5 min read

Singleton

Singleton is one of the simplest patterns but the canonical anti-pattern debate. The decision to bundle single-instance guarantee with global access into one pattern causes tight coupling and test difficulty. DI is the general alternative that separates the two intents.

January 28, 2024 · 5 min read

Dependency Injection — The Hierarchy of DIP, IoC, and DI

DIP (principle), IoC (pattern), and DI (technique) sit at different levels of abstraction. The hierarchy must be clear before framework features and design principles can be told apart.

January 25, 2024 · 6 min read

Optimistic and Pessimistic Locking

A transaction gives atomicity, a lock gives serialization — they aren’t substitutes. How pessimistic and optimistic locking cover the Lost Update that an isolation level’s plain reads don’t, and how to choose between them.

October 1, 2023 · 6 min read

What Isolation Levels Actually Prevent

A transaction isolation level is a policy choice about which anomalies to allow. The anomalies each ANSI level prevents, and how InnoDB’s MVCC and Repeatable Read behave differently from the standard.

September 15, 2023 · 7 min read

What RDB Transaction ACID Actually Guarantees

What each of the four ACID properties actually guarantees in an RDB transaction. A/C/D are relatively clear guarantees, but only I has ’levels’ — the gateway to the correctness vs. concurrency trade-off.

September 1, 2023 · 4 min read

TCP and UDP

Two transport protocols that backend developers encounter constantly. A summary of TCP and UDP — connection establishment, reliability guarantees, flow/congestion control mechanisms, and selection criteria.

March 1, 2022 · 11 min read

The OSI Model as Working Vocabulary

L2 switch, L3 routing, L4/L7 load balancer — where the layer numbers attached to everyday networking terms come from. How the OSI model maps to TCP/IP, and what each number refers to.

February 14, 2022 · 6 min read

Session Authentication and JWT

HTTP is stateless. Maintaining user authentication requires storing state somewhere. This post covers the structure, trade-offs, and storage strategies of server-side sessions and client-side JWT tokens.

March 20, 2021 · 4 min read

A Map of Authentication Methods: From Basic to SSO

There was a time I called JWT an authentication method and said I logged in with OAuth, and the terms kept blurring together. This post lines up Basic, Digest, API Key, Session, Token, OAuth, OIDC, and SSO by two questions: authentication vs authorization, and where the proof of identity lives.

March 19, 2021 · 5 min read