Quick revision
The short answer
The history shows that networking logic moves to wherever it can be changed and operated most easily at the time: hardware load balancers when services were few, client libraries like Ribbon and Hystrix when teams wanted per-request control without tickets, and meshes when polyglot fleets made per-language libraries too costly. Library approaches tied networking features to one language and its upgrade cycle, and when the Netflix OSS libraries were retired, everyone had to migrate; platform approaches decouple from languages but cost infrastructure and expertise. The lesson for long-term decisions is to prefer standards and thin abstractions so the next shift is cheap, and to bet on what our organisation can operate well rather than on the newest pattern.
What to remember
In this answer, we traced networking logic from hardware load balancers to client libraries like Ribbon and Hystrix to service meshes, and saw that each shift moved the logic to where it could be changed and operated most easily under that era's conditions. The library era tied features to a language and its upgrades, and its end forced costly migrations because the libraries had spread into application code; the platform era decouples from languages but costs infrastructure and expertise. The lessons are to prefer standards and thin abstractions, bet on what we can operate well, and keep the cost of the next shift low.
Your turn
Answer it aloud as you would in the interview, or type your answer below. Then show one part at a time and compare.
The history shows that networking logic moves to wherever it can be changed and operated most easily at the time: hardware load balancers when services were few, client libraries like Ribbon and Hystrix when teams wanted per-request control without tickets, and meshes when polyglot fleets made per-language libraries too costly. Library approaches tied networking features to one language and its upgrade cycle, and when the Netflix OSS libraries were retired, everyone had to migrate; platform approaches decouple from languages but cost infrastructure and expertise. The lesson for long-term decisions is to prefer standards and thin abstractions so the next shift is cheap, and to bet on what our organisation can operate well rather than on the newest pattern.
Why this question is asked
Engineers who have been around for fifteen years have seen the same problem solved three times in three different places, each time presented as the final answer. Interviewers ask this question at the most senior level to see whether we can extract principles from that history rather than simply follow the current trend. In this answer, we will walk through the three eras and why each happened, look at what the library era cost when it ended, look at the costs of the platform era, and turn the history into rules for decisions we make today.
1Three Eras of Networking Logic
In the first era, roughly the 2000s, a few large applications sat behind hardware load balancers, appliances such as F5 devices run by a network team. Load balancing, health checks and TLS termination lived in the network. Changing a rule meant a ticket and a change window, which was acceptable when deployments happened a few times a year.
In the second era, around 2012 to 2018, microservices and the cloud arrived. Netflix published its OSS stack: Eureka for discovery, Ribbon for client-side load balancing and Hystrix for circuit breaking, and Spring Cloud Netflix made them easy to use from Spring. The logic moved into the application, where developers could change it with each deployment, without tickets.
In the third era, from about 2017 onwards, service meshes such as Linkerd and Istio moved the logic again, into proxies next to each service. The same features became available to every language, configured by a platform team. Newer designs move it once more, into node-level proxies or the kernel, to reduce the cost of sidecars.
| Era | Where | Why it moved there | What it cost |
|---|---|---|---|
| Hardware load balancers | network appliances | few services, central ops team | tickets, slow change |
| Client libraries | inside each Java service | per-request control, self-service | one language, library upgrades |
| Service mesh | sidecar or node proxies | polyglot fleets, uniform policy | infrastructure, expertise |
2Why Each Shift Happened
Notice that no era was a mistake. Each placed the logic where it could be changed and operated most easily under the conditions of the time. Hardware worked when there were a few big applications and a strong network team. Libraries worked when a company had many services but mostly one language, and teams wanted to deploy daily without waiting for network changes. Meshes worked when companies had hundreds of services in several languages, and maintaining the same resilience library in Java, Go, Python and Node became the bigger cost.
So the shifts were driven by changes in scale, language mix and delivery speed, not by fashion. That is useful, because it means we can predict the next shift by watching those same forces.
3What the Library Era Cost When It Ended
The library approach had a hidden cost that only appeared at the end. Networking features were tied to one language and to the library's upgrade cycle. When Netflix moved Hystrix to maintenance mode in 2018 and Ribbon later followed, Spring Cloud removed them in the 2020.0 release train, and every Spring service that used them had to migrate to Spring Cloud LoadBalancer and Resilience4j. That was code change in every service, with different configuration, different metrics and subtle behaviour changes, across hundreds of services at many companies.
The library had leaked into application code: annotations such as @HystrixCommand on business methods, Ribbon properties in every configuration file, fallback methods with Hystrix-specific signatures. The more a library spreads into code, the more expensive its retirement.
4What the Platform Era Costs
Meshes decouple networking from languages, but they are not free. They are infrastructure that someone must install, upgrade and debug, often with a steep learning curve. Sidecars add memory to every pod and a small latency to every hop. A configuration mistake in the mesh can affect every service at once. And the mesh itself is a technology that will change: sidecar meshes are already being reshaped into node-level designs. Organisations that adopted a mesh without the skills to run it often found it harder to operate than the libraries it replaced.
5Rules for Long-Term Decisions
The first rule is to prefer standards and thin abstractions. Code that calls other services by logical name over plain HTTP, with timeouts and retries configured through a thin company layer rather than framework annotations scattered across business code, survived every shift cheaply. Protocols such as HTTP, DNS, TLS and OpenTelemetry outlive the tools built on them, so depending on them is safe.
The second rule is to bet on what our organisation can operate well. A team of twenty Java developers will run a Spring library stack better than a mesh, and that is a perfectly good choice for them. A company with a strong platform team and five languages should consider a mesh. The newest pattern is the right one only if we can run it.
The third rule is to expect the next shift and keep its cost low. Every decision should include the question: when this is retired, what will we have to change? If the answer is every service's code, we should look for a thinner integration.
- Does it depend only on standard protocols in app code?YesNext questionNoAdd a thin abstraction first
- Can we operate it with the skills we have?YesNext questionNoChoose something simpler
- If it is retired, is migration contained?YesAdopt itNoKeep it out of business code
- Review when scale or language mix changes
4 steps in order. Play them, or step through them one at a time.
6Follow-up questions
Does this mean we should avoid meshes?
No. It means we should adopt one when our scale and language mix make it the easiest place for the logic, and when we can run it. It also means configuring it through standard interfaces where possible, so that a future move to a different mesh or architecture does not touch application code.
What would you keep in the application regardless of era?
Decisions that need business meaning: which operations are idempotent, what to show when a dependency is down, and the deadline of the user's request. Those have stayed in the application through every era, because no network component can know them.
How do you spot the next shift early?
By watching the forces that drove the previous ones: the number of services, the number of languages, how fast teams deploy, and what the current approach costs to operate. When the operating cost of the current approach starts to dominate, the logic is likely to move again.
7Conclusion
In this answer, we traced networking logic from hardware load balancers to client libraries like Ribbon and Hystrix to service meshes, and saw that each shift moved the logic to where it could be changed and operated most easily under that era's conditions. The library era tied features to a language and its upgrades, and its end forced costly migrations because the libraries had spread into application code; the platform era decouples from languages but costs infrastructure and expertise. The lessons are to prefer standards and thin abstractions, bet on what we can operate well, and keep the cost of the next shift low.
Open with
I read that history as logic moving to wherever it was easiest to change and run at the time. With a few big applications and a network team, hardware load balancers made sense.
Then, if they want more
With many Java microservices and daily deployments, Netflix's Ribbon, Hystrix and Eureka put the logic in the application so teams could change it without tickets. With hundreds of services in several languages, maintaining a library per language became the bigger cost, so meshes moved it into proxies. None of those was wrong.
But the library era had a cost that appeared at the end: features were tied to Java and to the library's upgrades, and when Hystrix and Ribbon were retired and Spring Cloud removed them in 2020.0, every service had to migrate, because @HystrixCommand and Ribbon properties had spread through the code.
Meshes decouple from languages, but they are infrastructure that needs people who can run it, and they are changing too. So for long-term decisions I would prefer standard protocols and thin abstractions, so services call logical names over HTTP and resilience is configured in one thin layer, not scattered across business code.
I would bet on what the organisation can actually operate, not on the newest pattern. And for every choice I would ask what we would have to change when it is retired, and keep that answer small.
About this answer
- Last updated
- 12 November 2026
- Checked
- Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the documentation below. What the checks cover
- Where the question comes from
- Written by Scrivio for practice. It is not taken from an interview.
- Official documentation
- Spring Framework reference, Spring Web MVC
Report an issue with this answer
Copy the line below and send it to the author with what you found. It carries the address of this page.
Issue with "Over 15 years the industry moved from hardware load balancers to client libraries...": https://scrivio-interview-library.netlify.app/spring-boot/http-clients/bc30d81687/