(14) Integrating spring cloud architecture to build a distributed e-commerce platform

Time:2021-4-28

Build a cloud business platform system of PC + wechat + app + cloud services through spring cloud, including B2B, B2C, C2C, o2o, new retail, live e-commerce and other sub platforms. We have talked about a lot of concept articles about spring cloud before. Starting from this section, we will take the distributed micro service e-commerce platform as an example, Step by step to explain how to build a complete e-commerce cloud platform.

Technical solutions

Development language:   java

Database: MySQL

JDK support version: JDK1.8

Core technologies: distributed, cloud services, micro services, service choreography

Core architecture: the spring cloud distributed microservice cloud architecture is used for service-oriented development, and all module functions are completely decoupled, providingService discovery, registration, configuration center, message bus, load balancing, circuit breaker, data monitoringAnd so on.

Technology list:

Spring Cloud Config

The configuration management toolkit enables you to put the configuration on the remote server and centrally manage the cluster configuration. Currently, it supports local storage, GIT and subversion

Spring Cloud Bus

Event and message bus, which are used to propagate state changes in the cluster (for example, configuration change events), and can be combined with spring cloud config to realize hot deployment

Eureka

Cloud service discovery, a rest based service, is used to locate services, so as to realize cloud middle layer service discovery and fail over.

Hystrix

Fuse, a fault-tolerant management tool, aims to control the nodes of service and third-party library through the fuse mechanism, so as to provide more powerful fault-tolerant capability for delay and fault.

Zuul

Zuul is a framework that provides dynamic routing, monitoring, flexibility, security and other edge services on cloud platform. Zuul is equivalent to the front door of all requests from the back end of the web site of the device and Netflix streaming application.

Spring Cloud Security

Spring security based security toolkit to add security controls to your application.

Feign

Feign is a declarative and templated HTTP client.

General architecture: spring boot, spring cloud, spring MVC, spring security, oauth2.0, mybatis plus

Technical architecture diagram:

(14) Integrating spring cloud architecture to build a distributed e-commerce platform
 

Code structure diagram:

(14) Integrating spring cloud architecture to build a distributed e-commerce platform
 

Screenshot of APP interface:

(14) Integrating spring cloud architecture to build a distributed e-commerce platform
 
(14) Integrating spring cloud architecture to build a distributed e-commerce platform
 
(14) Integrating spring cloud architecture to build a distributed e-commerce platform
 
(14) Integrating spring cloud architecture to build a distributed e-commerce platform
 
(14) Integrating spring cloud architecture to build a distributed e-commerce platform
 

Background management screenshot:

(14) Integrating spring cloud architecture to build a distributed e-commerce platform
 
(14) Integrating spring cloud architecture to build a distributed e-commerce platform
 
(14) Integrating spring cloud architecture to build a distributed e-commerce platform
 
(14) Integrating spring cloud architecture to build a distributed e-commerce platform
 
(14) Integrating spring cloud architecture to build a distributed e-commerce platform
 
(14) Integrating spring cloud architecture to build a distributed e-commerce platform
 

From now on, I will record the construction process and essence of the recently developed spring cloud microservice Cloud Architecture, so as to help more friends who are interested in developing spring cloud framework. Let’s discuss the construction process of spring cloud architecture and how to apply it to enterprise projects.

Recommended Today

The use of springboot Ajax

Ajax overview What is Ajax? data Ajax application scenarios? project Commodity system. Evaluation system. Map system. ….. Ajax can only send and retrieve the necessary data to the server, and use JavaScript to process the response from the server on the client side. data But Ajax technology also has disadvantages, the biggest disadvantage is that […]