What do you want to see in Dalli 4.x? #825
Replies: 3 comments 6 replies
-
A version of Dalli that supports the Meta protocol as an option can be found here - #879 . It will likely be released as 3.2.x. While this version allows users to switch out the default binary protocol for Meta, it makes no API changes that allow Dalli users to take advantage of new Meta features. Exposing those features will require substantial extension of or changes to the |
Beta Was this translation helpful? Give feedback.
-
Following up from the issue here to document the feature request around instrumentation support. I would like to push for the Dalli gem to adopt first party instrumentation support for OpenTelemetry (it never hurts to ask), however I understand that it is not always desirable to pick a specific standard in favour of providing a more generic interface for something like this. Our current approach is to patch the request method in Here is an example of community maintained instrumentation for OpenTelemetry Ruby And a more visual demo of what the output looks like for a simple snippet of code like the following. SimpleTracer.in_span('Parent span') do
dalli.set('foo', 'bar')
dalli.get('foo')
dalli.set('foo2', 'bar2')
dalli.get_multi('foo', 'foo2')
SimpleTracer.in_span('sleep for a moment while I stop memcache') { sleep 5 }
begin
dalli.set('foo', 'bar')
rescue => e
end
end Ideally the outcome of any work done in this effort would result in either a formally supported chokepoint in code that we could patch to capture telemetry data from the requests being made to memcached, or an interface where we could supply our own tracer/metrics reporter. Let me know if you'd like for me to expand on anything above, or would like some contributions to spike out a poc. |
Beta Was this translation helpful? Give feedback.
-
I know this is a fairly old post, but adding support for ActiveSupport::Notifications would resolve the issue I'm running up against currently |
Beta Was this translation helpful? Give feedback.
-
I'm looking for any thoughts on what users would like to see in the Dalli 4.x version.
In my view Dalli 3.x is essentially a modernization release. Key changes in this version either include or will include:
When this agenda is complete Dalli should be free of meaningful technical debt and relatively straightforward to support for the near future.
That leaves the question of what's next - what should be in Dalli 4.x?
The most obvious choice would be adding support for the (relatively) new Memcache Meta protocol. The binary protocol that Dalli uses is now deprecated (although it's planned to be supported for the foreseeable future). Is this of interest?
Are there any other features or enhancements you'd like to see in Dalli? ActiveSupport::Notifications events? Implementation of a Probabilistic Hot Key Cache?
Thoughts are welcome. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions