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)

Brief overview of the application

On running the application using runAll, you can access the application at http://localhost:3000. There is a simple registration page to register with email and password.

On logging in, you will the following page:

You can search for developers of a programming language in a particular city. Some sample queries are as follows:

  • Scala in london
  • Java developers in New York
  • Scala developers
  • Developers in San Jose
  • San Francisco

That is, we have our own custom domain-specific language (DSL) for the user to be able to search lucidly.

The search works on the tag, which is the programming language, and the location, which is a city. Please refer to the following points:

  • Based on the data available at the Stack Overflow microservice and GitHub microservice, the application will obtain the site-specific data for a location and tag
  • Rank developers for...