Book Image

Spring 5.0 Microservices - Second Edition

By : Rajesh R V
Book Image

Spring 5.0 Microservices - Second Edition

By: Rajesh R V

Overview of this book

The Spring Framework is an application framework and inversion of the control container for the Java platform. The framework’s core features can be used by any Java application, but there are extensions to build web applications on top of the Java EE platform. This book will help you implement the microservice architecture in Spring Framework, Spring Boot, and Spring Cloud. Written to the latest specifications of Spring that focuses on Reactive Programming, you’ll be able to build modern, internet-scale Java applications in no time. The book starts off with guidelines to implement responsive microservices at scale. Next, you will understand how Spring Boot is used to deploy serverless autonomous services by removing the need to have a heavyweight application server. Later, you’ll learn how to go further by deploying your microservices to Docker and managing them with Mesos. By the end of the book, you will have gained more clarity on the implementation of microservices using Spring Framework and will be able to use them in internet-scale deployments through real-world examples.
Table of Contents (11 chapters)

Microservices on Cloud


One of the capabilities mentioned in the microservices capability model is the use of the Cloud infrastructure for microservices. Earlier in this chapter, we also explored the necessity of using Cloud for microservices deployments. So far, we have not deployed anything to the Cloud. Once we have many microservices, it will be hard to run all of them on the local machine.

In the rest of this book, we will operate using AWS as the Cloud platform for deploying the BrownField PSS microservices.

Installing Docker on AWS EC2

In this section, we will install Docker on the EC2 instance. Follow these steps to install Docker.

This example assumes that you are familiar with AWS and an account has already been created on AWS:

Follow these steps to set up Docker on EC2:

  1. Launch a new EC2 instance. In this case, if we have to run all instances together, we may need a large instance. The example uses t2.large.

Note

In this example, the following Ubuntu AMI is used. Ubuntu Server 16.04 LTS...