Envy proxy with ZeroMQ
Solution tested on DigitalOcean Droplet. In case of re-creation VM follow this article.
Introduction
Let's implement some basic ZeroMQ publisher and subscriber in Golang. Utilize Envoy as a proxy.
Implmentation
Demo
-
Run environment(droplet)
docker-compose up
-
Open another terminal's windows(workstation)
-
Grab droplet's IP(workstation)
export IP=$(tf output -raw public_ip)
-
Watch logs(workstation)
-
Run CURL command(workstation)
curl -i --request POST --url http://"$IP":8080/ --header 'Content-Type: application/json' --data '{ "title": "test", "content": "this is test message" }'