I have a spring service subcribing for messages from a topic in the google cloud pubsub (pulling).
I have tried to set those configuration in my profile config. like this to manage retries of messages:
spring:
cloud:
gcp:
pubsub:
subscriber:
retry:
max-attempts: 2
retry-delay-multiplier: 5
initial-retry-delay-seconds: 1
max-retry-delay-seconds: 10
jittered: false
The problem that i receive all messages all the time and it's not deleted after 2 retries like my configuration.
I tried with nack()
message but it's not working