-
Notifications
You must be signed in to change notification settings - Fork 186
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TTL for requests #148
Comments
How is this different than the timeout functionality?
|
Oh I see, so even if we have timeout, we initially send the messages but just drop the callback. This makes a lot of sense. Currently cote doesn't offer this functionality, but it's somewhat easy to override with a custom logic. cote stores outgoing messages in a queue in the requester; you can actually reset it with So if you manually implement a timer to check for lost connections, at the end If you'd consider contributing this functionality to cote, I'd love to have this feature. |
Funny coincidence, I was just thinking the same thing, and @mikield asked about it just 6 hours ago. |
Yes, redis only supports us with finding other services, the rest of the communication is the same, through cote and TCP sockets. |
@dashersw do we have some sort of id for the queued messages? Cause if I will implement that by Application side - i want to remove a message/request but not to clear full queue table. |
Not by default, but you can put a unique id into your requests and then |
@dashersw I have noticed 2 new Requesters. |
@mikield no, it's only a routing prioritization based on response times. |
I can not find any information for a request TTL option.
As I understand Requester is gathering requests if has no Responder connected (offline for example)
These requests have no TTL, and are executed when Responder goes live.
What I want is to set a TTL for the same way as timeout option. So that if my Responder has not gone live in for example 30 secs - just ignore that request.
In my application client based services can do many requests, but if my Responder server will go offline, and then after 10 mins go live - that response is not needed already.
The text was updated successfully, but these errors were encountered: