Scala Server Toolkit: How to Write A FP Microservice Step-by-step
summary
Claims a reusable Scala Server Toolkit that codifies Avast best practices and boots FP microservices using ZIO or Monix, pureconfig, http4s, doobie transactors with Hikari, Flyway migrations and Micrometer. Demo builds and runs a real service: server starts on port 880, Flyway migrates the Docker Postgres, HTTP endpoints return JSON users or 404, metrics expose JVM stats. Focus is on concrete modules, resource-safe constructors, and integration pieces that actually compile and execute.
AI-written summary · about
chapters (9)
- 0:00Introduction to SST
- 1:15Project context and goals
- 5:14Design principles and features
- 8:52The module concept
- 10:15Building an HTTP service
- 18:26Adding application monitoring
- 21:47Database setup and migrations
- 31:55Implementing business logic
- 41:42Q&A session
related talks
41mHow to write microservices in Scala without Akka
52mFast but not Loose: Typesafe Clients in a Distributed Service Architecture
36mFreestyle: A framework for pure functional apps, libs and microservices
49mFunctional programming in practice, with all its consequences
38mMonolith vs. Microservices
59mImplementing Microservices with Scala and Akka
47mOn-stage hacking: build 12-factor microservices
44mLong-lived microservices
