Book Image

Scala Microservices

By : Selvam Palanimalai, Jatin Puri
Book Image

Scala Microservices

By: Selvam Palanimalai, Jatin Puri

Overview of this book

<p>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. </p><p>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. </p><p>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. </p><p></p>
Table of Contents (12 chapters)

Getting to know the key ingredients

A development team is a living organism with moving parts, where engineers join and leave, make mistakes, and hate a lot of processes. How can we ensure smooth functioning of such a team? Let's try to list out the possible ingredients for a good development process for engineers. Think along the lines of collaboration, measurement, and automation. I want to go over a few key areas that might help; it is not a comprehensive list, but it can serve as a starting list that you can build on:

  • Measurement (telemetry): This measures anything and everything. It is probably one of the most valuable tasks other than writing code. This needs to be at the core of the engineering culture to be effective. To help you remember this, I want to mention two catchy quotes in the industry:
"If it moves measure it, if it's important alert it.&quot...