Database / ScyllaDB Interview questions
What is the shard-per-core architecture in ScyllaDB?
Shard-per-core means each CPU core on a node runs an independent, single-threaded execution engine that owns a dedicated slice of RAM, a dedicated set of data (by token range), and its own network connections. Instead of one process sharing memory across threads with locks, ScyllaDB partitions everything up front so cores rarely need to coordinate.
Node with 8 cores -> 8 independent shards -> each shard owns: its own memtable, its own CPU, its own connections -> cross-shard work happens via explicit message passing, not shared memory locks
This avoids the lock contention and cache-line bouncing that plague traditional multi-threaded databases as core counts grow. A shard-aware driver takes this further by routing each request directly to the specific shard that owns the relevant data, skipping an extra network hop inside the node entirely.
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...
