Skip to content
ISBN: B0HLFYRPHB
ISBN13: 9798177857008

Backend Concurrency with Java: Use Threads, Executors, Futures, and Safe Shared State

$18.99List Price: $18.99
ISBN: B0HLFYRPHB
ISBN13: 9798177857008
Formats

Conditions

A brand-new, unused copy in perfect condition.

Formats

Conditions

A brand-new, unused copy in perfect condition.

See all 1 editionsfrom $18.99

Book Overview

Modern backend systems are concurrent whether you designed them that way or not.

A single request may wait on databases, remote APIs, message brokers, caches, file systems, and external services while thousands of other requests are active at the same time.

The challenge is not simply creating more threads.

The challenge is deciding:

  • What work should run concurrently?
  • Who owns shared state?
  • How much parallel activity can the system safely handle?
  • What happens when dependencies slow down?
  • How does cancellation propagate?
  • How does the service fail without collapsing under pressure?

Backend Concurrency with Java teaches developers how to design concurrent backend systems that remain understandable, scalable, and reliable under real production conditions.

Instead of focusing only on APIs like Thread, Future, or ExecutorService, this book explains the architectural decisions behind them: workload classification, execution policy, state ownership, resource limits, failure boundaries, and operational visibility.

Inside, you will learn how to:

  • Understand the difference between concurrency, parallelism, throughput, and latency
  • Design around tasks rather than treating threads as the primary abstraction
  • Choose between platform threads, executors, CompletableFuture, and virtual threads
  • Understand the Java Memory Model and why visibility requires explicit guarantees
  • Use volatile, synchronized, locks, atomics, and immutable publication correctly
  • Protect shared state by thinking in invariants rather than individual fields
  • Avoid race conditions, deadlocks, starvation, livelock, and resource exhaustion
  • Design executor policies with intentional queueing, rejection behavior, naming, monitoring, and shutdown
  • Size concurrency based on actual resource limits rather than arbitrary thread counts
  • Use Futures, deadlines, timeouts, cancellation, and completion patterns safely
  • Build asynchronous workflows with CompletableFuture without creating hidden execution complexity
  • Apply semaphores, latches, barriers, blocking queues, concurrent collections, and coordination utilities
  • Understand how virtual threads change backend design while leaving resource limits intact
  • Implement bounded concurrency, backpressure, bulkheads, rate limits, and graceful degradation
  • Test concurrent code without relying on unreliable timing assumptions
  • Diagnose production problems using thread dumps, Java Flight Recorder, metrics, tracing, and profiling
  • Apply backend patterns such as fan-out/fan-in, producer-consumer pipelines, request coalescing, background refresh, and workload isolation
  • Modernize existing Java services using practical concurrency migration strategies

The book's central principle is:

Good concurrent code begins with ownership, boundaries, and failure policy-not with thread creation. Backend Concurrency with Java

A key theme throughout the manuscript is that concurrency is not only about making systems faster. It is also about containing failures: preventing slow dependencies from consuming all capacity, stopping abandoned work, controlling queues, and ensuring shutdown behavior is predictable. Backend Concurrency with Java

Whether you are a Java backend developer, software engineer, Spring developer, distributed-systems engineer, platform engineer, performance engineer, technical lead, or architect, this book will help you move from writing code that merely runs concurrently to designing systems that behave correctly under real load.

Do not just add threads. Design concurrency deliberately.

Format:
Paperback
Language:
English
ISBN:
B0HLFYRPHB
ISBN13:
9798177857008
Release Date:
September 2026
Publisher:
Independently Published
Length:
168 Pages
Weight:
0.47 lbs.
Dimensions:
0.4″ × 6.0″ × 9.0″
ComputersComputers & Technology

Customer Reviews

0 customer ratings | 0 reviews
Write a Review

There are currently no reviews. Be the first to review this work.