Database / Mnesia basics Interview questions
What is Mnesia?
Mnesia is Erlang/OTP's built-in distributed database management system, designed to run inside the same BEAM nodes as your application rather than as a separate external service. It stores ordinary Erlang terms directly — tuples and records — so there's no object-relational mapping layer between your code and the data.
It ships with the OTP standard library, meaning any Erlang system can use it without adding an external dependency. Its core selling points are:
- Tables can be replicated across multiple nodes in a cluster
- Reads and writes can be wrapped in ACID-style transactions
- Data can live purely in memory, on disk, or both
- Schema and data changes can happen while the system keeps running
It's commonly used for cluster-local configuration, session state, and routing data — anywhere you want a shared, consistent, in-cluster store without standing up a separate database.
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...
