Sign inSign up

vincentjorgensen/rust-helloworld

By vincentjorgensen

•Updated 3 months ago

https://github.com/vincentjorgensen/helloworld-rust-microservice

Image
0

1.1K

vincentjorgensen/rust-helloworld repository overview

A Helloworld microservice implemented in node js using express that is best suited for testing network topologies. See my git repo⁠ for the full usage. Once deployed, I can use curl against the service endpoint to determine which backend is replying. For example, in a Kubernetes cluster, I deployed Helloworld to three different AZs, each running one pod. The Service fronts all three. When I test the topology:

for i in {1..99}; do
  curl 192.168.96.40/version
done | sort | uniq -c

I see that it is treating each AZ equally.

     33 version: v1, zone: us-east-2a, region: us-east-2, instance: helloworld-us-east-2a-f5d4988d4-thg9t, proto: http
     33 version: v1, zone: us-east-2b, region: us-east-2, instance: helloworld-us-east-2b-7f7b79d59c-qg4vf, proto: http
     33 version: v1, zone: us-east-2c, region: us-east-2, instance: helloworld-us-east-2c-87f57cc5d-79gnn, proto: http

Tag summary

Content type

Image

Digest

sha256:3fa7fff21…

Size

49.7 MB

Last updated

3 months ago

docker pull vincentjorgensen/rust-helloworld