https://github.com/aldy505/go-cassandra-timestream
Sample repository to demonstrate Cassandra + Go
https://github.com/aldy505/go-cassandra-timestream
Last synced: about 2 months ago
JSON representation
Sample repository to demonstrate Cassandra + Go
- Host: GitHub
- URL: https://github.com/aldy505/go-cassandra-timestream
- Owner: aldy505
- License: mit
- Created: 2022-03-06T07:05:28.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2022-03-06T07:05:46.000Z (about 3 years ago)
- Last Synced: 2025-02-07T10:49:14.267Z (3 months ago)
- Language: Go
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://hub.docker.com/_/cassandra) 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](./LICENSE)