Services for Scalas
Services is the stage where Scala is used to build real backends: HTTP servers with libraries like http4s, Akka HTTP or Play, JSON encoding and decoding with circe, and database access. It also covers sbt, the standard build tool, which manages dependencies, compilation, tests and packaging.
Stage: Concurrency and Services · Part of the Scala roadmap · Last reviewed 19 November 2026
What to learn in Services
- Define an HTTP route that returns JSON
- Encode and decode case classes with circe
- Query a database through a library like Doobie or Slick
- Declare dependencies and settings in build.sbt
- Split a project into sbt modules
- Package an application into a runnable JAR or container image
Services interview questions
What does sbt do in a Scala project?
sbt is the build tool. It resolves dependencies from repositories, compiles Scala and Java sources, runs tests, supports multi-module builds and packages artifacts. Settings live in build.sbt, and its incremental compiler speeds rebuilds.
Why use circe for JSON instead of hand-written parsing?
circe derives encoders and decoders for case classes at compile time, so JSON mapping is type-safe and concise. Decoding returns an Either with error details, which fits Scala's functional error handling.
Where Services fits in the Scala roadmap
Services belongs to the Concurrency and Services stage (advanced level), which takes about 21 hours. Run it.
Other units in this stage
Back to the full Scala roadmap