Traditional Culture Encyclopedia - Traditional customs - What is microservice?

What is microservice?

What is microservice?

Simple example: although the aircraft carrier has strong combat capability, its weakness is too obvious, that is, its defense capability is too poor. A single aircraft carrier rarely acts alone. Usually, the carrier battle group is the main military force. You can understand a single aircraft carrier as a single application (poor defense and poor maneuverability) and an aircraft carrier battle group (complex scheduling and high maintenance cost) as a micro-service.

Most developers have the experience of developing a single application, whether it is the traditional Servlet+JSP, SSM or the present SpringBoot, it is a single application. So what is the problem that leads to abandoning single application and turning to micro-service architecture? The main problems are as follows:

The deployment cost is high (whether modifying 1 line code or modifying 10 line code, all must be replaced).

Change has great impact and high risk (the cost is the same no matter whether the code becomes more or less)

Due to high cost and high risk, the frequency of deployment is low (unable to deliver customers' needs quickly).

Of course, there are also some problems, such as the inability to meet the requirements of rapid expansion, flexible expansion and adaptation to the characteristics of cloud environment, which are all problems to be solved by micro-service architecture.

As for the course of micro-clothes, I suggest you search our official account "Shangxuetang" in Mile Mile to learn! Free course!

I hope I can help you, and I hope to adopt it! !