# macrozheng/springcloud-learning

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/macrozheng-springcloud-learning).**

6,924 stars · 2,818 forks · Java

## Links

- GitHub: https://github.com/macrozheng/springcloud-learning
- Homepage: https://cloud.macrozheng.com
- awesome-repositories: https://awesome-repositories.com/repository/macrozheng-springcloud-learning.md

## Topics

`java` `springboot` `springcloud`

## Description

This project is a reference implementation of a distributed system built using Spring Cloud Alibaba, Spring Boot, and JDK 17. It serves as a comprehensive model for implementing a microservices architecture.

The system integrates a wide range of distributed patterns, including global transaction coordination for data consistency, OAuth2 and JWT for identity management, and Kubernetes-based container orchestration. It features a dedicated observability stack for distributed request tracing, log aggregation, and service health monitoring.

The implementation covers several functional domains, including e-commerce operations such as product inventory management, order processing, and marketing campaign execution. It also incorporates technical capabilities for asynchronous message queuing, distributed data caching, full-text search, and cloud object storage.

The project provides deployment templates for Kubernetes to manage the scaling and reliability of the microservices cluster.

## Tags

### Software Engineering & Architecture

- [Cloud Alibaba Integrations](https://awesome-repositories.com/f/software-engineering-architecture/spring-boot-integrations/cloud-alibaba-integrations.md) — Serves as a reference implementation of a distributed system using Spring Cloud Alibaba and Spring Boot.
- [Distributed Transaction Coordinators](https://awesome-repositories.com/f/software-engineering-architecture/distributed-transaction-coordinators.md) — Manages global transaction lifecycles to ensure data consistency across multiple distributed databases.
- [Distributed Transaction Management](https://awesome-repositories.com/f/software-engineering-architecture/distributed-transaction-management.md) — Implements global transaction coordination to ensure data consistency across multiple microservices.
- [Event Driven Messaging](https://awesome-repositories.com/f/software-engineering-architecture/event-driven-messaging.md) — Decouples system components through asynchronous message delivery and pub-sub patterns to handle high traffic.
- [Message Queuing Architectures](https://awesome-repositories.com/f/software-engineering-architecture/message-queuing-architectures.md) — Utilizes asynchronous message routing to decouple task producers and consumers for high-volume traffic. ([source](https://cloud.macrozheng.com/foreword/mall_swarm_foreword_03.html))
- [Service Discovery Registries](https://awesome-repositories.com/f/software-engineering-architecture/service-discovery-registries.md) — Maintains dynamic registries of service locations and health status to enable communication without hardcoded addresses.
- [Centralized Configuration Systems](https://awesome-repositories.com/f/software-engineering-architecture/centralized-configuration-systems.md) — Distributes application settings from a central server to multiple services to ensure environment consistency. ([source](https://cloud.macrozheng.com/foreword/mall_swarm_video.html))
- [Circuit Breakers](https://awesome-repositories.com/f/software-engineering-architecture/circuit-breakers.md) — Prevents cascading failures by stopping requests to unhealthy services and providing fallback responses.

### DevOps & Infrastructure

- [Spring Cloud Implementations](https://awesome-repositories.com/f/devops-infrastructure/api-service-management/microservice-infrastructure/service-mesh-components/spring-cloud-implementations.md) — Provides a comprehensive reference implementation of a Spring Cloud microservices architecture.
- [Container Orchestrators](https://awesome-repositories.com/f/devops-infrastructure/container-orchestration/container-orchestration-interfaces/container-orchestrators.md) — Automates the deployment, scaling, and management of containerized microservices across a host cluster.
- [Microservice Orchestrations](https://awesome-repositories.com/f/devops-infrastructure/gpu-resource-orchestrators/kubernetes-orchestrators/microservice-orchestrations.md) — Orchestrates containerized microservices using a management platform to ensure reliable deployment and scaling. ([source](https://cloud.macrozheng.com))
- [Observability Stacks](https://awesome-repositories.com/f/devops-infrastructure/observability-stacks.md) — Implements an integrated suite for collecting, storing, and visualizing telemetry data across the system.
- [Request Gateways](https://awesome-repositories.com/f/devops-infrastructure/request-gateways.md) — Provides a stateless entry point to manage client connections and route traffic to backend services.
- [Kubernetes Cluster Orchestration](https://awesome-repositories.com/f/devops-infrastructure/kubernetes-cluster-orchestration.md) — Ships configurations and templates for orchestrating the microservices cluster using Kubernetes.
- [Kubernetes Deployments](https://awesome-repositories.com/f/devops-infrastructure/kubernetes-deployments.md) — Provides deployment templates and configuration sets for running microservices on Kubernetes.

### Networking & Communication

- [Load Balancers](https://awesome-repositories.com/f/networking-communication/load-balancers.md) — Distributes incoming network traffic across multiple service instances to ensure high availability and resource optimization. ([source](https://cloud.macrozheng.com/foreword/mall_swarm_video.html))
- [Request Routing](https://awesome-repositories.com/f/networking-communication/network-infrastructure-routing/network-routing-traffic-management/request-routing.md) — Implements a central entry point that directs incoming traffic to appropriate microservices using routing logic. ([source](https://cdn.jsdelivr.net/gh/macrozheng/springcloud-learning@master/README.md))
- [Service Discovery](https://awesome-repositories.com/f/networking-communication/service-discovery.md) — Implements mechanisms for identifying and locating microservice instances within the distributed environment. ([source](https://cloud.macrozheng.com/foreword/mall_swarm_video.html))
- [Circuit Breakers](https://awesome-repositories.com/f/networking-communication/traffic-management-gateways/circuit-breakers.md) — Integrates circuit breakers to stop traffic to failing services and prevent cascading failures in the distributed system. ([source](https://cdn.jsdelivr.net/gh/macrozheng/springcloud-learning@master/README.md))

### Security & Cryptography

- [Centralized Identity Management](https://awesome-repositories.com/f/security-cryptography/centralized-identity-management.md) — Consolidates authentication policies and manages identity via a centralized authorization server using OAuth2 and JWT.
- [OAuth2 Client Authorization](https://awesome-repositories.com/f/security-cryptography/oauth2-client-authorization.md) — Secures API resources through a centralized authorization server using OAuth2 and JWT token validation.
- [OAuth2 Implementations](https://awesome-repositories.com/f/security-cryptography/oauth2-implementations.md) — Implements OAuth2 and JWT layers to handle authentication and authorization for distributed API resources.
- [OAuth2 Providers](https://awesome-repositories.com/f/security-cryptography/oauth2-providers.md) — Implements a centralized authorization server to manage identity and issue access tokens via OAuth2. ([source](https://cdn.jsdelivr.net/gh/macrozheng/springcloud-learning@master/README.md))
- [User Access Controls](https://awesome-repositories.com/f/security-cryptography/user-access-controls.md) — Provides mechanisms for restricting system access based on user identity, roles, and authorization levels. ([source](https://cloud.macrozheng.com/foreword/mall_swarm_foreword_01.html))

### System Administration & Monitoring

- [Observability Pipelines](https://awesome-repositories.com/f/system-administration-monitoring/observability-pipelines.md) — Includes a dedicated pipeline for aggregating logs, traces, and health metrics across distributed services.
- [Administrative Dashboards](https://awesome-repositories.com/f/system-administration-monitoring/administrative-dashboards.md) — Provides a web-based interface for centralized management of backend operations and system configurations. ([source](https://cloud.macrozheng.com/foreword/mall_swarm_foreword_04.html))
- [Distributed Log Aggregation](https://awesome-repositories.com/f/system-administration-monitoring/distributed-log-aggregation.md) — Collects and indexes application logs from multiple distributed sources into a searchable interface. ([source](https://cloud.macrozheng.com/foreword/mall_swarm_foreword_03.html))
- [Distributed Tracing](https://awesome-repositories.com/f/system-administration-monitoring/monitoring-and-observability/observability-platforms/distributed-tracing-execution-analysis/distributed-tracing.md) — Tracks the end-to-end path of requests across services to diagnose errors and performance bottlenecks. ([source](https://cdn.jsdelivr.net/gh/macrozheng/springcloud-learning@master/README.md))
- [Service Health Monitoring](https://awesome-repositories.com/f/system-administration-monitoring/service-health-monitoring.md) — Tracks operational status and resource usage of active service instances via a centralized dashboard. ([source](https://cloud.macrozheng.com/foreword/mall_swarm_video.html))

### Business & Productivity Software

- [E-commerce Administration Interfaces](https://awesome-repositories.com/f/business-productivity-software/e-commerce-administration-interfaces.md) — Implements a centralized administrative interface for managing product catalogs, order processing, and marketing campaigns. ([source](https://cloud.macrozheng.com/foreword/mall_swarm_foreword_01.html))
- [Marketing Campaign Executions](https://awesome-repositories.com/f/business-productivity-software/marketing-campaign-executions.md) — Manages e-commerce promotional workflows including flash sales, coupons, and curated recommendations. ([source](https://cloud.macrozheng.com/foreword/mall_swarm_foreword_02.html))
- [Order Lifecycle Orchestration](https://awesome-repositories.com/f/business-productivity-software/payment-order-management/order-lifecycle-orchestration.md) — Coordinates the full e-commerce order lifecycle from initial creation and payment to delivery. ([source](https://cloud.macrozheng.com/foreword/mall_swarm_foreword_02.html))
- [Product Catalogs](https://awesome-repositories.com/f/business-productivity-software/product-catalogs.md) — Organizes and manages complex product listings, categories, types, and brands within a centralized catalog. ([source](https://cloud.macrozheng.com/foreword/mall_swarm_foreword_02.html))

### Data & Databases

- [Distributed Caching](https://awesome-repositories.com/f/data-databases/distributed-caching.md) — Implements distributed in-memory caching to reduce database load and improve response times. ([source](https://cloud.macrozheng.com/foreword/mall_swarm_foreword_03.html))
- [Full Text Search](https://awesome-repositories.com/f/data-databases/full-text-search.md) — Provides high-performance full-text search capabilities by indexing large datasets using a specialized engine. ([source](https://cloud.macrozheng.com/foreword/mall_swarm_foreword_03.html))
- [Non-Relational Data Storage](https://awesome-repositories.com/f/data-databases/non-relational-data-storage.md) — Persists flexible, schema-less documents in a NoSQL database to handle varied and unstructured data formats. ([source](https://cloud.macrozheng.com/foreword/mall_swarm_foreword_03.html))
