Skip to content
/ stigdb Public

StigDB was designed and developed by Tagged Inc. to simplify software development while meeting the operational scale and efficiency needs of a social network with hundreds of millions of members. Its back-end was used in production whereas its front-end remained a work in progress.

License

Notifications You must be signed in to change notification settings

jssmith/stigdb

Repository files navigation

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.

Quick Start

See the quick start section of the document Building and Installing Stig.

Stig features:

  • 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.

Supported Platforms

Currently Stig only runs on Linux.

System Requirements

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.

Building Stig

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/.

About

StigDB was designed and developed by Tagged Inc. to simplify software development while meeting the operational scale and efficiency needs of a social network with hundreds of millions of members. Its back-end was used in production whereas its front-end remained a work in progress.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages