advancedKubernetes Deployment
What Kubernetes concept maps naturally onto 'a consumer instance that needs a stable identity across restarts', and why might that matter for Kafka?
A `StatefulSet` gives each pod a stable, predictable network identity and ordinal index across restarts, which matters if you rely on that identity for manual partition assignment or for correlating a specific consumer instance with monitoring/logs — a plain `Deployment`'s pods get arbitrary, changing names on every restart, which works fine for most Kafka consumers but not ones that need pinned identity.
This is a Pro chapter
Sign in, then upgrade to Pro or Power to unlock this and the full Spring Ecosystem Mastery library.
What Kubernetes concept maps naturally onto 'a consumer instance that needs a stable identity across restarts', and why might that matter for Kafka?