# Journey to the Realtime Analytics in Extreme Growth

- Speaker: [Yulia Trakhtenberg](/wiki/speakers/yulia-trakhtenberg.md)
- Event: [Reversim Summit 2016](/wiki/years/2016.md)
- Video: https://www.youtube.com/watch?v=kuJ--_yWKYM
- Transcript: [/transcripts/2016/26-kuJ--_yWKYM.md](/transcripts/2016/26-kuJ--_yWKYM.md)
- Language: Hebrew · Type: talk · Level: intermediate
- Topics: [Cloud Computing](/wiki/topics/cloud.md), [Databases](/wiki/topics/databases.md), [Architecture](/wiki/topics/architecture.md), [Technical Debt](/wiki/topics/technical-debt.md)

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

## Summary

The speaker shares the engineering journey of replacing an overloaded real-time analytics database to support extreme growth in dashboard traffic. After evaluating numerous open-source solutions and briefly adopting a columnar database that ultimately failed to meet their specific mutable-data requirements, the team adopted a commercial relational database. To ensure system reliability and seamless future migrations, they built a custom middleware abstraction layer and implemented a robust recovery mechanism. The talk highlights practical decision-making, the importance of balancing architectural perfection with business needs, and cost-optimization strategies.

## Key points

- [1:08](https://www.youtube.com/watch?v=kuJ--_yWKYM&t=68s) Startups often outgrow their initial database architecture as customer usage and data volume scale rapidly.
- [5:33](https://www.youtube.com/watch?v=kuJ--_yWKYM&t=333s) The team introduced a custom middleware layer to decouple the client dashboard from the underlying database, allowing them to swap storage technologies without breaking the API.
- [8:24](https://www.youtube.com/watch?v=kuJ--_yWKYM&t=504s) They evaluated nearly ten different solutions, including Redis, Redshift, MongoDB, and Cassandra, but faced limitations with concurrency, query complexity, or operational overhead.
- [14:26](https://www.youtube.com/watch?v=kuJ--_yWKYM&t=866s) They experimented with a columnar analytics database in production, but ultimately had to abandon it because their data changes historically, which did not fit the engine's use case.
- [21:39](https://www.youtube.com/watch?v=kuJ--_yWKYM&t=1299s) Faced with severe production bottlenecks and timeouts, the team recalibrated their requirements and opted for a commercial relational database with dual clusters for high availability.
- [27:40](https://www.youtube.com/watch?v=kuJ--_yWKYM&t=1660s) To optimize costs, they tiered their storage by keeping hot data in RAM and moving older historical data to disk while maintaining fast query performance.

## Takeaways

- Build a middleware layer between clients and databases to future-proof your application against underlying storage changes.
- Prioritize practical business needs and time-to-market over chasing architectural perfection.
- Implement automated recovery mechanisms and data comparison tools to safely manage production incidents and data dumps.

## Questions this talk answers

- How do you migrate a high-traffic real-time analytics database without downtime?
- What strategies can you use to optimize database costs when dealing with massive historical data?
- When should a growing startup switch from open-source to commercial database solutions?

## Technologies

Redis, Redshift, MongoDB, Cassandra, Kafka, Spark, Clojure, MemSQL, S3

## Tags

cost optimization, database architecture, middleware, migration, real-time analytics, scaling
