DEEP DIVES &EXPLORATIONS.

Topics I study, experiment with, and apply in production. Each entry represents hours of research and practical application.

Data Structures

B+ Tree Indexing

How PostgreSQL uses B+ Trees for efficient range queries and ordered traversal. Understanding node splitting, fill factors, and partial indexes.

// research/b+_tree_indexing.md
Runtime Internals

Node.js Event Loop

The single-threaded model, libuv thread pool, microtask queue priorities, and why understanding the event loop is critical for high-throughput servers.

// research/node.js_event_loop.md
Distributed Systems

Distributed Consensus

Raft, Paxos, and the practical reality of achieving consensus in distributed systems. Leader election, log replication, and split-brain scenarios.

// research/distributed_consensus.md
Databases

Redis Internals

Single-threaded event loop, data structures (skip lists, hash tables), persistence modes (RDB vs AOF), and replication strategies.

// research/redis_internals.md
Performance

Query Optimization

Reading EXPLAIN ANALYZE output, understanding sequential vs index scans, join strategies, and when the planner makes suboptimal choices.

// research/query_optimization.md
Architecture

Realtime Processing

Stream processing vs batch processing, backpressure handling, windowing strategies, and building systems that react in milliseconds.

// research/realtime_processing.md
Performance

System Bottlenecks

Identifying and resolving bottlenecks: database connection pooling, N+1 queries, lock contention, and memory pressure patterns.

// research/system_bottlenecks.md
Architecture

Feature Flag Patterns

Trunk-based development with flags, percentage rollouts, user segment targeting, and the operational cost of long-lived flags.

// research/feature_flag_patterns.md