Book Image

Spring: Microservices with Spring Boot

By : Ranga Rao Karanam
Book Image

Spring: Microservices with Spring Boot

By: Ranga Rao Karanam

Overview of this book

Microservices helps in decomposing applications into small services and move away from a single monolithic artifact. It helps in building systems that are scalable, flexible, and high resilient. Spring Boot helps in building REST-oriented, production-grade microservices. This book is a quick learning guide on how to build, monitor, and deploy microservices with Spring Boot. You'll be first familiarized with Spring Boot before delving into building microservices. You will learn how to document your microservice with the help of Spring REST docs and Swagger documentation. You will then learn how to secure your microservice with Spring Security and OAuth2. You will deploy your app using a self-contained HTTP server and also learn to monitor a microservice with the help of Spring Boot actuator. This book is ideal for Java developers who knows the basics of Spring programming and want to build microservices with Spring Boot. This book is embedded with useful assessments that will help you revise the concepts you have learned in this book. This book is repurposed for this specific learning experience from material from Packt's Mastering Spring 5.0 by Ranga Rao Karanam.
Table of Contents (7 chapters)

Preface

Nowadays developers are facing competitive pressures and it impacts the way they build applications, which includes faster delivery, scalability, and high performance. Microservices helps in decomposing applications into small services and move away from a single monolithic artifact. In that case, we can build systems that are scalable, flexible, and high resilient. Spring Boot helps in building such REST-oriented, production-grade microservices.

So, if you want to build microservices with Spring Boot, you are in the right path.

What's in It for Me?

Maps are vital for your journey, especially when you're holidaying in another continent. When it comes to learning, a roadmap helps you in giving a definitive path for progressing towards the goal. So, here you're presented with a roadmap before you begin your journey.

This book is meticulously designed and developed in order to empower you with all the right and relevant information on Spring Boot. We've created this Learning Path for you that consists of three lessons:

Lesson 1, Building Microservices with Spring Boot, covers the basics of Spring Boot and REST services. You will explore different features of Spring Boot and create a few REST services with great tests.

Lesson 2, Extending Microservices, covers how to add features such as exception handling, caching, and internationalization to your application. You will learn the best practices of documenting REST services using Swagger. You will look at the basics of securing your microservices with Spring Security.

Lesson 3, Advanced Spring Boot Features, takes a look at the advanced features in Spring Boot. You will learn how to monitor a microservice with a Spring Boot Actuator. You will then learn how to deploy the microservice to Cloud. You will also learn how to develop more effectively with the developer tools provided by Spring Boot.

What Will I Get from This Book?

  • Use Spring Initializr to create a basic Spring project

  • Build a basic microservice with Spring Boot

  • Implement caching and exception handling

  • Secure your microservice with Spring security and OAuth2

  • Deploy microservices using self-contained HTTP server

  • Monitor your microservices with Spring Boot actuator

  • Learn to develop more effectively with developer tools

Prerequisites

This book is aimed at Java developers who knows the basics of Spring programming and want to build microservices with Spring Boot. Some of the prerequisites that is required before you begin this book are:

  • Working knowledge on Java

  • Basic knowledge on Spring programming