Back to the roots - VirtusLab Scala Stack
summary
VirtusLab Scala Stack combines Scala 3 and Project Loom to let async code run in direct style so handlers and functions return plain values (e.g., List, Int) rather than IO or Future, using virtual threads under the hood. It uses Ox for structured concurrency (scopes, forks, resource scopes, retries, timeouts, flows, channels, actors, rate limiter, circuit breaker), integrates with Tapir and STTP via Netty sync so HTTP handlers and clients are identity-effect, and adds Parlance, Bison (Pulumi), HTTP AI and Arca. Example: parallel exchange-rate fetch with retries/timeouts returns a List and runs correctly; early adopters migrate module-by-module and report easier reasoning and better GC behavior.
AI-written summary · about
chapters (12)
- 0:00Evolution of Scala syntax
- 1:28Complexity of FP stacks
- 2:57Introducing direct style
- 6:30Structured concurrency with Ox
- 9:27Concurrency and resources
- 12:58Streaming and actor patterns
- 15:30Resiliency patterns
- 16:39Integration with web stacks
- 19:33The VirtusLab Scala stack
- 21:49Benefits and adoption
- 24:21Future of direct style
- 26:48Q&A and concluding remarks
