DEV Community

Discussion on: Scaling Websockets in the Cloud (Part 2). Introducing Traefik: the all-in-one solution for Docker Stacks and Kubernetes clusters

Collapse
 
ucipass profile image
If you are here, you know who I am. • Edited

Awesome article! I will definitely try some of your ideas. I do have a websocket application as single container app and would like to scale it out on Kubernetes.
One thing I did not understand is what is the gotcha with the /socket.io prefix? Why can't you just keep it and also keep things simple?

Collapse
 
bernardbaker profile image
Bernard Baker

That sounds great 👍. You should post a short article when you do.

Collapse
 
sw360cab profile image
Sergio Matone

Thank you!
IMHO if you are in a complex scenario like the one described, "adjusting" the prefix allows you to create a more clear setup. Otherwise you have to take into account that prefix at each component of your cluster.
I can tell you that throubleshooting the cluster from Ingress, through services and pods it is not easy if you have such a prefix.