GithubHelp home page GithubHelp logo

isabella232 / microservices-with-spring-boot-and-spring-cloud-2e Goto Github PK

View Code? Open in Web Editor NEW

This project forked from packtpublishing/microservices-with-spring-boot-and-spring-cloud-2e

0.0 0.0 0.0 1.26 MB

Microservices-with-Spring-Boot-and-Spring-Cloud-2E, Published by Packt

License: MIT License

Shell 11.63% Java 86.14% Smarty 0.23% Dockerfile 2.00%

microservices-with-spring-boot-and-spring-cloud-2e's Introduction

Microservices with Spring Boot and Spring Cloud, Second Edition

Microservices with Spring Boot and Spring Cloud, Second Edition

This is the code repository for Microservices with Spring Boot and Spring Cloud, Second Edition, published by Packt.

Build resilient and scalable microservices using Spring Cloud, Istio, and Kubernetes

About the book

With this book, you'll learn how to efficiently build and deploy microservices. This new edition has been updated for the most recent versions of Spring, Java, Kubernetes, and Istio, demonstrating faster and simpler handling of Spring Boot, local Kubernetes clusters, and Istio installation. The expanded scope includes native compilation of Spring-based microservices, support for Mac and Windows with WSL2, and an introduction to Helm 3 for packaging and deployment. A revamped security chapter now follows the OAuth 2.1 specification and makes use of the newly launched Spring Authorization Server from the Spring team.

Starting with a set of simple cooperating microservices, you'll add persistence and resilience, make your microservices reactive, and document their APIs using OpenAPI.

You’ll understand how fundamental design patterns are applied to add important functionality, such as service discovery with Netflix Eureka and edge servers with Spring Cloud Gateway. You’ll learn how to deploy your microservices using Kubernetes and adopt Istio. You'll explore centralized log management using the Elasticsearch, Fluentd, and Kibana (EFK) stack and monitor microservices using Prometheus and Grafana.

By the end of this book, you'll be confident in building microservices that are scalable and robust using Spring Boot and Spring Cloud.

What you will learn

  1. Build reactive microservices using Spring Boot
  2. Develop resilient and scalable microservices using Spring Cloud
  3. Use OAuth 2.1/OIDC and Spring Security to protect public APIs
  4. Implement Docker to bridge the gap between development, testing, and production
  5. Deploy and manage microservices with Kubernetes
  6. Apply Istio for improved security, observability, and traffic management
  7. Write and run automated microservice tests with JUnit, testcontainers, Gradle, and bash

Try out new versions

If you want to try out the source code of this book with newer versions of Spring, Java, Kubernetes, and Istio than used in the book, you can take a look at the following blog posts:

  1. Upgrade to Spring Boot 2.7 and Spring Native 0.12 (published 19 September 2022)

  2. Upgrade to Kubernetes 1.25 and Istio 1.15 (published 4 October 2022)

Errata

  • Page 147 (Defining index for MongoDB): The description does not mention that auto-creation of an index is disabled since Spring Data MongoDB 3.0. Therefore, index creation is handled programmatically by the main classes ProductServiceApplication and RecommendationServiceApplication. For example, see the method initIndicesAfterStartup in the ProductServiceApplication class.

    For more information, see:

  • Page 153 (Testcontainers for MongoDB): The sentence For the product and review microservices, which use MongoDB, a corresponding base class, MongoDbTestBase, has been added should be For the product and recommendation microservices, which use MongoDB, a corresponding base class, MongoDbTestBase, has been added.

microservices-with-spring-boot-and-spring-cloud-2e's People

Contributors

anikets-cpu avatar magnus-larsson avatar packtriannar avatar packtutkarshr avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.