Spring Microservices

Build scalable microservices with Spring, Docker, and Mesos

Spring Microservices

Rajesh R V

5 customer reviews
Build scalable microservices with Spring, Docker, and Mesos
Mapt Subscription
FREE
$29.99/m after trial
eBook
$28.00
RRP $39.99
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
$0.00
$28.00
$49.99
$29.99p/m after trial
RRP $39.99
RRP $49.99
Subscription
eBook
Print + eBook
Start 30 Day Trial
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 
Preview in Mapt

Book Details

ISBN 139781786466686
Paperback436 pages

Book Description

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, you'll be able to build modern, Internet-scale Java applications in no time.

We would start off with the guidelines to implement responsive microservices at scale. We will then deep dive into Spring Boot, Spring Cloud, Docker, Mesos, and Marathon. Next you will understand how Spring Boot is used to deploy autonomous services, server-less by removing the need to have a heavy-weight application server. Later you will learn how to go further by deploying your microservices to Docker and manage it with Mesos. By the end of the book, you'll will gain more clarity on how to implement microservices using Spring Framework and use them in Internet-scale deployments through real-world examples.

Table of Contents

Chapter 1: Demystifying Microservices
The evolution of microservices
What are microservices?
Microservices – the honeycomb analogy
Principles of microservices
Characteristics of microservices
Microservices examples
Microservices benefits
Relationship with other architecture styles
Microservice use cases
Summary
Chapter 2: Building Microservices with Spring Boot
Setting up a development environment
Developing a RESTful service – the legacy approach
Moving from traditional web applications to microservices
Using Spring Boot to build RESTful microservices
Getting started with Spring Boot
Developing the Spring Boot microservice using the CLI
Developing the Spring Boot Java microservice using STS
Developing the Spring Boot microservice using Spring Initializr – the HATEOAS example
What's next?
The Spring Boot configuration
Changing the default embedded web server
Implementing Spring Boot security
Enabling cross-origin access for microservices
Implementing Spring Boot messaging
Developing a comprehensive microservice example
Spring Boot actuators
Configuring application information
Adding a custom health module
Documenting microservices
Summary
Chapter 3: Applying Microservices Concepts
Patterns and common design decisions
Microservices challenges
The microservices capability model
Summary
Chapter 4: Microservices Evolution – A Case Study
Reviewing the microservices capability model
Understanding the PSS application
Death of the monolith
Microservices to the rescue
The business case
Plan the evolution
Migrate modules only if required
Target architecture
Target implementation view
Summary
Chapter 5: Scaling Microservices with Spring Cloud
Reviewing microservices capabilities
Reviewing BrownField's PSS implementation
What is Spring Cloud?
Setting up the environment for BrownField PSS
Spring Cloud Config
Feign as a declarative REST client
Ribbon for load balancing
Eureka for registration and discovery
Zuul proxy as the API gateway
Streams for reactive microservices
Summarizing the BrownField PSS architecture
Summary
Chapter 6: Autoscaling Microservices
Reviewing the microservice capability model
Scaling microservices with Spring Cloud
Understanding the concept of autoscaling
Autoscaling approaches
Autoscaling BrownField PSS microservices
Summary
Chapter 7: Logging and Monitoring Microservices
Reviewing the microservice capability model
Understanding log management challenges
A centralized logging solution
The selection of logging solutions
Monitoring microservices
Data analysis using data lakes
Summary
Chapter 8: Containerizing Microservices with Docker
Reviewing the microservice capability model
Understanding the gaps in BrownField PSS microservices
What are containers?
The difference between VMs and containers
The benefits of containers
Microservices and containers
Introduction to Docker
Deploying microservices in Docker
Running RabbitMQ on Docker
Using the Docker registry
Microservices on the cloud
Running BrownField services on EC2
Updating the life cycle manager
The future of containerization – unikernels and hardened security
Summary
Chapter 9: Managing Dockerized Microservices with Mesos and Marathon
Reviewing the microservice capability model
The missing pieces
Why cluster management is important
What does cluster management do?
Relationship with microservices
Relationship with virtualization
Cluster management solutions
Cluster management with Mesos and Marathon
Implementing Mesos and Marathon for BrownField microservices
A place for the life cycle manager
The technology metamodel
Summary
Chapter 10: The Microservices Development Life Cycle
Reviewing the microservice capability model
The new mantra of lean IT – DevOps
Meeting the trio – microservices, DevOps, and cloud
Practice points for microservices development
Microservices development governance, reference architectures, and libraries
Summary

What You Will Learn

  • Get to know the microservices development lifecycle process
  • See how to implement microservices governance
  • Familiarize yourself with the microservices architecture and its benefits
  • Use Spring Boot to develop microservices
  • Find out how to avoid common pitfalls when developing microservices
  • Be introduced to end-to-end microservices written in Spring Framework and Spring Boot

Authors

Table of Contents

Chapter 1: Demystifying Microservices
The evolution of microservices
What are microservices?
Microservices – the honeycomb analogy
Principles of microservices
Characteristics of microservices
Microservices examples
Microservices benefits
Relationship with other architecture styles
Microservice use cases
Summary
Chapter 2: Building Microservices with Spring Boot
Setting up a development environment
Developing a RESTful service – the legacy approach
Moving from traditional web applications to microservices
Using Spring Boot to build RESTful microservices
Getting started with Spring Boot
Developing the Spring Boot microservice using the CLI
Developing the Spring Boot Java microservice using STS
Developing the Spring Boot microservice using Spring Initializr – the HATEOAS example
What's next?
The Spring Boot configuration
Changing the default embedded web server
Implementing Spring Boot security
Enabling cross-origin access for microservices
Implementing Spring Boot messaging
Developing a comprehensive microservice example
Spring Boot actuators
Configuring application information
Adding a custom health module
Documenting microservices
Summary
Chapter 3: Applying Microservices Concepts
Patterns and common design decisions
Microservices challenges
The microservices capability model
Summary
Chapter 4: Microservices Evolution – A Case Study
Reviewing the microservices capability model
Understanding the PSS application
Death of the monolith
Microservices to the rescue
The business case
Plan the evolution
Migrate modules only if required
Target architecture
Target implementation view
Summary
Chapter 5: Scaling Microservices with Spring Cloud
Reviewing microservices capabilities
Reviewing BrownField's PSS implementation
What is Spring Cloud?
Setting up the environment for BrownField PSS
Spring Cloud Config
Feign as a declarative REST client
Ribbon for load balancing
Eureka for registration and discovery
Zuul proxy as the API gateway
Streams for reactive microservices
Summarizing the BrownField PSS architecture
Summary
Chapter 6: Autoscaling Microservices
Reviewing the microservice capability model
Scaling microservices with Spring Cloud
Understanding the concept of autoscaling
Autoscaling approaches
Autoscaling BrownField PSS microservices
Summary
Chapter 7: Logging and Monitoring Microservices
Reviewing the microservice capability model
Understanding log management challenges
A centralized logging solution
The selection of logging solutions
Monitoring microservices
Data analysis using data lakes
Summary
Chapter 8: Containerizing Microservices with Docker
Reviewing the microservice capability model
Understanding the gaps in BrownField PSS microservices
What are containers?
The difference between VMs and containers
The benefits of containers
Microservices and containers
Introduction to Docker
Deploying microservices in Docker
Running RabbitMQ on Docker
Using the Docker registry
Microservices on the cloud
Running BrownField services on EC2
Updating the life cycle manager
The future of containerization – unikernels and hardened security
Summary
Chapter 9: Managing Dockerized Microservices with Mesos and Marathon
Reviewing the microservice capability model
The missing pieces
Why cluster management is important
What does cluster management do?
Relationship with microservices
Relationship with virtualization
Cluster management solutions
Cluster management with Mesos and Marathon
Implementing Mesos and Marathon for BrownField microservices
A place for the life cycle manager
The technology metamodel
Summary
Chapter 10: The Microservices Development Life Cycle
Reviewing the microservice capability model
The new mantra of lean IT – DevOps
Meeting the trio – microservices, DevOps, and cloud
Practice points for microservices development
Microservices development governance, reference architectures, and libraries
Summary

Book Details

ISBN 139781786466686
Paperback436 pages
Read More
From 5 reviews

Read More Reviews