Sandor Szekelyhidi
Sandor Szekelyhidi

Reputation: 1

Scaling Spring Cloud Gateway with Eureka and Multiple Services

I have a Spring Boot Cloud Gateway, an Eureka Server, and multiple microservices registered in Eureka. My goal is to ensure that my system can handle increased traffic efficiently. I have two questions regarding scalability and load balancing:

  1. Scaling the Gateway:
    • How can I ensure that the gateway is the central entry point for incoming requests while keeping the system scalable under high load?
    • Is there a way to deploy multiple instances of the gateway to handle requests concurrently, while still functioning as a single entry point for the system?
  2. Scaling the Services:
    • Does it make sense to run multiple instances of the same microservice (with the same functionality) to distribute the load?
    • If yes, how does Eureka handle service discovery and load balancing when multiple instances of the same service are running?

I am currently using Spring Cloud Gateway, Spring Cloud Netflix Eureka, and a Spring Boot-based microservices architecture. I appreciate any best practices or recommendations on how to set up a scalable system.

Upvotes: 0

Views: 53

Answers (0)

Related Questions