gitmyhub

springcloud-learning

Java ★ 6.9k updated 1y ago

2024最新微服务实战教程,Spring Cloud组件、微服务项目实战、Kubernetes容器化部署全方位解析。技术栈:Spring Cloud Alibaba + Spring Boot 3.2 + JDK 17。

springcloud-learning is a Chinese-language tutorial series that teaches microservices development using the Spring Cloud framework for Java. Microservices is an approach where a large application is split into many small, independently running services that communicate over a network, rather than being built as one large program. This repository contains the educational material and accompanying code for learning that approach, paired with a reference e-commerce project called mall-swarm.

The tutorial is structured in several sections. A components section walks through the core pieces of the Spring Cloud ecosystem one by one: service discovery (how services find each other on a network), configuration management (storing settings centrally rather than inside each service), API gateways (a single entry point that routes requests to the right service), load balancing, circuit breakers for handling failures gracefully, distributed transaction handling, and authentication using the OAuth2 standard. A separate architecture section shows how to take a simple single-application starting point and expand it step by step into a full microservices setup.

A Kubernetes section covers deploying the finished project onto a container orchestration platform. Kubernetes is software that manages running many containers across multiple servers. The tutorials use KubeSphere, an enterprise-oriented management interface for Kubernetes, to demonstrate the deployment process.

The technology stack used is Spring Cloud Alibaba combined with Spring Boot 3.2 and Java 17. Spring Cloud Alibaba is a set of extensions that adds components popular in Chinese cloud infrastructure, such as Nacos for service registry and configuration, and Sentinel for traffic control and circuit breaking. The entire tutorial series links to an external documentation website with full article text, and the mall-swarm reference project it is based on has over 11,000 GitHub stars.