Production-ready direct-style Scala
summary
A production-ready direct-style Scala microservice is built and demoed: a backend + React frontend with live-reload, automatic OpenAPI→TypeScript generation, and a new “next trip” feature that calls two external services in parallel, persists an audit row inside an explicit transaction, and streams audits to Kafka every second. Uses Tapir for HTTP, Magnum and Flyway for DB mapping and migrations, ox flows and virtual threads on JVM 21 for concurrency, and OpenTelemetry tracing; the demo runs end-to-end with propagated traces and Kafka messages.
AI-written summary · about
chapters (14)
- 0:00Direct-style Scala intro
- 1:49Focus on direct-style Scala
- 3:38Demo app overview and setup
- 6:08Adding trip planning
- 9:16Database transactions in direct style
- 12:29Parallel HTTP requests and errors
- 14:14Dependency injection with MacWire
- 16:06API layer and OpenAPI
- 19:57Java ecosystem with OpenTelemetry
- 22:28Streaming with Kafka and Ox
- 26:27Frontend with TypeScript
- 28:34Key principles of direct-style Scala
- 29:37Future plans and OSS
- 31:27Summary and closing
related talks
29mPure Scala Approach for Building Frontend and Backend Apps
29mFull Stack Scala Web Application.
41mHow to write microservices in Scala without Akka
31mSCALA FROM B TO F - BACKEND DEVELOPER ON FRONTEND
40mFull Stack Scala
49mBeautiful APIs with Scala, Scalatra, Swagger, and Akka
48mServerless Scala js iOS,Android,Web Apps from One Code Base
04mInterview
