(14) Integrate spring cloud cloud architecture - Spring Cloud builds a distributed e-commerce platform

Build a cloud business platform system of PC + WeChat + APP + cloud service through Spring Cloud, including B2B, B2C, C2C, O2O, new retail, live e-commerce and other sub-platforms. Before we talked about a lot of concept articles about Spring Cloud, from this book At the beginning of the section, we will take the distributed microservice e-commerce platform as an example, and gradually explain how to build a complete e-commerce cloud platform.

 

technical solutions

Development language: java

Database: mysql

JDK supported version: JDK1.8

Core technologies: distributed, cloud services, microservices, service orchestration

Core architecture: Using Spring Cloud distributed microservice cloud architecture for service development, all module functions are completely decoupled, providing service discovery, registration, configuration center, message bus, load balancing, circuit breaker, data monitoring , etc.

 

Technology list:

Spring Cloud Config

Configuration management toolkit that allows you to put configurations on remote servers and centrally manage cluster configurations. Currently supports local storage, Git and Subversion

 

Spring Cloud Bus

An event, message bus for propagating state changes across the cluster (e.g. configuration change events), enabling hot deployment in conjunction with Spring Cloud Config

 

Eureka

Cloud Service Discovery, a REST-based service for locating services for cloud middle-tier service discovery and failover.

 

Hystrix

Circuit breaker, a fault-tolerance management tool, is designed to control nodes of services and third-party libraries through a circuit breaker mechanism, thereby providing stronger fault tolerance for delays and failures.

 

Zuul

Zuul is a framework for providing dynamic routing, monitoring, elasticity, security and other edge services on cloud platforms. Zuul is equivalent to being the front door for all requests to the backend of the web site on the device and the Netflix streaming app.

 

Spring Cloud Security

A security toolkit based on spring security to add security controls to your application.

 

Feign

Feign is a declarative, templated HTTP client.

 

通用架构: Spring Boot,Spring Cloud,Spring MVC,Spring security,Oauth2.0,Mybatis plus 

 

Technical Architecture Diagram:



 

Code structure diagram:



 

Screenshot of APP interface:



 

 

 

 

 

Screenshot of background management:

 



 

 

 

 

 

 

From now on, I will record the construction process and essence of the recently developed spring cloud microservice cloud architecture to help more friends who are interested in developing the spring cloud framework. Let's discuss the construction process and how of the spring cloud architecture together. Used in enterprise projects.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326184295&siteId=291194637