Kick off your book project in 3 hours! Live workshop on Zoom. You’ll leave with a real book project, progress on your first chapter, and a clear plan to keep going. Saturday, May 16, 2026. Learn more…

Leanpub Header

Skip to main content

Filters

Category: "Scala"

Books

  1. Effect Oriented Programming
    A Paradigm for Creating Reliable, Adaptable, Testable Systems - Using Scala and ZIO
    Bruce Eckel, Bill Frasure, and James Ward

    Have you wondered what makes functional programming such a big deal, but haven't been able to get through any of the explanations? We wrote this book for you. Four years in the making! Phone-friendly: the code listings are easily readable without phone gymnastics. This is a small book—it took an enormous amount of effort to make it so! Also available as a Print Book.

  2. Event Sourcing in Scala
    Scala 3, ZIO, PostgreSQL and the log beyond the database
    Piotr Pruchniewicz

    CRUD erases the story your system lived through; event sourcing keeps it. Build an account aggregate in Scala 3 and ZIO: past-tense events, a pure applyEvent fold, decide for invariants and idempotency, then wire an append-only PostgreSQL journal, transactions, and a balance projection—and trace one account from HTTP command to read model. When the log must leave the database, follow the same events through transactional outbox, Kafka, and at-least-once consumers without pretending you have magic consistency. For architects and implementers who want decision-grade ES + CQRS, not a toy demo.

  3. Practical FP in Scala
    A hands-on approach
    Gabriel Volpe

    A practical book aimed for those familiar with functional programming in Scala who are yet not confident about architecting an application from scratch. Together, we will develop a purely functional application using the best libraries in the Cats ecosystem, while learning about design patterns and best practices.

  4. Discover the pure functional side of HTTP API programming in Scala.

  5. Layerd FP in Scala
    Clean Architecture, Hexagonal and Onion with Scala 3 and ZIO
    Piotr Pruchniewicz

    Clean, Hexagonal, Onion—one dependency rule, three names. Walk a runnable multi-module SaaS billing service in Scala 3 and ZIO: a pure domain ring, ports and use cases in the middle, PostgreSQL + Flyway + JDBC and a thin HTTP shell on the outside—with full source in the PDF, not truncated snippets. See how ZLayer at the composition root keeps one repository for the whole graph, how webhook idempotency stays on the right side of the boundary, and how munit and zio-test (plus optional Docker) prove the architecture you intend to defend in code review.

  6. Saga Architecture in Scala
    Functional Saga Architecture in Scala 3 and ZIO
    Piotr Pruchniewicz

    No distributed transaction spans your whole business process—so you design steps and compensations instead. In Scala 3 and ZIO, build a full order-placement saga from domain types and service algebras to orchestration and event-driven choreography, with tests that prove compensations fire when things break. Then see what it takes to move the same design toward production: outbox, idempotency, persistence, and how to choose between central coordination and decentralized reactions.

  7. Private AI with Spark
    Design, package, and operate private AI locally using Apache Spark, batch pipelines, and vLLM acceleration
    GitforGits | Asian Publishing House

    For those who want to build controlled, reproducible AI systems entirely within their own infrastructure, this book is the most practical and implementation-focused trainer. Instead of relying on external APIs or cloud-hosted intelligence services, this book clearly demonstrates how Apache Spark can orchestrate data preparation, model training, batch inference, reporting, and LLM acceleration in a disciplined and transparent way.

  8. Scalapedia
    Encyclopedia of the Scala programming language
    Piotr Pruchniewicz

    Discover the complete world of Scala programming in one comprehensive encyclopedia. SCALAPEDIA takes you from language fundamentals to advanced functional programming, covering Cats, Cats Effect, ZIO, design patterns, architectural patterns, and performance optimization. With over 85 chapters spanning 10 major parts, this is the definitive guide for mastering Scala and building enterprise-grade applications. Whether you're starting your Scala journey or looking to deepen your expertise, SCALAPEDIA is your complete reference for modern functional programming in Scala.

  9. Stop fighting side effects and start building robust, testable software.Functional Programming in Scala: A Comprehensive Guide is your definitive roadmap to mastering the FP paradigm using the power of Scala 3. From the foundational concepts of immutability and pure functions to advanced topics like Monads, Type Classes, and effect management, this book provides clear explanations and practical, modern code examples. Learn to write code that is inherently safer, easier to reason about, and a joy to maintain.

  10. A Language a Day
    A brief introduction to 21 programming languages: C++, Clojure, Crystal, D, Dart, Elixir, Factor, Go, Hack, Hy, Io, Julia, Kotlin, Lua, Mercury, Nim, OCaml, Raku, Rust, Scala, and TypeScript
    Andrew Shitov

    Languages covered in the book: C++, Clojure, Crystal, D, Dart, Elixir, Factor, Go, Hack, Hy, Io, Julia, Kotlin, Lua, Mercury, Nim, OCaml, Raku, Rust, Scala, and TypeScript. Start with the basics of the language and progress through functions and objects to creating programs that use parallel and concurrent features!

  11. Accelerated Linux API for Software Diagnostics
    With Category Theory in View
    Dmitry Vostokov

    The book contains the full transcript of Software Diagnostics Services training with 16 hands-on exercises on various topics related to Linux API.

  12. Accelerated Windows API for Software Diagnostics, Second Edition
    With Category Theory in View
    Dmitry Vostokov

    The book contains the full transcript of Software Diagnostics Services training with 10 hands-on exercises on various topics related to Windows API.

  13. Developing Web Applications
    with Play & Scala
    Paul E. Sevinç

    I am not going to teach Play or Scala to you. Alas, I have read too many books whose authors have bitten off more than they could chew by trying to explain anything & everything themselves. The parts which go to make Play are concisely and well explained in the official, freely accessible docs; there is no point in me reinventing the wheel. Instead, this book is a guided tour through the Play docs and my intention is to show how to apply what you have learned by reading them to two production-level, albeit simple, Web apps.In doing so, my aim is to help you progress from programming to software development sprinkledwith some software engineering.

  14. Testing Spark Applications
    Writing Spark code is hard... well designed, performant Spark tests are even harder. You need a robust test suite to identify performance bottlenecks in your code and refactor with ease. This book teaches you how to write a beautiful test suite and how to run the tests whenever code is pushed to the master branch.
    Matthew Powers

    This book teaches you how to test Apache Spark codebases. Tests encourage your to write well designed code, help you identify bottlenecks in your code, make refactoring easier, and prevent some production deploy errors. You'll need to master testing Spark code to be a great Spark programmer.

  15. Do you want to get a deeper understanding of Scala and functional programming? Has Scala from Scratch: Exploration whetted your appetite? This follow-up book gives you an in-depth understanding of Scala, including many of the advanced concepts. You'll learn about best practices and you'll be ready to get productive in real-life Scala code bases.