explaingit

dyc87112/springcloud-learning

7,386JavaAudience · developerComplexity · 3/5Setup · moderate

TLDR

Runnable Java code samples for learning Spring Cloud microservices, covering service discovery, circuit breakers, API gateways, and distributed tracing, organized by framework version with Chinese-language blog tutorials.

Mindmap

mindmap
  root((springcloud-learning))
    Service discovery
      Eureka
      Consul
      Nacos
    Communication
      Feign client
      Ribbon load balancing
    Resilience
      Hystrix circuit breaker
      Sentinel rate limiting
    Infrastructure
      API gateway
      Config server
      Distributed tracing
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Things people build with this

USE CASE 1

Run working examples of service discovery with Eureka, Consul, or Nacos to see how microservices find each other

USE CASE 2

Try circuit breaker patterns using Hystrix or Sentinel to handle downstream service failures gracefully

USE CASE 3

Explore how an API gateway routes and filters incoming requests to backend Spring Cloud services

USE CASE 4

Set up distributed tracing with Zipkin to follow a single request across multiple microservices

Tech stack

JavaSpring CloudSpring BootEurekaNacosFeignRabbitMQZipkin

Getting it running

Difficulty · moderate Time to first run · 30min

Some modules require RabbitMQ, Nacos, or Zipkin running locally, Java and Maven must be installed.

In plain English

This repository is a collection of code samples and blog post links for learning Spring Cloud, a set of tools built on top of the Java Spring framework that helps developers build systems made of many small, independently running services rather than one large program. The project is written and maintained in Chinese, so most of the explanatory content is in that language, though the code itself follows standard Java conventions. The samples are organized by Spring Cloud release series, covering several generations of the framework from older versions like Brixton and Dalston up through Finchley and the Alibaba extensions. Each section corresponds to a series of tutorials published on an external blog, and the repository provides the working code that goes alongside those written guides. Topics covered include how services find and register with each other using tools called Eureka, Consul, and Nacos, how one service calls another over the network using clients like Feign and Ribbon, how to share configuration settings across many services from a central place, and how to handle failures gracefully when a downstream service stops responding, using a pattern called a circuit breaker (implemented here via Hystrix and Sentinel). The project also covers API gateways, which act as a single front door that routes incoming requests to the right internal service. Additional sections address message-driven communication between services using RabbitMQ and Spring Cloud Stream, including patterns for retrying failed message deliveries and routing messages based on their content. There is also coverage of distributed tracing, which lets developers follow a single user request as it passes through multiple services, with integrations for Zipkin and Logstash. A separate section covers Spring Cloud Alibaba, a set of components popular in China that includes Nacos for service registration and configuration, Sentinel for traffic control and rate limiting, and integration with the Dubbo remote procedure call framework. The repository is described as continuously updated. If you are approaching Spring Cloud for the first time and can read Chinese, this project gives you runnable examples alongside a full written tutorial series.

Copy-paste prompts

Prompt 1
Show me how to configure a Feign client in Spring Cloud that retries on failure and falls back to a default response
Prompt 2
How do I set up Nacos as a centralized config server in Spring Cloud Alibaba and load properties at startup?
Prompt 3
Give me a working Spring Cloud Gateway route configuration that rate-limits requests to a backend service
Prompt 4
How does Sentinel flow control work in Spring Cloud Alibaba and how do I define a rule in Java code?
Prompt 5
How do I integrate Zipkin with Spring Cloud Sleuth to trace requests across three microservices?
Open on GitHub → Explain another repo

← dyc87112 on gitmyhub — every repo by this author, as a profile.

Verify against the repo before relying on details.