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.
Development language: java
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.
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
Cloud service discovery, a rest based service, is used to locate services, so as to realize cloud middle layer service discovery and fail over.
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 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 is a declarative and templated HTTP client.
General architecture: spring boot, spring cloud, spring MVC, spring security, oauth2.0, mybatis plus
Technical architecture diagram:
Code structure diagram:
Screenshot of APP interface:
Background management screenshot:
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.