Skip to main content

34 docs tagged with "performance"

View all tags

Apache Kafka Architecture & Core Fundamentals

Complete architectural overview of Apache Kafka — origins, the M×N integration problem, the 4 pillars of Kafka's extreme speed (sequential I/O, page cache, zero-copy, batching), message anatomy, and the dumb broker / smart consumer paradigm.

Bloom Filters

A comprehensive guide to Bloom filters, covering probabilistic data structures, implementation details, use cases, interview questions, and real-world applications.

Caching Strategies

In-depth guide to caching strategies including cache-aside, write-through, write-behind, eviction policies, cache stampede prevention, hotkeys, Redis data structures, and multi-level caching.

CPU Scheduling

CPU scheduling algorithms, metrics, multilevel queues, real-time scheduling, and how the Linux CFS scheduler works.

Database Connection Pooling

A complete guide to database connection pooling — how connections work, pool mechanics, HikariCP tuning, pool sizing formulas, failure modes, PgBouncer, RDS Proxy, and production observability. Beginner through senior depth.

Indexing & Query Optimization

Deep dive into database indexing mechanisms — covering disk I/O, B-Trees, hash indexes, composite index design, geospatial indexing, inverted indexes, EXPLAIN analysis, and Spring/JPA performance.

Kafka Broker — Complete Guide

A complete guide to Kafka brokers — what they are, how storage works, partition leadership, replication, ISR, KRaft vs ZooKeeper, log compaction, performance internals, and production monitoring. Beginner through senior depth.

Kafka Performance Tuning Guide

End-to-end Kafka performance tuning — producer batching, broker I/O, consumer throughput, JVM and OS tuning, compression selection, tiered storage, and benchmarking methodology.

Network Performance & Optimization

Latency, bandwidth, throughput, connection pooling, keep-alive, HTTP/2 multiplexing, QUIC, compression, and practical tuning techniques.

Parallel Consumer & Alternatives

Deep-dive into the Confluent Parallel Consumer model (now unmaintained), its internals, ordering modes, offset bitmap mechanics, and practical migration paths — Spring Boot virtual threads, manual executor dispatch, and the upcoming Kafka Share Groups (KIP-932).

Performance & Monitoring

Identifying slow queries, profiling tools, key metrics, connection pooling, and practical optimization workflow.

Rate Limiting

A complete guide to rate limiting — from beginner fundamentals to senior-level distributed design. Covers all algorithms, Redis implementations, decision frameworks, failure modes, and production patterns.

Rate Limiting Algorithms

A comprehensive guide to rate-limiting algorithms, including Token Bucket, Leaky Bucket, Fixed Window, Sliding Window Log, and Sliding Window Counter. Covers workflow mechanics, trade-offs, and distributed scaling.

Redis Advanced Data Structures & Algorithms

A senior deep dive into Redis advanced data types — Bitmaps, HyperLogLog, Geospatial, Streams, Sorted Sets, and Bloom Filters — with internals, memory math, production patterns, and when to use each.

Redis as Distributed Cache

Distributed caching patterns with Redis — cache-aside, write-through, write-behind, read-through — and production concerns like stampede, warming, invalidation, and Spring Cache integration.

Redis Pipeline, Transactions & Lua Scripts

Deep dive into Redis pipelining for throughput optimization, MULTI/EXEC transactions, optimistic locking with WATCH, and atomic Lua scripting — with production patterns and pitfalls.

Scaling Reads

Strategies for handling high read QPS including caching layers, read replicas, CDN, CQRS, and database indexing. Covers Redis patterns, cache invalidation, consistency models, fan-out strategies, and senior-level deep dives into coherence, hot keys, and tail latency.

Scaling Writes

Deep-dive into high write throughput techniques — sharding, partitioning, WAL internals, LSM trees, async pipelines, batching, backpressure, idempotency, and distributed transactions — with production Java/Spring code and failure mode analysis.

Spring Data JPA: Custom Queries with @Query

A complete guide to custom JPQL, Native SQL, SpEL, projections, and senior-level internals — persistence context mechanics, N+1 prevention, memory optimization, and connection pool management.

Virtual Memory — Deep Dive

A comprehensive guide to virtual memory — covering address spaces, paging mechanics, swap, OOM killer, huge pages, NUMA, and practical Linux/JVM tuning for senior engineers.