-3

I have deployed a go application in kubernetes. My application has a go routine which continuously listens for messages from a kafka topic and push new messages into a go channel for further processing and commits kafka message. If I scale down the number of replicas using hpa/if replica goes down due to panic, what happens to the messages which are still in go channel unprocessed?

Michael
  • 123
  • 1
  • 8

1 Answers1

1

what happens to the messages which are still in go channel unprocessed?

The channels in go are in the memory, so when the app crashes, everything in the channels will be lost.

Mikołaj Głodziak
  • 4,775
  • 7
  • 28