Wiki: To DB or not to DB, or, Why Databases are like Religions
For agents: Markdown version · Wiki index · Explore
- Speaker: Amit Lichtenberg
- Event: Reversim Summit 2018
- Video: https://www.youtube.com/watch?v=iL8GUwvUqqw
- Transcript: /transcripts/2018/37-iL8GUwvUqqw.md
- Language: Hebrew · Type: talk · Level: intermediate
- Topics: Architecture, Data Engineering, Databases, Software Engineering
Written by an LLM from machine transcripts. It can contain errors. Check the transcript before you quote it.
Summary
This talk explores the challenges of database selection and management in a growing enterprise security startup. The speaker draws parallels between religious beliefs and how developers blindly advocate for specific databases to solve all architectural problems. Through the company’s evolution, the audience learns why no single database fits every use case, how early architectural choices can become technical debt, and when it is necessary to introduce new specialized tools. Ultimately, the speaker emphasizes that hands-on experimentation and staying open-minded are essential when dealing with scaling and massive data growth.
Key points
- 1:17 The speaker introduces the company’s product, which collects network events and security alerts, storing them in one or more databases.
- 4:43 The company initially chose MongoDB as a free, open-source NoSQL database that was easy to integrate with Python.
- 5:46 The team discovered that the MongoDB Object-Document Mapper library significantly increased CPU and RAM usage while degrading database performance.
- 9:05 As traffic grew with a new topology visualization product, the team experimented with graph databases like Neo4j and OrientDB but faced severe performance and query limitations.
- 14:15 To handle massive data growth, log filters, and full-text search requirements, the team adopted Elasticsearch and successfully scaled log aggregation.
- 20:31 System scaling introduced high concurrency issues in MongoDB, leading the team to adopt Redis as an in-memory cache and temporary storage layer.
- 22:37 The speaker concludes that databases are like religions because advocates claim their preferred tool solves everything, but in reality, different stages require different tools.
- 23:45 Faced with infinite data growth limits in Elasticsearch, the architecture expanded further to incorporate Spark and HDFS for heavy data processing.
Takeaways
- Do not build your entire application core around a single utility library that might become difficult to remove later.
- Evaluate database features against real production use cases rather than relying solely on marketing claims or vendor documentation.
- Embrace hands-on experimentation and prototyping when your system hits scaling bottlenecks instead of trying to force existing tools to fit.
Questions this talk answers
- How do you know when it is time to introduce a new database into an existing system architecture?
- What are the hidden performance costs of using Object-Document Mappers with NoSQL databases?
- How should an enterprise software company handle massive data retention and storage limits on-premises?
Technologies
MongoDB, Neo4j, OrientDB, Elasticsearch, Redis, Python, Spark, HDFS
Tags
architecture, data engineering, databases, enterprise software, scaling, technical debt