Understanding Layer 4 vs Layer 7 WebSocket Proxying
Explains how WebSocket connections are handled by proxies at Layer 4 (TCP) vs Layer 7 (HTTP), summarizing a lecture.
When Should You Use Threads in Programming?
Understanding the right time to use threads in your applications: IO blocking, CPU-bound tasks, and handling large volumes of small jobs.
Understanding Proxies and Reverse Proxies: A Networking Foundation for Backend Developers
A clear guide to understanding proxies and reverse proxies, including use cases like caching, debugging, microservices, load balancing, and how they relate to real tools like NGINX and Fiddler.
Understanding Nagle's Algorithm and Why It's Often Disabled
A clear, personal overview of Nagle’s Algorithm, its role in TCP, why it causes unexpected delays, and why developers often disable it.
Understanding Layer 4 vs Layer 7 Load Balancers
Key differences, pros and cons, and implementations of Layer 4 and Layer 7 load balancers in backend networking.
Socket Sharding: Multiple Listeners on the Same Port
Lecture notes on using socket sharding (SO_REUSEPORT) for multiple listeners, acceptors, and readers on one port to improve scalability.
Multiple Threads Accepting on One Socket
Lecture notes on using multiple accepter threads on a single listening socket, discussing how the OS handles accept calls and the trade-offs involved.
Making Backend Requests Safe: Understanding Idempotency
Lecture notes on backend idempotency: how to safely retry requests without duplicating actions, with examples and implementation tips.
105 post articles, 14 pages.