Let's imagine I have a consumer group called group1.

There are 2 instances instance1, instance2 as consumers in the group.

These consumers can access their previous unacknowledged messages like this.

xreadgroup group group1 instance1 streams numbers 0

My question is - currently I use hostname as consumer name. It will be dynamic everytime in the modern cloud native app. because of that I might lose my previous unacknowledged messages. What is the best practice?