World Congress 2026 Europe Jul 10, 2026 Session details

Structured Concurrency in Practice: CoroutineScope vs StructuredTaskScope

Filip Egeric

Does Java's StructuredTaskScope handle blocking IO better than Kotlin coroutines? Compare both concurrency models directly in a practical Spring Boot demonstration.

Pause
Mute Enter Fullscreen
#1 about 2 min

Understanding concurrency and parallelism with visual examples

Comparing task execution strategies using a pit stop analogy to differentiate concurrency from parallelism.

#2 about 1 min

Core properties of structured concurrency paradigms

Ensuring safe asynchronous execution by bounding task lifetimes to a parent scope and propagating errors efficiently.

#3 about 4 min

Exploring a blocking Spring Boot application demo

Analyzing a standard Spring Web MVC application that retrieves data using synchronous database and service calls.

#4 about 3 min

Implementing asynchronous calls using Kotlin coroutines

Refactoring a blocking endpoint to fetch independent data sources concurrently using standard Kotlin asynchronous builders.

#5 about 2 min

Resolving reactive stream errors in blocking applications

Bridging suspending coroutines with blocking Spring endpoints by switching to a standard blocking execution context.

#6 about 2 min

Offloading blocking operations to a shared thread pool

Accelerating application speed by explicitly assigning dedicated coroutine dispatchers for execution of input and output tasks.

#7 about 2 min

Simulating failures and handling slow error propagation

Identifying un-cancellable blocking routines that prevent asynchronous parent scopes from handling downstream failures immediately.

#8 about 2 min

Making blocking code cancellable with run-interruptible wrappers

Enabling immediate failure propagation by explicitly bridging synchronous blocking functions into the active coroutine cancellation hierarchy.

#9 about 1 min

Introduction to the native Java structured task scope API

Exploring a native Java enhancement proposal that offers structured concurrency concepts directly embedded into the language platform.

#10 about 4 min

Refactoring concurrent operations using the structured task scope

Simplifying grouped asynchronous service calls by utilizing the new Java concurrency API powered by lightweight virtual threads.

#11 about 1 min

Creating Kotlin ergonomic wrappers for native Java APIs

Solving type inference mismatch issues between generic callables and runnables by building a lightweight usability wrapper.

#12 about 4 min

Comparing CoroutineScope and StructuredTaskScope architectural trade-offs

Choosing the right concurrent execution model based on the application stack, blocking constraints, and deployment platform versions.

Matching moments

5:18 min

Executing parallel tasks concurrently with structured task scopes

Christian Woerz · LIVE

3:47 min

Approaches to non-blocking software before Project Loom

Jan Weinschenker Jan Weinschenker · WWC 2024

6:35 min

Managing thread lifecycles using structured task scopes

David Vlijmincx · LIVE

3:12 min

Solving thread blocking with reactive frameworks and Kotlin

Jan Weinschenker Jan Weinschenker · WWC 2024

3:29 min

Handling asynchronous operations with native Kotlin coroutines

Georg Dresler Georg Dresler · WWC Europe 2026

1:27 min

Introduction to Loom and its impact on concurrency

Ivan Šarić Ivan Šarić · Europe 2026 Virtual

Upcoming sessions on this topic

Open session

World Congress 2026 North America

Look What Java Can Do Now: Live-Coding a GenAI MCP Server with the JAQ Stack

Suren Konathala

Senior Engineering Leader, Marketing & AdTech, AI GTM & Digital Experience Platforms, Java x AI

Suren Konathala
Open session

World Congress 2026 North America

One Repo, One Strategy: Scalable Full-Stack Testing in a Monorepo World

Bartosz Leczycki, Paweł Matynia

Bartosz Leczycki
Paweł Matynia
Open session

World Congress 2026 North America

Full Stack with Flutter - are we there yet?

Nemanja Stošić

Senior Flutter Developer

Nemanja Stošić
Open session

World Congress 2026 North America

From Guesswork to Governance: Data Contracts Bring API Discipline to Apache Kafka

Sandon Jacobs

Senior Developer Advocate at IBM

Sandon Jacobs
Open session

World Congress 2026 North America

Merging at Scale: From Broken Builds to Green Mainline

Preetam Dwivedi, Manjari Akella

Preetam Dwivedi
Manjari Akella
Open session

World Congress 2026 North America

When Humans Stop Writing Code: Rethinking Languages, Compilers, and Responsibility

Simon Auer

Organizer of flutter vienna meetup and CEO of marqably

Simon Auer