How can I send and receive messages in those two cases?
We are migrating our app from appengine to kubernetes. We have two microservices distributed in this way:
Development environment
- Service 1: Running on a Kubernetes pod (cluster named 1). It was running on AppEngine
- Service 2:Running on a Kubernetes pod (cluster named 1). It was running on AppEngine
Problem is that Service 1 keeps sending pubsub messages to service 2 on AppEngine. It should send pubsub messages to service 2 running on Kubernetes
Production environment
- Service 1: Running on AppEngine but soon it will be running on a Kubernetes pod (cluster named 1)
- Service 2: Running on AppEngine but soon it will be running on a Kubernetes pod (cluster named 1)
In production environment, nowadays service 1 and 2 communicate via pubsub. Which (and in what order) is the best way to start migrating both services in production environment to Kubernetes pods?
I was thinking about moving both service 1 and 2 at the same time to Kubernetes and start using http rest to send and receives message between them (that would mean stop using Google PubSub) but I am not sure. Another problem I see is that Push endpoints require https and my external ip from my kubernetes service is http