Journal
Thoughts, theories, and deep dives into software engineering and cybersecurity.
Practical Strategies for Handling Partial Reads and Writes on Sockets
Socket APIs commonly return partial reads and writes; this article gives concrete strategies to detect, handle, and test...
Building a Robust Retry and Idempotency Layer for Distributed RPCs
Practical patterns for implementing retries and idempotency in distributed RPC systems. Covers failure modes, idempotenc...
TLS Session Resumption: Balancing Latency, Security, and Cache Management
Practical guidance on using TLS session resumption to cut handshake latency while managing security and cache complexity...
Tracing and Correlating Requests Across Microservices Using Distributed Context Propagation
Techniques for propagating request context across services let teams trace transactions end-to-end, reduce MTTR, and cor...
Flow Control and Congestion Avoidance Techniques for Custom UDP-Based Protocols
Designing flow control and congestion avoidance for UDP-based protocols matters in gaming, live streaming, IoT, and spec...
Designing Binary Protocols: Field Layouts, Versioning, and Alignment Pitfalls
Binary protocols power high-performance systems from databases to embedded devices. This article covers field layout, al...
Implementing QUIC-inspired Multiplexing over Existing Transport Layers
Techniques to emulate QUIC-style multiplexing atop existing transports enable improved latency and resource utilization...
Effective Use of Socket Options (SO_REUSEPORT, TCP_NODELAY, etc.) in Server Tuning
Practical guidance on tuning socket options such as SO_REUSEPORT and TCP_NODELAY to improve throughput, latency, and ope...
Building a Reliable Heartbeat and Failure-Detection System for Clustered Services
Designing robust heartbeat and failure-detection systems is critical for clustered services. This article covers practic...