Database / ScyllaDB Interview questions
Explain the purpose of the commit log in ScyllaDB?
The commit log is an append-only, on-disk log that ScyllaDB writes to before acknowledging any write, purely for crash recovery. Every mutation is appended sequentially to the commit log at the same time it's applied to the in-memory memtable, so a sequential disk write, which is fast, stands in for a full random-access flush on every write.
If a node crashes before its memtables are flushed to SSTables, the commit log is replayed on restart to reconstruct any data that hadn't yet been persisted as an SSTable. Once a memtable is flushed to disk as an immutable SSTable, the corresponding commit log segments are no longer needed for recovery and get recycled. This design is what lets ScyllaDB acknowledge writes quickly while still guaranteeing durability against a node crash.
Invest now in Acorns!!! 🚀
Join Acorns and get your $5 bonus!
Acorns is a micro-investing app that automatically invests your "spare change" from daily purchases into diversified, expert-built portfolios of ETFs. It is designed for beginners, allowing you to start investing with as little as $5. The service automates saving and investing. Disclosure: I may receive a referral bonus.
Invest now!!! Get Free equity stock (US, UK only)!
Use Robinhood app to invest in stocks. It is safe and secure. Use the Referral link to claim your free stock when you sign up!.
The Robinhood app makes it easy to trade stocks, crypto and more.
Webull! Receive free stock by signing up using the link: Webull signup.
More Related questions...
