An example using redis streams and web sockets to serve up data
docker-compose up
In RDBTools add to the stream named "stream" JSON similar to
{"ric": "NYSE:UBER", "price": "22.01"}
- Run a redis docker container or redis server version 5.0 or later
- Run the Web server
go run main.go
- navigate to http://localhost:8080/
- throw a bunch of data in the stream
for i in {1..2000} ; do redis-cli xadd stream "*" ric NYSE:UBER price 22.01 ; done
docker build -t maguec/redis-streams-ws .
docker push maguec/redis-streams-ws