
Jakarta Concurrency and Managed Executors Explained
Learn Jakarta Concurrency: ManagedExecutorService, scheduled executors, context propagation, the Asynchronous annotation and virtual threads.
Everything you need to level up your coding skills.

Learn Jakarta Concurrency: ManagedExecutorService, scheduled executors, context propagation, the Asynchronous annotation and virtual threads.

Test concurrent Java code and find race conditions: stress tests with many threads, latches, repeated runs, jcstress and thread-safety design.

Use AtomicInteger, AtomicLong and LongAdder for thread safe counters in Java: compareAndSet, updateAndGet, contention behaviour and which class to choose.

Handle slow processing in Kafka consumers: tune max.poll.records and max.poll.interval.ms, pause and resume partitions and bound the work queue.

Shut down a Java ExecutorService properly with shutdown, awaitTermination and shutdownNow, handle interrupts, and avoid thread leaks in web apps and tests.

Write a ThreadFactory that names threads, sets daemon status and an uncaught exception handler, so dumps and logs show which pool a thread is in.

Understand how ThreadLocal leaks memory in thread pools and web apps, how to clean up with remove, and when ScopedValue or explicit parameters are better.
We send one email when a new post is published. No spam.