Database / ScyllaDB Interview questions
Explain the internal working of the Seastar future-promise model?
Seastar's concurrency model is built around futures (a placeholder for a value that will eventually be ready) and promises (the producer side that eventually fulfills that value), composed together instead of using blocking calls or OS-level thread synchronization.
Each core runs a single-threaded reactor loop that polls for completed I/O events and dispatches ready continuations, so nothing on that core ever blocks waiting for disk or network; instead, code chains .then() continuations onto a future, and the reactor invokes them once the underlying operation completes. Because everything on a given core runs cooperatively on one thread, there's no need for locks to protect that core's own data structures - the only synchronization required is for the deliberately explicit, asynchronous messages sent between cores. This is what allows ScyllaDB to scale near-linearly with core count without traditional multi-threaded contention.
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...
