Mert Özen Go Beyond the Code

Blog

Posts and series that take software and IT from the basics to advanced topics: from programming languages and databases to architecture and AI.

Series
1990 posts found
HTTP Caching and Conditional Requests: Cache-Control, ETag and 304
Computer Science Fundamentals PART 07

HTTP Caching and Conditional Requests: Cache-Control, ETag and 304

An HTTP cache uses Cache-Control to decide how long a copy stays fresh, and ETag or Last-Modified to cheaply revalidate it with a 304 Not Modified when it expires. no-cache vs no-store, heuristic freshness for static files without Cache-Control, the old index.html after a deploy, and an ETag handler written because HttpClient has no cache of its own.

8 Nov 2026 9 min 65
Reading HTTP/1.1 Off the Wire: Message Format, Method Semantics and Keep-Alive
Computer Science Fundamentals PART 06

Reading HTTP/1.1 Off the Wire: Message Format, Method Semantics and Keep-Alive

HTTP/1.1 is a text protocol: a start line, headers, an empty line and a body framed by Content-Length or chunked. Requests written by hand with nc and openssl s_client, a 400 for a request without Host, what the 3d in chunked means, safe/idempotent methods and a handler that only retries idempotent requests, keep-alive, and Kestrel against request smuggling.

8 Nov 2026 10 min 73
The TLS 1.3 Handshake: Certificate Chain, SNI, ALPN and Post-Quantum Key Exchange
Computer Science Fundamentals PART 05

The TLS 1.3 Handshake: Certificate Chain, SNI, ALPN and Post-Quantum Key Exchange

TLS 1.3 sets up the encrypted channel in one RTT by putting the key_share in the ClientHello; ECDHE gives forward secrecy and X25519MLKEM768 adds post-quantum protection. The handshake with openssl s_client, a ClientHello growing from 285 to 1,525 bytes, certificate chain errors, SNI/ECH/ALPN, 0-RTT and .NET staying on TLS 1.2 on macOS.

8 Nov 2026 11 min 68
How DNS Works: Resolvers, Record Types, TTL and Querying with dig
Computer Science Fundamentals PART 04

How DNS Works: Resolvers, Record Types, TTL and Querying with dig

DNS resolves a name through a chain of stub resolver, recursive resolver, root, TLD and authoritative servers and caches every answer for its TTL. dig +trace, A/AAAA/CNAME/MX/TXT/CAA/HTTPS records, negative caching, DoH, and a blue-green experiment showing why HttpClient's open connections don't see DNS changes.

8 Nov 2026 10 min 82
How TCP Works: 3-Way Handshake, Congestion Control and HttpClient Socket Exhaustion
Computer Science Fundamentals PART 03

How TCP Works: 3-Way Handshake, Congestion Control and HttpClient Socket Exhaustion

TCP opens a connection with a 3-way handshake for a reliable byte stream, starts slowly with slow start and waits in TIME_WAIT on close; that's why new HttpClient per request exhausts ports. 500 TIME_WAITs for 500 requests, 6x slower with TLS, IHttpClientFactory, PooledConnectionLifetime and handler defaults, with real output.

8 Nov 2026 10 min 73
IP Addresses, Subnets, Ports and NAT: localhost, 0.0.0.0 and Connectivity in Containers
Computer Science Fundamentals PART 02

IP Addresses, Subnets, Ports and NAT: localhost, 0.0.0.0 and Connectivity in Containers

An IP address finds an interface, a port finds a socket on that machine; a server bound to 127.0.0.1 can only be reached from inside that machine. RFC 1918 private addresses, subnets with CIDR, NAT, ephemeral ports, address already in use, and why a Kestrel bound to localhost in a container returns an Empty reply, with real output.

8 Nov 2026 11 min 62
What Happens When You Press Enter on a URL: End to End from DNS to Render
Computer Science Fundamentals PART 01

What Happens When You Press Enter on a URL: End to End from DNS to Render

When you press Enter, the browser parses the URL, finds the IP with DNS, connects with TCP and TLS 1.3, sends the HTTP request and renders the response; a new connection spends at least three to four RTTs before the first byte. We read every phase line by line against our own Kestrel server with curl -v and curl -w.

8 Nov 2026 11 min 94
What Big-O Doesn't Tell You: Constants, Cache and Measuring with BenchmarkDotNet
Computer Science Fundamentals PART 05

What Big-O Doesn't Tell You: Constants, Cache and Measuring with BenchmarkDotNet

Big-O tells you about growth, but real time is decided by constants, the cache, allocations and the input distribution. An O(n²) insertion sort twice as fast as LINQ on 10 books, LinkedList 3.8x slower, Dictionary falling to O(n²) with a bad GetHashCode, and estimating complexity by measuring with the doubling experiment.

8 Nov 2026 12 min 76
Amortized Analysis: Why List<T>.Add Counts as O(1)
Computer Science Fundamentals PART 04

Amortized Analysis: Why List<T>.Add Counts as O(1)

List<T>.Add sometimes copies the whole list, but because capacity doubles, the total cost of n Adds never exceeds 3n; that's why it counts as amortized O(1). The aggregate, accounting and potential methods, 50 billion copies with +10 growth, Dictionary's prime sizes and a 38 ms resize spike, with real measurements.

8 Nov 2026 11 min 72
Real-World Bug Hunts 2: Frontend and Integration — Cache, CORS, Dates and Memory Leaks
Developer Tools PART 13

Real-World Bug Hunts 2: Frontend and Integration — Cache, CORS, Dates and Memory Leaks

Most frontend bugs are born not in the code but in the gap between browser and server. Five real cases: a white screen after deploy from a cached index.html and missing chunks, a CORS preflight failing only in production because of a trailing slash, a birth date shifting by a day across time zones, floating point money totals and memory growing from an observable never unsubscribed; with the decisive tool for each and the series' debugging checklist.

8 Nov 2026 15 min 70
Space Complexity: Auxiliary Memory, Recursion Stack and Allocations
Computer Science Fundamentals PART 03

Space Complexity: Auxiliary Memory, Recursion Stack and Allocations

Space complexity is how the memory an algorithm keeps alive at once grows with n; recursion depth is memory on the stack too. Recursion failing on a 1.5 MB thread stack, Split vs Span, memoization and reading a 1 GB log file in 52 MB; what ReadAllLines does in a 512 MB container, with real output.

8 Nov 2026 12 min 69
Real-World Bug Hunts 1: Backend — Culture, Time Zones, Sockets and Mutable Keys
Developer Tools PART 12

Real-World Bug Hunts 1: Backend — Culture, Time Zones, Sockets and Mutable Keys

In backend bugs the first hypothesis usually blames another system; a cheap observation refutes it. Six real cases: a role check broken under tr-TR, a report shifted 3 hours by UTC, TIME_WAIT sockets piling up from new HttpClient(), a key mutated inside a Dictionary, an async void crashing the process (and lingering half-dead as PID 1 in a container), and N+1 in EF Core; each with a fix, a regression test and an analyzer.

8 Nov 2026 15 min 55
Blog Map