Tagged articles

StructuredTaskScope

4 articles · Page 1 of 1
IT Services Circle
IT Services Circle
Aug 1, 2026 · Backend Development

Can Virtual Threads in Java 21 Replace CompletableFuture for Asynchronous Programming?

With Java 21's cheap virtual threads, many of the blocking‑IO patterns that forced developers to write CompletableFuture callback chains can now be expressed as straightforward synchronous code, yet CompletableFuture still offers powerful task‑orchestration features that virtual threads alone cannot replace.

Asynchronous ProgrammingCompletableFutureJava
0 likes · 9 min read
Can Virtual Threads in Java 21 Replace CompletableFuture for Asynchronous Programming?
Programmer XiaoFu
Programmer XiaoFu
Jul 16, 2026 · Backend Development

Can Java 21 Virtual Threads Replace CompletableFuture for Async Programming?

With Java 21’s virtual threads making threads cheap, the article examines whether the traditional CompletableFuture async style can be dropped, showing that simple IO can now be written synchronously, while complex task orchestration, fallback, and timeout still benefit from CompletableFuture’s richer API.

Async ProgrammingCompletableFutureJava
0 likes · 10 min read
Can Java 21 Virtual Threads Replace CompletableFuture for Async Programming?
Code Ape Tech Column
Code Ape Tech Column
Nov 18, 2023 · Backend Development

Understanding ThreadLocal, ScopedValue, and StructuredTaskScope in Java

This article explains the ThreadLocal mechanism, its memory‑leak pitfalls, introduces the new ScopedValue feature in JDK 20 as a safer alternative, and demonstrates practical Spring and virtual‑thread examples using StructuredTaskScope for modern Java backend concurrency.

JavaScopedValueStructuredTaskScope
0 likes · 22 min read
Understanding ThreadLocal, ScopedValue, and StructuredTaskScope in Java