**
Spring Cloud distributed micro-service practice, develop comprehensive technical ability to deal with complex business
**
Ultra clear original painting complete without encryption MP4Baidu cloud disk
**
This is a practical course to cultivate the comprehensive technical ability to deal with complex business. This course adopts the development mode of front and back end separation, strictly complies with the enterprise-level architecture and norms, and leads you to develop enterprise-level we-media platforms of portal platform + media center + operation center. You will have a comprehensive grasp of the mainstream backend technology stack: Spring Cloud+MongoDB+Redis+RabbitMQ, etc., while gaining comprehensive practical experience in microservices, distribution, projects and microarchitecture.
**
**
Suits the crowd
Java developers who need to quickly upgrade their experience in mainstream technology integration projects
Early – and mid-level Java developers on their way to becoming architects
Technical reserve requirements
Java language, and preferably
Maven, MySQL, Linux Basics
Chapter Contents:
**
Chapter 1 Course guide
This chapter demonstrates the overall project, explains the micro-service architecture diagram, technical architecture diagram, system function module diagram and technical architecture topology diagram, and then introduces the specific arrangement of the course content, and finally gives some learning suggestions on how to learn this course well. I hope all of you can pass this course, learn something, learn something. .
1-1 Must be read before class
1-2 Course introduction and study guide trial
1-3 Project introduction and demonstration
1-4 Project microservice architecture diagram (must know before class) Check it out
1-5 Technical architecture diagram of the project
Chapter 2 architecture back-end projects
In this chapter we will discuss first before and after the end of the separation of design patterns, launch the front-end project (front source directly to provide everyone), for different domain name will be on the local host to simulation implementation, then using Maven build polymerization engineering, building project, configure logging and environment configuration, elegant packaging result set, Configuration integration with MyBatis and Swagger2. .
2-1 Discussion on the Design Mode of Front and Rear End Separation [Project Construction]
2-2 Running front-end project [Project Construction]
2-3 Binding and using virtual domain names
2-4 Database selection and data import
2-5 Construction of top-level engineering [Aggregation Engineering] -1
2-6 Building module Engineering [Aggregation Engineering] -2
2-7 API interface exposure
2-8 Configuring LogBack Logs and Multi-environment Profiles
2-9 Return encapsulated results elegantly
2-10 Configure database reverse generation tool [Build Project]
2-11 Integration of Mybatis
Use of Swagger2 Interface Documentation Tools
Chapter 3 develops the pass service
The core of this chapter is the development of user login registration service, with you to use SMS to achieve one-key login registration. Teach everyone how to use flow chart to sort out business process, how to configure ali Cloud SMS service (including interception control). You’ll also learn about Redis caching in terms of double-write consistency and CAP theory. .
3-1 Describes the SMS login registration process
3-2 Configuring key and Resource Files [SMS Service]
3-3 Integration and sending SMS [short message Service]
3-4 Installation and configuration integration of ReDIS-1
3-5 Installation and configuration integration of ReDIS-2
3-6 Improve the SMS sending interface
3-7 Sending short messages at the front end of joint debugging to solve cross-domain problems
3-8 Intercept and limit short messages sent within 60 seconds
3-9 Error information is displayed for user-defined exceptions
3-10 Verifying BO Information [Registration and Login]
3-11 Querying Old Users & New Users Add [Registration and Login] -1
3-12 Querying Old Users & New Users Add [Registration and Login] -2
3-13 Setting session and Cookie information
3-14 Binding resource attributes to constants
3-15 Querying user account information
3-16 Information verification [User information improvement]
3-17 Postman test interface
3-18 Activating user information storage [User information Improvement]
3-19 Query and display basic user information
3-20 Browser storage media localStorage, cookie, sessionStorage
3-21 Cache user information
3-22 Inconsistent dual-write data
3-23 Consistent double-write of cache data
3-24 CAP theory and data consistency choice
3-25 User session interceptor
3-26 User State activation interceptor
3-27 AOP warning log monitoring with SQL printing
3-28 Logging out and logging out of the session
Chapter 4 develops file services
This chapter will introduce you to the two main methods of file upload: Fastdfs + Nginx and Ali Cloud OSS. By learning both methods, you will be able to freely access file upload services in your own projects.
4-1 FastDFS architecture principle and upload and download process analysis
4-2 FastDFS Environment Configuration Preparations FastDFS
4-3 Configuring the Tracker service [FastDFS]
4-4 Configuring the Storage Service 【FastDFS】
4-5 Installing Nginx to provide Web services
4-6 Integration Nginx file server 【FastDFS】
4-7 Creating a File Service Module
4-8 Integration of FDFS and Service implementation
4-9 FastdFS image storage [file upload]
4-10 Improve user profile picture uploading [File uploading]
4-11 Unified exception handling for picture size control
4-12 Third-party Cloud Storage Solution [Ali OSS]
4-13 Introduction to Ali OSS
4-14 Basic configuration of the console using [Ali OSS]
4-15 Use and project integration of SDK
4-16 OSS integration implementation file upload
4-17 Automatic image audit [Ali Content Security]
4-18 Create ali Cloud sub-account [Ali Content Security]
Chapter 5 develops the Admin management service
The core of this chapter takes you to complete the admin management service in the face/classification/friendship link and other functions. Start from maven sub-module construction, complete the design of the admin table and pre-allocation of accounts, and implement the login by fragmentation of admin accounts. Reveal face login logic, use GridFS to solve face storage problems, share Ali intelligent AI recognition technology. Finally, the completion of friendship links and classified business development, teach everyone mongodb core operations. .
5-1 Building the Admin service
5-2 Table Design and Account pre-allocation
5-3 Administrator for persistent Layer Query [admin account]
5-4 Login using the User Name and Password admin Account
5-5 Verifying the ADMIN Account Unique
5-6 Creating an admin account
5-7 Viewing the Admin List [Admin Account]
5-8 Encapsulating paging data & debugging paging interface
5-9 Account Logout [Admin Account]
5-10 Face business flow chart combing [admin account]
5-11 Enable video debugging mode for Chrome
5-12 portal mongo
5-13 Installing and Configuring MongoDB
5-14 Visual Management tool MongoDB
SpringBoot [GridFS]
Realization of face database 【GridFS】
5-17 Querying admin face information [GridFS] -1
5-18 Querying admin face information [GridFS] -2
5-19 Introduction to Ali AI face recognition
5-20 Get face faceId
5-21 Query face data [face login]
5-22 Integrating the RestTemplate Service for communication
5-23 Achieve face comparison for login
5-24 MongoDB application scenarios
Save and update friendship links [MongoDB]
5-26 Repository persistence Database: MongoDB
5-27 Link list query [MongoDB]
[MongoDB]
5-29 (Assignment) Article classification management
5-30 Querying the User List & Setting the Time and date Conversion Configuration
5-31 Querying user List & Implementing Service and Joint Query
5-32 Querying User Accounts & Freezing and Unlocking [User Management]
Chapter 6 content management and AI automatic audit
This chapter is not only the core business module of the user center, but also the core of the website content. It will first take you to organize the structure of the article table, build the article service project, and realize the compilation of the article with summernote rich text, and realize the uploading of multiple files. Combined with Redis to speed up the classification reading, realize the release of the article (timing), and complete the AI automatic and manual review (if the review does not pass, call back). .
6-1 Structure of article table
6-2 Construction of Article Service Project
6-3 Summernote and multiple file upload requirements
6-4 Realize multi-file upload
6-5 Obtaining lists & Business Interface Decoupling and Redis Cache Application
6-6 Admin end maintenance data cache
6-7 Publish articles storage Controller and verification
6-8 Release articles storage Service and joint investigation
6-9 Preview articles [Send headlines]
6-10 Creating a scheduled task
6-11 Regularly publish articles [Scheduled Tasks]
6-12 Article List Display [Content Management]
6-13 Ali AI text detection [Content review]
6-14 Implementation of Ali AI automatic audit
6-15 (Assignment) Admin Admin Article Management List
6-16 Manual review [Content Review]
6-17 Withdraw & Delete Article Assignments [Content Management]
Chapter 7 develops home page and author page
The core of this chapter is to complete the development of home page and writer page, including the loading and display of article list, the attention and clearance of fans, the single thread counting function of Redis, and the visualization picture display of fan portrait data.
7-1 Introduction to Home Page & Author page
7-2 Query MongoDB field
7-3 Search and display a list of articles
7-4 List of articles showing the needs of publishers
7-5 Initiate the restTemplate request to query user services to obtain the publisher list
7-6 Reorganize the list of articles and render [home page]
7-7 Query hot smell [home]
7-8 (Assignments) Basic Information Presentation & List of historical articles [Author home page]
Redis single thread count statistics
7-10 Querying user Attention Status [Fan Attention]
7-11 User Attention & Accumulation of fans
7-12 Unfollow & Fan reduction [Fan Attention]
7-13 Number of fans and number of followers page display
7-14 My Fan List & Back-end paging query [Fan Management]
Male/female Ratio bar Chart & Pie chart display
Regional distribution and Number of Fans on China Map
Chapter 8 develops the detail page and comment module
The core of this chapter is to complete the development of article details page and comment module, including dynamic loading display of the page details, post and reply functions of article comments, and anti-brush strategy control to reveal the number of articles read.
8-1 Development of article detail interface [Chapter Overview]
8-2 Reading Passage & Reading Amount Redis
8-3 Article Reading Number Anti-brush strategy [Details page]
8-4 Redis Mget batch query assembly reading number and display [article list]
8-5 User Comments [Article Comments]
8-6 User Comments are stored and saved
Accumulation and Display of Comments
SQL > alter table SQL > alter table SQL > alter table SQL
8-9 Display comment list
8-10 (Assignments) Managing comment Lists and deleting Comments
8-11 Added the function of displaying commenters’ profile pictures
8-12 Course summary
Chapter 9: Freemarker details page data static
The core of this chapter is to static Freemarker’s data for faster loading and inclusion in SEO search engines. This chapter starts with freemarker-related syntax and basic instructions, and then writes the template FTL to implement the statics of the detail page.
9-1 Article Static Technology and Freemarker
9-2 Create and display template FTL
9-3 Output object 【freemarker syntax 】
9-4 Output list and map
Instruction 9-5 if [freemarker grammar]
Create static HTML with dynamic data
9-7 Rewrite the detail page to template page FTL [page static]
9-8 Static page generated by FTL for article details
Obtaining and displaying the number of articles read separately [page static]
9-10 Sort out the relationship between the production end and the consumer end and the intermediate GridFS [Static decoupling]
9-11 Production end stores HTML to GridFS and associates article tables
9-12 Consumer end download HTML to Tomcat from gridfs
9-13 (Job) Undo delete article, delete GridFS file and HTML
Chapter 10 RabbitMQ Asynchronous Decoupling and delay queuing
The core of this chapter takes you through the asynchronous decoupling and delay queuing of RabbitMQ message queues. For synchronous interface calls, why do you need to combine MQ for asynchronous decoupling and a delay plug-in for delayed message processing?
10-1 Interface decoupling Requirements [Chapter Overview]
10-2 RabbitMQ Overview &MQ model
10-3 RabbitMq-3.8.5 Installation and Configuration -1
10-4 RabbitMq-3.8.5 Installation and Configuration -2
10-5 Introducing Dependencies and Configurations
10-6 Creating switches and Queues
10-7 Creating producers and Configuring Routing Rules
10-8 Consumer Acceptance message Processing [integrated with Rabbitmq]
Article static HTML and delete
10-10 Requirements and Installation and Configuration of Delay Queue
10-11 Implementation of delay queue
10-12 Implementation of timed delayed publication of articles [Delay queue]
Chapter 11 Spring Cloud Microservices -1
In this chapter, we will use the Eureka Registry, the Ribbon load balancer, Feign’s claim client, and Hystrix’s fuse degrade component to better manage microservices.
11-1 Evolution of Internet architecture
11-2 overview of SpringCloud and version selection
11-3 Disadvantages of using RestTemplate for service calls
11-4 Registry Model [Eureka]
11-5 Build Eureka registration service [Eureka] -1
11-6 Build Eureka registration service [Eureka] -2
Implement user and article service registration 【 Eureka 】
Using AppName to optimize communication between services
Dynamic Construction of Eureka Cluster
11-10 Registering microservices in eureka Cluster
Building a Microservice Cluster [Eureka]
11-12 Load balancing for round training
Self-protection function [Eureka]
Overview and Load Balancing 【 Ribbon 】
Implementing multiple Load Balancing Algorithms 【 Ribbon 】
Retry Mechanism 【ribbon】
Simplified Service Invocation [Feign]
Unified Verification process [FEIGN]
11-19 Enabling Log Debugging 【 Feign 】
11-20 Explain circuit breakers and their Concepts
11-21 Simulated Service Failure [Hystrix]
Service Provider Meltdown [Hystrix]
Global degradation 【 Hystrix 】
Service Caller degradation [Hystrix]
Automatic trigger fuse isolation and Recovery [Hystrix]
Chapter 12 Spring Cloud Microservices -2
This chapter continues the practice of micro-services, leading us to manage the unified request of micro-services, using Zuul as the micro-service gateway, combining Config and BUS as the dynamic configuration center, and finally using STREAM message component and SLEUTH link tracking component to optimize the service.
Microservices Gateway [Zuul]
12-2 Establishing gateway Microservice [Zuul]
12-3 Configuring routes
12-4 Configuring routing for microservice instances
12-5 Filter [Zuul]
12-6 Limit frequent requests for IP blacklist
12-7 Distributed Configuration Center [Config]
12-8 Setting up the Configuration Center [Config]
12-9 Git configuration center
12-10 Configuring the Client pull Configuration [config]
12-11 Dynamically Refreshing git configuration [config]
Message Bus Overview
12-13 Configuring the Unified Sending of Messages 【 BUS 】
Message Driver Overview 【 STREAM 】
Implementing producers and Consumers 【 STREAM 】
Message Grouping and Persistence 【 STREAM 】
Overview of Link Tracing and Zipkin 【sleuth】
12-18 Integration of Zipkin 【sleuth】
12-19 SpringCloud summary
Chapter 13 is a comprehensive summary of the course
This chapter will take you to review and summarize the key points and difficulties of the course. In the Q&A section, the teacher is waiting to communicate with you further. If you have any questions, please come to the Q&A section to ask questions.
13-1 Course summary
This course is over
**
**