Closed cflynn07 closed 8 years ago
needs to be configurable, either process.env or passed in.
I don't think we want to make it global for all queues. IMHO I'd prefer it to be setting per queue
@podviaznikov I'd like to see it configurable per queue as well. But that would mean we'd have to pass in a slightly more complex data structure to hermes to associate queue settings with queue names. I'd like to make that change after getting basic TTL functionality
Yes, but implementing it with "more complex data structure" will take ~1 hour. Why do it this way, update your code to use new version of hermes, then make proper implementation and update your code that uses hermes 1 more time
I think the process will be a little more involved that may immediately be apparent due to all the various current&near-future uses of hermes throughout each of our services, but I understand the benefits of more granular configurability. I'll use a fork of hermes with ttl settings to ship my latest feature that requires it, and I'll revisit this task when I have more time to plan it
This is a queue TTL? How does a durable queue work with a TTL?
add unit test please
@bkendall The documentation with all the details: http://www.rabbitmq.com/ttl.html#queue-ttl
+1 from me, get 1 more person to approve
still super strange that proper implementation with possibility to configure ttl per queue wasn't implemented (that means we would need to spend more time reviewing another small pr in the future, updating navi etc) but +1.