We have load balancing, discovery, etc in the Spring cloud. But the same load balancing, discovery is available in Kubernetes as well. So just wanted to know when we should go with Spring cloud (load balancing or discovery) and when to use Kubernetes
When to use spring cloud like Eureka discovery,Ribbon etc if we have the same while we deployed the application in K8s?
988 Views Asked by Saravana Kumar At
1
There are 1 best solutions below
Related Questions in SPRING-BOOT
- Timing Issue with Spring Boot Annotation Configuration
- LightAdmin - Customise parsing DateTime with app timezone
- Creating distribution with repackaged spring boot jar using gradle application plugin
- Spring Boot MVC non-role based security
- Add JVM args to spring boot application
- The method and() is undefined for the type HttpSecurity
- swagger ui not working for swagger version 2
- Spring IO Platform 2.0 - Themes/Changes?
- JPA findDistinctPropertyBy magic method doesn't work as expected when using spring-boot-starter-jpa
- Spring boot check external service status on boot
- Running a specific spring batch job amongst several jobs contained withing a spring boot fat jar
- Adding security to rest api service built with Spring Boot app
- Spring Redirecting from Http to Https Breaks Rest Controller Test
- Service not starting using Spring-boot during integration tests
- Spring Boot Actuator Health Returning DOWN
Related Questions in KUBERNETES
- How to know a Pod's own IP address from inside a container in the Pod?
- Who will decide the "specified number of pods" for replication controller in kubernetes?
- Access other containers of a pod in Kubernetes
- Kubernetes cluster using Vagrant not working after restart
- kubectl not installed with gcloud SDK
- How do I access the Kubernetes api from within a pod container?
- Exposing several services with Vagrant and Kubernetes on my own server
- Does Kubernetes provision new VMs for pods on my cloud platform?
- Any suggestion for running Aerospike on Kubernetes on CoreOS on GCE?
- Kubernetes - kubectl exec bash - session drop and line width
- Google Container Engine (GKE): "Hello Wordpress" tutorial not working (ERR_CONNECTION_REFUSED)
- Kubernetes Pod Creation Speed
- How can i set max count of pods for replication-controller per node?
- Is there a way to tell kubernetes to update your containers?
- Postgres with Kubernetes and persistentDisk
Related Questions in SPRING-CLOUD
- spring cloud ribbon client to connect to ssl
- Accessing resource with expired bearer token fails with 500 http code
- Using spring cloud feign causes java.lang.NoClassDefFoundError: feign/Logger
- Installing Spring Cloud Services for Cloudfoundry without OpsManager
- Disable Spring Cloud Server Config using profile?
- Spring AWS SQS Reconnect After Losing Connection
- Microservices and cloud resource limitations
- Spring Cloud FeignClient decoding application/hal+json Resource<Object> return type
- Can a Library jar read properties from Spring Cloud Config Server?
- How to define a Shared DataSource in Spring Cloud Config
- Using spring cloud namespace and two DataSources
- AmazonEc2InstanceDataPropertySource.getProperty() is extremely slow when run outside of Amazon
- Spring cloud sidecar can not un-register nodeJS service once it is shut down
- How to config multiple Eureka Servers from client in Spring Cloud
- How can I use Amazon Web Services policy statement in my Java application?
Related Questions in SPRING-CLOUD-LOADBALANCER
- Change Configuration from Ribbon to Spring Cloud Load Balancer in spring cloud gateway
- How to define customize LoadBalancer class correctly and register it to Spring context in springcloud-loadbalancer?
- How do I configure Spring load balancing strategy to use the instance that is currently having least traffic?
- Eureka default zone setting is not picked up when used in application.yaml
- How is LoadBalancerClientFactory.PROPERTY_NAME set?
- Does spring cloud gateway/loadbalancer keep the connection alive?
- Spring cloud gateway with discoveryclient and static routes
- how to do client side load balancing in spring integration
- com.netflix.client.ClientException: Load balancer does not have available server for client: mail-service
- Update Service status when service instance is shutdown
- Spring Cloud Load Balancer - Custom Load Balancer Client config through Java
- No servers available for service: while routing in Netflix ribbon
- Change spring cloud loadbalancer default RoundRobin Algorithm
- Spring Cloud Kubernetes Loadbalancer issue with Spring Boot 2.6.6
- Sticky session loadbalancing in spring Microservices
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
It depends on your use-case. There can be situations where you need to directly use
Eureka server registryandEureka client discoveryoffered bySpring Cloud Netflix.Ribbonis the client side load balancer provided bySpring Cloud Netflix.In my experience, it is not impossible to use
Eurekain any environment. It can be your local data centre or cloud infrastructure. However when it comes to deployment environment, there are so many alternatives for us to achieve the server registry mechanism. Sometimes those alternatives are the best solutions. I will give you an example below...If you host your application in your local server (Local data centre)
Now in this scenario you can use
Eurekaand continue your server registry and discovery mechanism. (That is not the only way. I mentionedEurekafor this scenario because it would be a good use case for it)If you host your application in AWS infrastructure
The
AWSenvironment gives you lots of benefits and services such that you can forget the burden of maintaining and implementingEureka. You can achieve simply the same behaviour byAWS load balancers,AWS target groupsand even more by addingAWS auto scaling groups. In AWS it self there are so many other ways to achieve this as well.Long story in short that for your scenario, you can continue using the power of
Kubernetesand get the privilege unless you have a specific reason to useEurekaand put a large effort to implement it. You should select what suits the best depending on time, effort, maintainability, performance etc.Hope this helps for you to get an idea. Happy coding!