GithubHelp home page GithubHelp logo

go-cassandra-timestream's Introduction

Go + Cassandra example for timestream data

Cassandra might be one database that you haven't heard of because you were too deep on the realm of SQL (PostgreSQL, MySQL) and MongoDB for the NoSQL part. It is a NoSQL database, which data model uses a wide-column store (or columnar - as others might say about it), optimized for high-write and low-read operations, and has out-of-the-box feature for distributed database, so you can run the database within a few nodes and make them work with each other.

There are small amount of references about Go + Cassandra, but considering what Cassandra can do and my current project has a requirement that would be done best by using Cassandra, I'm going to give it a try.

Run a Cassandra instance easily via Docker and create a new keyspace with:

CREATE KEYSPACE "timestream" WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 1 };

Run the application with:

go run .

And do operation with the supported handlers. See main.go and handler.go file.

Feel free to explore.

MIT License

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.