Skip to content

dongchany/alloydb

Repository files navigation

logo Build status

What is AlloyDB?

AlloyDB is a distributed SQL database. Inspired by the design of Google F1, AlloyDB supports the best features of both traditional RDBMS and NoSQL.

  • Horizontal scalability
    Grow AlloyDB as your business grows. You can increase the capacity simply by adding more machines.

  • Asynchronous schema changes
    Evolve AlloyDB schemas as your requirement evolves. You can add new columns and indices without stopping or affecting the on-going operations.

  • Consistent distributed transactions
    Think AlloyDB as a single-machine RDBMS. You can start a transaction that acrosses multiple machines without worrying about consistency. AlloyDB makes your application code simple and robust.

  • Compatible with MySQL protocol
    Use AlloyDB as MySQL. You can replace MySQL with AlloyDB to power your application without changing a single line of code in most cases.

  • Written in Go
    Enjoy AlloyDB as much as we love Go. We believe Go code is both easy and enjoyable to work with. Go makes us improve AlloyDB fast and makes it easy to dive into the codebase.

  • Multiple storage engine support
    Power AlloyDB with your most favorite engines. AlloyDB supports most of the popular storage engines in single-machine mode. You can choose from goleveldb, LevelDB, RocksDB, LMDB, BoltDB and even more to come.

Status

AlloyDB is at its early age and under heavy development, some of the features mentioned above have not been fully implemented.

Please do not use it in production.

Roadmap

Read the Roadmap.

Quick start

  • Pre-requirement
go get -d github.com/Dong-Chan/alloydb
cd $GOPATH/src/github.com/Dong-Chan/alloydb
make
  • Run command line interpreter

Interpreter is an interactive command line AlloyDB client. You can just enter some SQL statements and get the result.

make interpreter
cd interpreter && ./interpreter

Press Ctrl+C to quit.

  • Run as go library
    See USAGE.md for detailed instructions to use AlloyDB as library in Go code.

  • Run as MySQL protocol server with single-machine KV storage engine
    Comming soon.

  • Run as MySQL protocol server with distributed transactional KV storage engine
    Comming soon.

Architecture

architecture

Contributing

Contributions are welcomed and greatly appreciated. See CONTRIBUTING.md for details on submitting patches and the contribution workflow.

Follow us

Author Email: tomyyear@gmail.com

License

AlloyDB is under the Apache 2.0 license. See the LICENSE file for details.

Acknowledgments

About

AlloyDB is a distributed SQL database.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published