Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Should I use Spring Cloud Gateway or Ngnix for Web application

I create a full application microservice architecture based on the Spring Cloud Gateway as Api Gateway, with backend services, RabbitMQ, etc. as shown in link to the screenshot below, suggested by Spring. I also have a web application written in Angular and SSO in the form of Keycloak. I base my web application on Nginx.

https://spring.io/images/diagram-microservices-dark-4a2e5817aac093437f4f3b3a5be8be88.svg

My question is whether the main entry point should be Spring Cloud Gateway, followed by routing to a web application, or rather Nginx Angular, which makes queries to Api Gateway and SSO as a separate entity?

like image 316
Crovitz Avatar asked Dec 28 '25 16:12

Crovitz


1 Answers

I think we could learn a lot about Spring Cloud Gateway from Netflix Zuul because it's originated(?) from Zuul.

In Zuul cases, the main entry point is the gateway.

Zuul articles and slides: https://github.com/Netflix/zuul

Zuul vs Nginx performance comparision: https://instea.sk/2015/04/netflix-zuul-vs-nginx-performance/

like image 61
9dan Avatar answered Dec 30 '25 22:12

9dan