What is the relationship between Nginx and gateway

Analysis & Answers

Nginx can also implement gateways, which can implement interception of API interfaces, load balancing, reverse proxy, request filtering, etc. Gateway functions can be expanded, such as: security control, unified exception handling, XXS, SQL injection, etc.; permission control, black and white lists, performance monitoring, log printing, etc.;

  • Programming languages ​​are different
    • Java commonly used gateway Spring Gateway.
    • Nginx is written in C language, usually used in combination with Nginx+Lua.
  • Load balancing method
    • The principle of Nginx to achieve load balancing belongs to the server-side load balancer.
    • Gateway realizes the principle of load balancing in the form of a local load balancer.

Meow Interview Assistant: A one-stop solution to interview questions. You can search the WeChat applet [Meow Interview Assistant]  or follow [Meow Interview Assistant] -> Interview Assistant to  answer questions for free. If you have any good interview knowledge or skills, I look forward to sharing them with you!

Guess you like

Origin blog.csdn.net/jjclove/article/details/127394264