FP Scala Meat & Potatoes...
summary
Demonstrates a working CRUD JSON REST API built with http4s, JSON codecs auto‑derived via Circe, and SQL via Doobie that parses POSTed JSON, inserts rows, and streams query results as a chunked JSON array using fs2 intersperse so it serves millions of users in constant memory. Shows constructing a client from a service for fast tests and the client↔service duality used to mock downstream services. Notes JDBC is blocking so a context shift or dedicated pool is required.
AI-written summary · about
chapters (9)
- 0:00Introduction and goals
- 1:48HTTP as a pure function
- 5:03Building a simple HTTP service
- 9:02Lamest echo service demo
- 14:29Database interaction with Doobie
- 17:20Integrating HTTP and database
- 22:01Client-service duality
- 24:10Running the service in production
- 26:47Q&A and comparisons
related talks
29mPure Scala Approach for Building Frontend and Backend Apps
49mBeautiful APIs with Scala, Scalatra, Swagger, and Akka
29mFull Stack Scala Web Application.
40mFull Stack Scala
32mProduction-ready direct-style Scala
30mDistributing systems in Scala with Fiangle
19mScala for the Rest of Us
37mFull Stack Scala Web Application
