Replies: 1 comment 9 replies
-
Yes, you can use the composite service discovery to do this. If you configure it with your n eureka instances, It will aggregate the services form the the different instances. Then, in the selection, you would need to make sure the selection is fair. Another solution is to create your own discovery support (you can implement an SPI - no need for Arc/CDI), which connects to your Eureka and returns the service instances but removes duplicates, so the selection is fair. |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone,
I'm planning on using Stork in a Keycloak extension which shall load balance (and kind of failover) over a couple of Spring services for user federation purposes.
Those Spring services are registered in Spring Cloud Discovery (= Eureka).
Judging from the docs, connecting Stork to an Eureka instance shouldn't be much of a problem (even though we might need to do it purely programmatically, given that you cannot use ArC and friends in a Keycloak extension, sadly).
The thing is that, for high availablity purposes, there are multiple discovery instances and not just a single one.
How can I utilize all those instances? Is the "Composite Service Discovery" the right way to go, meaning composing multiple Eureka discovery services?
Cheers!
Beta Was this translation helpful? Give feedback.
All reactions