Java Aug 18, 2026 4 min read
CompletableFuture Composition, Errors, and Timeouts
Compose Java CompletableFuture stages deliberately across executors, failures, timeouts, cancellation, context, and external side-effect boundaries.
Tag
18 articles with this tag. Follow these related notes when you want a narrower study path.
Java Aug 18, 2026 4 min read
Compose Java CompletableFuture stages deliberately across executors, failures, timeouts, cancellation, context, and external side-effect boundaries.
Java Aug 18, 2026 5 min read
Build a practical model of tasks, threads, shared state, race conditions, thread safety, and bounded concurrency in Java backend services.
Java Aug 18, 2026 6 min read
Run six deterministic Java concurrency scenarios to compare fixed pools, virtual threads, resource guards, deadlines, and cooperative cancellation.
Java Aug 18, 2026 4 min read
Design Java executors around admission, worker, queue, rejection, shutdown, and downstream capacity instead of treating threads as free throughput.
Java Aug 18, 2026 4 min read
Propagate Java interruption and request deadlines cooperatively across executors, blocking calls, cleanup, Spring boundaries, and durable effects.
Java Aug 18, 2026 4 min read
Understand atomicity, visibility, ordering, data races, volatile fields, safe publication, and happens-before reasoning in Java backend code.
Java Aug 18, 2026 4 min read
Separate Java 25 Scoped Values from JDK 26 preview Structured Concurrency and reason about bounded context, task lifetime, failure, and cancellation.
Java Aug 18, 2026 5 min read
Use Java 21 virtual threads for blocking backend tasks while keeping CPU, connection pools, downstream limits, context, and pinning explicit.
Java Aug 18, 2026 5 min read
Diagnose Java thread starvation, unbounded queues, lock contention, virtual-thread pinning, downstream overload, and failed cancellation with evidence.
Java Aug 18, 2026 5 min read
Compare Java monitors, ReentrantLock, CAS, atomic variables, lock scope, fairness, and compound invariants through backend examples.
System Design Aug 4, 2026 11 min read
Learn to diagnose PostgreSQL lock contention, blockers, waiters, long transactions, idle-in-transaction sessions, pool exhaustion, and safe cancellation.
API Design Jul 26, 2026 6 min read
Implement ETag, If-None-Match, Last-Modified, 304 responses, and safe update preconditions with Spring Boot and Express examples.
System Design Jul 25, 2026 9 min read
Learn why database deadlocks happen, how PostgreSQL and MySQL detect them, and how to prevent and retry them safely in Java and Node.js.
System Design Jul 25, 2026 9 min read
Compare database isolation levels, concurrency anomalies, PostgreSQL and MySQL behavior, and safe Spring and Node.js transaction patterns.
System Design Jun 29, 2026 4 min read
Learn what distributed locks are, when backend systems use them, why they are risky, and what safer alternatives to consider.
System Design Jun 28, 2026 5 min read
Learn how optimistic locking prevents lost updates in backend systems using version columns, compare-and-swap updates, and 409 conflicts.
Java Mar 15, 2026 4 min read
A practical explanation of ConcurrentHashMap in Java, including thread safety, atomic methods, iteration behavior, and common mistakes.
Java Jan 8, 2026 4 min read
Compare HashMap and Hashtable in Java, including synchronization, null keys, performance, legacy status, and modern alternatives.