This is part of my journey into the land of advanced Golang building HTTP Servers with ScyllaDB.
This simple system store some reports by ReportID, UserID, Status and Title.
docker run --name scylla -d scylladb/scylla
In this case, a container called "scylla" was created.
docker exec -it scylla cqlsh
Check out the host and the port connected by cqlsh
- SCYLLA_HOST=localhost (notice that you will have to change for your host)
- SCYLLA_KEYSPACE=reporting
- SCYLLA_MIGRATIONS=migrations
In the folder src, run:
go run exec/migration/main.go
Now, just have fun with INSERT and SELECT querys. Remember to run USE reporting;, this will able you to use the keyspace defined.
- Refactor the code
- Create a .env file and get env by functions
- Implement efficient ways for querys
- Learn and use Network Topology Strategy
- Apply differents replication factor
- Make this repository a ease setup for ScyllaDB connection with docker image of scylla