Closed alifpay closed 3 years ago
no we dont have such a feature, mind explaining the use case a bit?
We have an external API, sometimes it doesn't respond, after a while we try to send it again ... if our app is in one replica, that's not a problem, we get from the database and send it. but if we have more than one replica, the request will be more than one and it is problem..
You can use the duplicate tracking in jetstream to allow multiple publishes but only 1 going into the stream, would that not address the concern of the more than 1 replica?
it is OK! We are using Queue Subscribe in nats streaming, but need a message to delay.. I tested with nats streaming to resend. it is very fast and it is very overwhelmed.
Is it possible publish/subscribe message with time delay.. ?
Message timers let you specify an initial invisibility period for a message added to a queue. For example, if you send a message with a 45-second timer, the message isn't visible to consumers for its first 45 seconds in the queue. The default (minimum) delay for a message is 0 seconds.