Stig Non-Relational Database
This is the repository for the Stig non-relational database. It's meant to be fast and to scale for billions of users. Stig provides a single path to data and will eliminate our need for memcache due to its speed and high concurrency.
- Points of View: This is our version of optimistic locking or isolation. Learn more.
- Time Travel: We use something called the Flux Capacitor to keep a history of changes made to the database and to resolve conflicts as they come into shared points of view and the global point of view. This permits us to perform consistent read for any point in time. Stig defines its "time line" by causality rather than clock time. Instead of manipulating timestamps, Stig records an ordering of events (e.g., update A affects update B, so A "happens before" B).)
- Query Language: Stig has its own high-level, compiled, type-safe, functional language called Stigscript. Stigscript is not just a query language: You can write general-purpose programs in it complete with compile-time unit tests. Stig comes with a compiler that transforms Stigscript into shared libraries (.so files on Linux), which Stig servers load as packages.
- Scalability and Availability: While we eventually plan to develop a sharded Stig machine (and actively design so that we can build such a machine), our current single-node server with fail-over/replication can handle hundreds of thousands of transactions per second.
Currently Stig only runs on Linux.
Stig is designed to make the most of your available system resources. It will use as much as you can spare. Therefore, when in production, the guideline is "the more the merrier."
For development, we recommend the following virtual machine configuration:
- A minimum of 2 cores are required.
- 4GB RAM minimum, 8GB RAM recommended
- 12GB disk space minimum
- Create a separate partition for the Stig block level device. This partition should be at least 1GB in size.
See the build/install docs for detailed instructions.
Contributing to Stig
Contributing to Stig is easy! Just have a look at our documentation about how to contribute.
README.md Copyright 2010-2014 Stig LLC
README.md is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
You should have received a copy of the license along with this work. If not, see http://creativecommons.org/licenses/by-sa/4.0/.