About DavidHLPL · RHINE LAB RSS ↗
FILE X-1067 / Backend engineering

Spring Boot and Spring Cloud: Auto-Configuration, Transactions, Service Discovery, Gateway, and Observability

ENGINEERING NOTES

Published / DavidHLPL

The 13 Spring Boot/Cloud notes in Fuwari form the main body of microservice notes: auto-configuration, startup, transactions, service discovery, gateway, and observability. This page converges them into reusable contracts anchored on service discovery.

Core Mechanism

  • Boot: SpringBootAuto-configuration.md covers @EnableAutoConfiguration and conditionals; SpringTransactions.md covers propagation and isolation.
  • Service discovery: Nacos.md and ConsulServiceRegistrationandDiscovery.md compare AP/CP, health checks, and config centers; dubbo-nacos-runtime already has pinned evidence for Dubbo+Nacos.
  • Calls and gateway: OpenFeign.md, LoadBalancer.md, SpringCloudGateway.md cover declarative calls, load balancing, and routing.
  • Resilience and observability: Sentinel.md, CircuitBreakerPatterns, BulkHeadBasics cover circuit breaking/rate limiting/isolation; SetupofMicrometerandZipkinTracing.md covers tracing.

Applicability

  • Spring ecosystem that needs to quickly assemble service discovery and gateway for microservices.

Not Applicable and Risks

  • Source versions are not fully pinned and drift from current Spring Boot 3.x / Cloud 2023; SpringSecurityAndCloudPermissionService touches permissions and must be rechecked against current versions.
  • Transaction and distributed transaction boundaries (not covered separately) need explicit evaluation.

Minimum Verification

  1. Auto-configuration: locate candidates in spring.factories/imports.
  2. Service discovery: start/stop local Nacos/Consul and verify health and routing.
  3. Gateway: unit-test predicates and filters, load-test circuit breaker/rate limit thresholds.

Evidence and Uncertainty

  • Source facts: ingest-spring-cloud contains 13 source notes, some with zero-width characters in filenames.
  • Synthesis: This page converges scattered notes into a call-chain model.
  • Unconfirmed: Spring Cloud version matrix and Gateway predicate syntax must be verified against current versions.

Research notes

  1. Original document: src/content/note/en/spring-cloud-and-boot.md
  2. Source revision: f49953fb0d4bd52a39bf81167b0c4b7dd7d78a64
  3. Evidence status: active

Original source ↗