intermediateSpring Cloud Gateway

What does lb://order-service mean in a Gateway route definition?

It tells the Gateway to resolve order-service through service discovery and client-side load balancing, rather than pointing at one hardcoded address — the same discovery mechanism used by Feign and WebClient elsewhere in this category.

Ready to master this question?

Generate a complete walkthrough — background, the full answer in plain language, a working code example explained line by line, a real-world scenario, common mistakes, and how this same question gets asked in different ways.

Sign in to generate a response

Next Step

Continue to Why does centralizing authentication validation at the Gateway make sense instead of every service validating it independently?← Back to all Spring Cloud questions