nginx and dubbo microservice architecture diagram

This solution is suitable for situations where developers are understaffed.

There is no configuration center in the picture, and it feels unnecessary to draw it. It is recommended to use spring-cloud-config, which is relatively simple.

Copyright statement: This article is an original article by the blogger and may not be reproduced without the blogger's permission. https://blog.csdn.net/hulei19900322/article/details/78536538

 

==========================================

 

dubbo与nginx

First of all, you have to understand that you are asking this question to prove that you are not familiar with dubbo and nginx.
 Dubbo's load balancing is already at the service level, which is completely different from nginx's load balancing at the http request level. As for which of the two is better, of course, there is no way to directly compare.

When it comes to load balancing, it involves your business, and it is the most suitable to choose according to the business.
Dubbo has the functions of server registration, discovery, routing, and load balancing. Among all the service governance components that implement these functions, I personally think that dubbo is still a little cumbersome, because it is a well-established service governance framework formulated in accordance with the j2EE category. .
 Dubbo is more like a dns (personal feeling) in service discovery. A consumer needs to know where there is such a service, dubbo tells him, and then he calls it himself.

While nginx has the above functions, there are two main functions: 1. Maintain as many connections as possible. 2. Pass the specific service requirements of each connection to the real worker.
But these two functions, dubbo can't do the first one.
Therefore, depending on your own business to choose what to use, the use of nginx and dubbo is a sequential relationship (of course, it is my personal feeling).
 
 
In layman's terms, dubbo is a bridge for business. . . .
Let me tell you this:
Nginx sits between the user's browser and their own server.

Dubbo is between its own server and its own server.

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324481682&siteId=291194637