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?
Asked
Active
Viewed 108 times
-3
-
5If a process dies, all the memory that it used is usually reclaimed by the OS. – super Feb 10 '22 at 11:19
-
Have you ever brought this up or is it a hypothetical example? – Mikołaj Głodziak Feb 10 '22 at 14:28
1 Answers
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