Open SHildebrandt opened 7 months ago
Just realized that this is probably dependent on (i.e. would be solved with) this feature: https://github.com/lettuce-io/lettuce-core/issues/632
I suspect I will have to go back to Jedis for now. :(
This would be great. The performance from Lettuce & Netty is amazing, but it gets pretty bogged down by workarounds for this. For Redis usages with many value types, it makes connection pooling impossible.
When everything has to cast from ByteBuffer / String into the target class, the huge amount of malloc & GC calls really bring performance down.
First of all, thanks a lot for this library. It's really fun to work with it, especially compared to Jedis.
I need to update several keys within one transaction, some of which are strings and some are compressed byte arrays. Is this possible?
As far as I understand, I usually have to create two different
StatefulRedisConnection
s for the different codecs, but I cannot start a transaction over both of them.Simplified Example:
Is there a dedicated way to deal with this problem in Lettuce? I tried to write my own
RedisCodec
implementation to combineStringCodec
andByteArrayCodec
, but that does not seem to be trivial, since I don't know what kind of key I have in thedecodeValue
function.