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 answers
Related Questions in SPRING-BOOT
- Multi Tenancy in Spring - Partitioned Data Approach
- I have created a spring boot application with spring data JPA, Rest ,oracle and i am getting this ORA-00933: SQL command not properly ended
- Springboot: How to get an entity optional property and check null?
- How to create jasper report in spring boot rest api with jpa
- JSON Body is Not Passing Certain Strings
- Unresolved reference error is showing up after adding the dgs codegen plugin successfully
- Transaction silently rolled back
- JPA buddy error when generating JPA Entities from DB
- Migrating Spring Boot 2 to 3 throws org.glassfish.jaxb.runtime.v2.runtime.IllegalAnnotationsException: 3 counts of IllegalAnnotationExceptions
- Hibernate SQL Error: Missing FROM-clause entry for table "th1_1"
- Appwrite and / or Spring Boot Backend
- Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured. I'm using Postgresql
- Driver com.microsoft.sqlserver.jdbc.SQLServerDriver claims to not accept jdbcUrl, ${SPRING_DATASOURCE_URL}: GitHub Actions
- springboot class org.hibernate.mapping.Bag cannot be cast to class org.hibernate.mapping.SimpleValue
- Spring security causing 404 with message "No static resource login"
Related Questions in KUBERNETES
- Golang == Error: OCI runtime create failed: unable to start container process: exec: "./bin": stat ./bin: no such file or directory: unknown
- I can't create a pod in minikube on windows
- Oracle setting up on k8s cluster using helm charts enterprise edition
- Retrieve the Dockerfile configuration from the Kubernetes and also change container Java parameter?
- Summarize pods not running, by Namespace and Reason - I'm having trouble finding the reason
- How to get Java running parameters from Spring Boot running inside container in pod where no ps exist
- How do we configure prometheus server to scrape metrics from a pod with Istio sidecar proxy?
- In rke kube-proxy pod is not present
- problem with edge server registration in Eureka
- Unable to Access Kubernetes LoadBalancer Service from Local Device Outside Cluster
- Kubernetes cluster on GCE connection refused error
- Based on my experience, I've outlined the Kubernetes request flow. Could someone please add or highlight any points I might have overlooked?
- how to define StackGres helm chart "restapi" values to use internal LoadBalancer - AWS EKS
- Python3.11 can't open file [Errno 2] No such file or directory
- Cannot find remote pod service - SERVICE_UNAVAILABLE
Related Questions in SPRING-CLOUD
- problem with edge server registration in Eureka
- DiscoveryServerUrlInvalidException: spring.cloud.kubernetes.discovery-server-url must be specified and a valid URL
- Handling feign exception in Spring boot using RestControllerAdvice
- No propertes through config server on browser
- Consider defining a bean of type 'org.springframework.cloud.circuitbreaker.resilience4j.Resilience4JCircuitBreakerFactory' in your configuration
- ApiGateway is not routing the api call
- How can Spring Eureka client check local Eureka Server first, then fallback to deployed Server if no local instance registered
- How to implement aws secret manager for multiple project applications
- Spring + Keycloak: Gateway Docker container returns 404
- How to import properties from AWS Secret Manager in Spring Cloud Config Server?
- How do you test Spring Cloud Gateway's RouteLocator?
- Null request id when subscribe to the topic
- Switch between static and dynamic Azure App Configuration service
- Service are not registered in Eureka Server with docker-compose. Spring boot 3
- Timelimiter still saves order after timeout in spring boot 6.2.2
Related Questions in SPRING-CLOUD-LOADBALANCER
- Spring Cloud 2022 Load Balancer Compatibility with Feign Client
- FIXED Spring Cloud Gateway | No servers available for service: ms-authentication-server
- Eureka default zone setting is not picked up when used in application.yaml
- How do I configure Spring load balancing strategy to use the instance that is currently having least traffic?
- How to define customize LoadBalancer class correctly and register it to Spring context in springcloud-loadbalancer?
- How do I use property-based urls in OpenFeign in Native/AOT mode without LoadBalancers?
- Spring Cloud Load Balancer Sending Requests to Unavailable Services when Using Eureka
- Spring cloud load-balancer drops instances after cache refresh
- Failed to resolve service with Spring Cloud LoadBalancer
- Sticky session loadbalancing in spring Microservices
- FeignClient specified configuration class does not take effect
- 'LoadBalancerBeanPostProcessorAutoConfiguration' is not eligible for getting processed by all BeanPostProcessors
- Feign, Spring Cloud Load Balancer wiring for @SpringBootTest?
- Spring Boot SimpleDiscoveryClient YAML configuration
- Reactive Discovery Client is only called once
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?
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)
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!