Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Practical case project of micro-service architecture based on SpringCloud

2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

QuickStart

Based on the SpringCloud system, the simple shopping process is realized to meet the basic functions: registration, login, commodity list display, product details display, order creation, details view, order payment, inventory update and so on.

Each business service uses a separate MYSQL database, and the following components are initially considered:

Service Registration, Discovery: eureka

Configuration management: spring config, spring security

Cluster fault tolerance: hystrix (to be implemented)

API Gateway: zuul (to be implemented)

Service load: feign+ribbon

Api document output: swagger2

Code simplification: lombok

Message queuing: rabbitmq

Distributed lock: redis (to be implemented)

Link tracking: spring cloud sletuh-> zipkin

Security authentication: oauth3/JWT (to be implemented)

Service Monitoring: spring-boot-admin

Each module introduces the name and port of admin-server9002 service monitoring center, monitors all service modules conf-server9004 distributed configuration center, combines spring-security/rabbitmq with eureka-server9003 service registry center, provides a distributed tracking solution for service registration and discovery function sleuth-server9001SpringCloud, which is compatible with Zipkinzuul-server9005API gateway module account-service8080 user service, and provides registration, login, address and other services product-service8081 commodity services. Provide goods list, details, inventory update and other services payment-service8082 payment service, payment record order-service8083 order service, provide order creation, details, status change msg-service8084 message processing service front-app8088 front-end service, combined with swagger2 to provide API management quick start

1. Start the three basic services of admin-server,eureka-server,conf-server first

2. Start the basic business services of payment/order/product/account in turn

3. Finally, start the front-app service, open the browser, and enter http://localhost:8088/swagger... According to the process API, the functions can be used in turn

4. Provide the page later when there is time, and string the process together based on VUE2+BOOTSTRAP.

Release Versionv2.1

Release Date: 2017-08-29

1. Introduce swagger2, complete API interface document management, complete overall business data flow 2, complete overall business data through API interface 3, introduce configuration center based on Spring-cloud-config, and strengthen security configuration combined with security. At the same time, introduce bus-amqp (rabbitmq) to efficiently update configuration content [configuration center data combined with sc-cloud-repo project] 4, introduce feign, meet client call server service 5, introduce ribbon It can satisfy the client's load balancing to invoke the back-end service v1.0.

Release Date: 2017-08-17

1. Complete the construction of basic services and business sub-module services, and the business sub-modules can run normally. 2. Complete the operation monitoring of SpringBootAdmin business modules and the operation of Eureka services to meet the registration and discovery functions of various business basic services. 3. Through the Front-app side, you can initiate a simple test run of login/signup and other functions with the help of Feign components. The next version, based on this version, will continue to refine the complete shopping implementation, including simple pages, api management / calls, and so on. Focus on more content

Source code address: https://github.com/backkoms/simplemall

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report