Skip to main content

32 docs tagged with "concurrency"

View all tags

AQS Internals

A senior deep dive into the JVM's AbstractQueuedSynchronizer: exploring the CLH queue, LockSupport.park(), and CAS state transitions in ReentrantLock.

AWS Lambda

Comprehensive Lambda study guide for DVA-C02. Covers invocation types, concurrency, cold starts, event source mappings, layers, container images, environment variables, VPC integration, destinations, and Java handler patterns.

Chapter 13 — Concurrency

Full coverage of Java concurrency: platform threads, virtual threads (Java 21), Runnable vs Callable, ExecutorService, Future, atomic classes, synchronized, ReentrantLock, volatile, concurrent collections, deadlock, and parallel streams — with real-world thread-safety traps.

Chapter 6: Functional Programming

Functional programming's core discipline — immutability — eliminates entire classes of concurrency bugs. Learn how immutability, segregation of mutability, and event sourcing shape modern system design.

Database ACID Properties

A deep-dive guide to ACID properties — Atomicity, Consistency, Isolation, Durability — covering isolation levels, MVCC, 2PL, WAL, write skew, distributed ACID, and practical interview questions. Includes the real priority order (I → C → D → A), the AI PR story, and the link to the full isolation levels deep-dive.

Database Isolation Levels — How to Get It Right

Deep-dive into all 5 isolation anomalies (dirty read, non-repeatable, phantom, lost update, write skew), the 4 standard isolation levels, PostgreSQL vs MySQL vs Oracle implementation differences, snapshot scope (per-statement vs per-transaction), practical fix strategies without raising isolation, and the spec vs implementation distinction.

Debit Posting

Deep-dive into core banking debit posting — ledger mechanics, memo vs. hard post, balance contention, idempotency, locking strategies, saga compensation, and production Java/Spring implementation patterns.

Handling Contention

Strategies for dealing with race conditions, concurrent writes, hot spots, and lock contention in distributed systems including optimistic locking, MVCC, distributed locks, and queue-based serialization.

Java Concurrency & Utilities

Comprehensive guide to Java concurrency, covering concurrent utilities, thread pools, the Fork/Join framework, and async programming.

Java Locks & Synchronization

Deep dive into Java locks and synchronization primitives — synchronized, volatile, ReentrantLock, ReadWriteLock, StampedLock, AQS, CountDownLatch, CyclicBarrier, Semaphore, Exchanger, and Phaser.

Java Threads & Processes

A complete guide to threads, processes, lifecycles, and basic thread coordination (join, interrupt, daemon threads) in Java.

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).

Processes & Threads — Complete Guide

A complete guide to processes and threads — memory layout, lifecycles, IPC, threading models, context switching, Java concurrency, virtual threads, thread pool tuning, memory visibility, and production patterns. Beginner through senior depth.

Synchronization & Deadlocks

Race conditions, critical sections, mutexes, semaphores, monitors, classic synchronization problems, deadlock detection/prevention, and Java concurrency utilities.

Virtual Threads (Project Loom)

A comprehensive deep dive into Java 21 Virtual Threads, Carrier Threads, continuations, and avoiding synchronized pinning for senior engineers.