
- 414 pages
- English
- ePUB (mobile friendly)
- Available on iOS & Android
Spring 5.0 Microservices - Second Edition
About this book
A practical, comprehensive, and user-friendly approach to building microservices in SpringAbout This Book• Update existing applications to integrate reactive streams released as a part of Spring 5.0• Learn how to use Docker and Mesos to push the boundaries and build successful microservices• Upgrade the capability model to implement scalable microservicesWho This Book Is ForThis book is ideal for Spring developers who want to build cloud-ready, Internet-scale applications, and simple RESTful services to meet modern business demands.What You Will Learn• Familiarize yourself with the microservices architecture and its benefits• Find out how to avoid common challenges and pitfalls while developing microservices• Use Spring Boot and Spring Cloud to develop microservices• Handle logging and monitoring microservices• Leverage Reactive Programming in Spring 5.0 to build modern cloud native applications• Manage internet-scale microservices using Docker, Mesos, and Marathon• Gain insights into the latest inclusion of Reactive Streams in Spring and make applications more resilient and scalableIn DetailThe 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.Style and approachThe book takes a step-by-step approach on developing microservices using Spring Framework, Spring Boot, and a set of Spring Cloud components that will help you scale your applications.
Frequently asked questions
- Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
- Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Information
Building Microservices with Spring Boot
- Setting up the latest Spring development environment
- Developing RESTful services using Spring Framework 5 and Spring Boot
- Building reactive microservices using Spring WebFlux and Spring Messaging
- Securing microservices using Spring Security and OAuth2
- Implementing cross-origin microservices
- Documenting Spring Boot microservices using Swagger
- Spring Boot Actuator for building production-ready microservices
Setting up a development environment
- JDK 1.8 (http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html)
- Spring Tool Suite 3.8.2 (STS) (https://spring.io/tools/sts/all)
- Maven 3.3.1 (https://maven.apache.org/download.cgi)
- Spring Framework 5.0.0.RC1
- Spring Boot 2.0.0. M1
Spring Boot for building RESTful microservices
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
<dependency>
<groupId>org.hsqldb</groupId>
<artifactId>hsqldb</artifactId>
<scope>runtime</scope>
</dependency>
Getting started with Spring Boot
- By using Spring Boot CLI as a command-line tool
- By using IDEs like Spring Tool Suite (STS), which provide Spring Boot, supported out of the box
- By using the Spring Initializr project at http://start.spring.io
- By using SDKMAN! (The Software Development Kit Manager) from http://sdkman.io
Developing a Spring Boot microservice
- Install the Spring Boot command-line tool by downloading the spring-boot-cli-2.0.0.BUILD-M1-bin.zip file from the following location URL:
https://repo.spring.io/milestone/org/springframework/boot/spring-boot-cli/2.0.0.M1/
- Unzip the file into a directory of choice. Open a terminal window, and change the terminal prompt to the bin folder.
- Verify the installation with the following command. If successful, the Spring CLI version will be printed on the console as shown:
$spring –-version
Spring CLI v2.0.0.M1
- As the next step, a quick REST service will be developed in groovy, which is supported ...
Table of contents
- Title Page
- Copyright
- Credits
- About the Author
- Acknowledgments
- About the Reviewer
- www.PacktPub.com
- Customer Feedback
- Preface
- Demystifying Microservices
- Related Architecture Styles and Use Cases
- Building Microservices with Spring Boot
- Applying Microservices Concepts
- Microservices Capability Model
- Microservices Evolution – A Case Study
- Scale Microservices with Spring Cloud Components
- Logging and Monitoring Microservices
- Containerizing Microservices with Docker
- Scaling Dockerized Microservices with Mesos and Marathon
- Microservice Development Life Cycle