# Saving up for technical debt - how to prepare so you don't go bankrupt

- Speaker: [Elad Amit](/wiki/speakers/elad-amit.md)
- Event: [Reversim Summit 2017](/wiki/years/2017.md)
- Video: https://www.youtube.com/watch?v=oYZu2u76otk
- Transcript: [/transcripts/2017/41-oYZu2u76otk.md](/transcripts/2017/41-oYZu2u76otk.md)
- Language: Hebrew · Type: talk · Level: intermediate
- Topics: [Distributed Systems](/wiki/topics/distributed-systems.md), [Architecture](/wiki/topics/architecture.md), [Microservices](/wiki/topics/microservices.md), [Scalability](/wiki/topics/scalability.md)

> Written by an LLM from machine transcripts. It can contain errors. Check the transcript before you quote it.

## Summary

The speaker discusses strategies for managing technical debt and infrastructure scalability during periods of rapid growth. The main argument is that relying on vendor lock-in and managed services is not inherently bad if the value they provide outweighs the migration cost. The speaker shares practical architectural patterns, such as applying abstractions, separating concerns by usage patterns and SLAs, and properly utilizing bounded queues and circuit breakers. Ultimately, the audience learns how to prepare systems for high acceleration without wasting unnecessary time building everything from scratch.

## Key points

- [1:10](https://www.youtube.com/watch?v=oYZu2u76otk&t=70s) Rapid acceleration puts extreme stress on software systems, similar to G-forces on pilots.
- [2:20](https://www.youtube.com/watch?v=oYZu2u76otk&t=140s) Vendor lock-in should be evaluated based on a balance between the migration cost and the actual business value delivered.
- [5:33](https://www.youtube.com/watch?v=oYZu2u76otk&t=333s) Proper abstraction layers can help mitigate vendor lock-in risks, though some heavy integrations are acceptable if the value is high enough.
- [17:02](https://www.youtube.com/watch?v=oYZu2u76otk&t=1022s) Applying the single responsibility principle across use cases, pipeline stages, and SLAs helps isolate performance issues.
- [27:10](https://www.youtube.com/watch?v=oYZu2u76otk&t=1630s) Handling multiple SLAs within the same API requires separating workloads to optimize resource consumption and cost.
- [29:21](https://www.youtube.com/watch?v=oYZu2u76otk&t=1761s) Everything eventually fails, and systems must be designed to gracefully handle downstream outages.
- [29:21](https://www.youtube.com/watch?v=oYZu2u76otk&t=1761s) Using bounded queues and circuit breakers prevents cascading failures when dependent services become unresponsive.

## Takeaways

- Evaluate vendor lock-in by weighing the business value gained against the cost of future migration.
- Isolate system components and workloads based on their usage patterns and specific SLA requirements.
- Always use bounded queues and avoid infinite wait times to protect systems from cascading failures.
- Implement circuit breakers to handle external service dependencies safely when they fail.

## Questions this talk answers

- How do you decide when vendor lock-in is acceptable versus when you should build an abstraction layer?
- How can you separate workloads with different SLAs when using the same API or service?
- What are the best practices for implementing queues and circuit breakers to prevent system overloads?

## Technologies

Kafka, Redis, Spark, Node.js, Go, Terraform

## Tags

architecture, microservices, queues, resilience, scalability, technical debt, vendor lock-in
