I understand in spring kafka 3, I need a unique transaction-id-prefix for applications running with multiple instances. here is my configuration:
fun getTxnIdPrefix() {
return "$hostname-mytransaction-id-prefix-${UUID.randomUUID()}"
}
in this case:
hostA-mytransaction-id-prefix-abcd123xxx
app crash and restart
hostA-mytransaction-id-prefix-mnbmgjh698
does transaction-id-prefix need to be identical for same instance in case application crash/restart?
I saw from confluent blog transactions-apache-kafka suggests the transaction-id-prefix need to be identical before/after application instance crash/restart, in order to look for any pending transaction?