SpringCloud+Vue microservice tutorial and actual combat (1)-a fresh start

1. Background

I have talked about the complete SSM tutorial before. I personally think it is quite good. The address is attached: Spring+SpringMVC+MyBatis series of 50 tutorials .

After SSM, a SpringBoot tutorial was carefully written, with the address: 25 Spring Boot series tutorials .

Then, it's time to start the SpringCloud+Vue microservices tutorial and actual combat series, first talk about the Spring Cloud tutorial part, then talk about the Vue tutorial part, and finally implement a complete instance of SpringCloud+Vue.

2. Advantages and disadvantages of microservice architecture

Compared with traditional monolithic applications, the microservice architecture has obvious advantages and disadvantages. It is especially important not to blindly go to the microservice architecture.

  • the complexity. Since microservices are composed of many services, their complexity is far greater than that of monolithic applications, so microservice architecture is not recommended for small projects in general.
  • reliability. Since multiple sets of various components under microservices can be deployed to form a highly available cluster, the reliability is generally higher than that of a single application.
  • Room for performance improvement. When the number of users rises sharply, the microservice architecture can provide a broader space for performance improvement. But this is very dependent on the technical level of the developers, so the improvement space is relatively large, but it may not be as good as the performance of the single application.

In short, microservices are more complex, but if done well, all aspects can be greatly improved.

3. Implementation technology

Common ones are Dubbo and SpringCloud. Of course, you can package several services yourself. As long as the services have a calling relationship with each other, we can also think of this as a microservice system.

Personal suggestion is to use Spring Cloud, which relies on the Spring ecology, there are more components and solutions to choose from, and it is easy to find information when encountering problems.

4. Development Environment

  1. JDK1.8
  2. Maven
  3. MySQL5.7
  4. Eclipse or IDEA
  5. Lombok plugin
  6. NPM
  7. VSCode

The installation of these tools has been discussed many times before, so I won't repeat them here.

5. Summary

Open up.

Guess you like

Origin blog.csdn.net/woshisangsang/article/details/107616850