Server-Sent Events in Google Cloud Load Balancer

4/9/2020

I'm developing an HTTP API that contains server-sent events written in Go (echo framework). I'm using https://github.com/alexandrevicenzi/go-sse to develop the server-sent events. The HTTP API is deployed in Google Kubernetes with 3 serving pods and Google Cloud Load Balancer (Internal HTTP(S) Load Balancing).

There is a problem occurred. The front-end web app is only connected and listen to 1 pod. So, when there is an event sent from another pod, the front-end web app would not receive the event.

Is there any solution to solve this problem?

Thanks in advance.

-- Benedict
go-echo
google-cloud-load-balancer
google-kubernetes-engine
load-balancing
server-sent-events

0 Answers