Scala Microservices

Design, build, and run Microservices using Scala elegantly
Preview in Mapt

Scala Microservices

Jatin Puri, Selvam Palanimalai

Design, build, and run Microservices using Scala elegantly

Quick links: > What will you learn?> Table of content

eBook
$25.20
RRP $35.99
Save 29%
Print + eBook
$49.99
RRP $49.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$25.20
$49.99
RRP $35.99
RRP $49.99
eBook
Print + eBook

Frequently bought together


Scala Microservices Book Cover
Scala Microservices
$ 35.99
$ 25.20
Spring 5.0 Microservices - Second Edition Book Cover
Spring 5.0 Microservices - Second Edition
$ 39.99
$ 28.00
Buy 2 for $35.00
Save $40.98
Add to Cart

Book Details

ISBN 139781786469342
Paperback328 pages

Book Description

In this book we will learn what it takes to build great applications using Microservices, the pitfalls associated with such a design and the techniques to avoid them.

We learn to build highly performant applications using Play Framework. You will understand the importance of writing code that is asynchronous and nonblocking and how Play leverages this paradigm for higher throughput. The book introduces Reactive Manifesto and uses Lagom Framework to implement the suggested paradigms. Lagom teaches us to: build applications that are scalable and resilient to failures, and solves problems faced with microservices like service gateway, service discovery, communication and so on. Message Passing is used as a means to achieve resilience and CQRS with Event Sourcing helps us in modelling data for highly interactive applications.

The book also shares effective development processes for large teams by using good version control workflow, continuous integration and deployment strategies. We introduce Docker containers and Kubernetes orchestrator. Finally, we look at end to end deployment of a set of scala microservices in kubernetes with load balancing, service discovery and rolling deployments.

Table of Contents

Chapter 1: Introduction to Microservices
Business idea
Implementation
Development issues
Isolation
Microservices
Summary
Chapter 2: Introduction to Play Framework
Quick introduction to Play 2.66
JSON marshalling/Unmarshalling
Play production mode
Summary
Chapter 3: Asynchronous and Non-Blocking
Being asynchronous
Being asynchronous in Scala
Work Stealing - what makes Play fast!
Summary
Chapter 4: Dive Deeper
Talent search engine
Project structure
Brief overview of the application
Security
Brief introduction to Slick
Pitfalls
Summary
Chapter 5: Reactive Manifesto
Reactive hype?
Reactive Manifesto
Manifesto explained
Summary
Chapter 6: Introduction to Lagom
Why Lagom?
Brief overview of Lagom
Lagom Service API
Minimized chirper application
Frontend
Multi project builds
Summary
Chapter 7: CQRS and Event Sourcing
Data modelling
Event Sourcing
CQRS
Event Sourcing and CQRS
Lagom Persistence API
Summary
Chapter 8: Effective Communication
Isolation
Message brokers
Apache Kafka
Lagom Message Broker API
Friend Recommendation
Summary
Chapter 9: Development Process
Getting to know the key ingredients
The feedback loop
Traditional deployments and machine images
Containers
Summary
Chapter 10: Production Containers
Distributed systems and their essentials
Server automation
An introduction to cluster orchestration
Kubernetes
K8s setup guide
K8s example app
K8s monitoring
K8s security
Caveats
Summary
Chapter 11: Example Application in K8s
Talent search engine example
Dockerize
Deployment topology
K8s configurations
Installation of K8s
Deploy!
Rolling deployments
Persistent workloads
Summary

What You Will Learn

  • Learn the essentials behind Microservices, the advantages and perils associated with them
  • Build low latency, high throughput applications using Play and Lagom
  • Dive deeper with being asynchronous and understand the superiority it provides
  • Model your complex domain data for scale and simplicity with CQRS and Event Sourcing
  • Be resilient to failures by using message passing
  • Look at best practices of version control workflow, testing, continuous integration and deployments
  • Understand operating system level virtualization using Linux Containers. Docker is used to explain how containers work
  • Automate your infrastructure with kubernetes

Authors

Table of Contents

Chapter 1: Introduction to Microservices
Business idea
Implementation
Development issues
Isolation
Microservices
Summary
Chapter 2: Introduction to Play Framework
Quick introduction to Play 2.66
JSON marshalling/Unmarshalling
Play production mode
Summary
Chapter 3: Asynchronous and Non-Blocking
Being asynchronous
Being asynchronous in Scala
Work Stealing - what makes Play fast!
Summary
Chapter 4: Dive Deeper
Talent search engine
Project structure
Brief overview of the application
Security
Brief introduction to Slick
Pitfalls
Summary
Chapter 5: Reactive Manifesto
Reactive hype?
Reactive Manifesto
Manifesto explained
Summary
Chapter 6: Introduction to Lagom
Why Lagom?
Brief overview of Lagom
Lagom Service API
Minimized chirper application
Frontend
Multi project builds
Summary
Chapter 7: CQRS and Event Sourcing
Data modelling
Event Sourcing
CQRS
Event Sourcing and CQRS
Lagom Persistence API
Summary
Chapter 8: Effective Communication
Isolation
Message brokers
Apache Kafka
Lagom Message Broker API
Friend Recommendation
Summary
Chapter 9: Development Process
Getting to know the key ingredients
The feedback loop
Traditional deployments and machine images
Containers
Summary
Chapter 10: Production Containers
Distributed systems and their essentials
Server automation
An introduction to cluster orchestration
Kubernetes
K8s setup guide
K8s example app
K8s monitoring
K8s security
Caveats
Summary
Chapter 11: Example Application in K8s
Talent search engine example
Dockerize
Deployment topology
K8s configurations
Installation of K8s
Deploy!
Rolling deployments
Persistent workloads
Summary

Book Details

ISBN 139781786469342
Paperback328 pages
Read More

Read More Reviews

Recommended for You

Spring 5.0 Microservices - Second Edition Book Cover
Spring 5.0 Microservices - Second Edition
$ 39.99
$ 28.00
Microservices: Building Scalable Software Book Cover
Microservices: Building Scalable Software
$ 71.99
$ 50.40
Microservices Deployment Cookbook Book Cover
Microservices Deployment Cookbook
$ 39.99
$ 28.00
Building Applications with Scala Book Cover
Building Applications with Scala
$ 39.99
$ 28.00
Scala for Machine Learning - Second Edition Book Cover
Scala for Machine Learning - Second Edition
$ 47.99
$ 33.60
Scala: Guide for Data Science Professionals Book Cover
Scala: Guide for Data Science Professionals
$ 71.99
$ 50.40