Open AlexeyKupershtokh opened 10 years ago
Hello @wandenberg @AlexeyKupershtokh! +1
It's a must have.
Some API to delete stored messages will be great too, but it's more advanced feature, so just freeing memory as needed will be ok.
yes please. would be tremendously useful in my current setup.
Hello.
As I can see in the
push_stream_shared_memory_size
description:What is supposed to do when you get 500 trying to publish a mesasge?
I would prefer to have another option of the module behavior. I think it should (optionally) free memory when it needs more by freeing old messages. This way push_stream_message_ttl would have logic more like "try to keep messages for push_stream_message_ttl but can also delete them earlier".
E.g. this policy is available in Redis ( http://oldblog.antirez.com/post/redis-as-LRU-cache.html ):
What do you think?