You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @chanmratekoko
No this does not support generic, generic has issue in deserialisation process, so now you can not even enqueue generic object using Rqueue enqueuer.
There're some complexity with supporting generic object, in serialisation step we need to track the generic information.
GenericMessageConverter is responsible for (de)serialisation. You can provide a new implementation of this class in your application to use.
If your generic class has some fixed generic information then it can be addressed easily but as soon as you start adding more generic data it becomes quite messy. This is the reason most of the library does not support deserialisation correctly event spring-data-redis fail on this.
Activity
sonus21 commentedon Nov 13, 2020
yes that's a limitation. Would you mind providing a fix if you know? You need to change
GenericMessageConverterclass.victory-wu commentedon Nov 16, 2020
no problem. i need to deal with other work recently. u need to wait
chanmratekoko commentedon Jan 21, 2021
Hi, @sonus21
Do the generic results support now?
How can I implement it?
sonus21 commentedon Jan 21, 2021
Hi @chanmratekoko
No this does not support generic, generic has issue in deserialisation process, so now you can not even enqueue generic object using Rqueue enqueuer.
There're some complexity with supporting generic object, in serialisation step we need to track the generic information.
GenericMessageConverter is responsible for (de)serialisation. You can provide a new implementation of this class in your application to use.
If your generic class has some fixed generic information then it can be addressed easily but as soon as you start adding more generic data it becomes quite messy. This is the reason most of the library does not support deserialisation correctly event spring-data-redis fail on this.
Some experimental codes can be seen in this class GenericMessageConverterTest
Hope you find a universal working soln.
Play with Gson and see if that works for your use case, then you can use Gson in your code for some of the queues.
victory-wu commentedon Jan 22, 2021
@sonus21
Hi, long time no see,
I use Kafka now,
kafka + spring boot , It's easy to use
Multiple projects can be implemented alternately
Many rules supporting spring
I don't think you should be discouraged, But that's the reality
Continuing to maintain this project will waste you a lot of time
sonus21 commentedon Jan 22, 2021
@victory-wu not sure if your comment is related to other ticket #47
There're some limitation, give me some more time, I'm working on code to change it to use Redis Stream that's new data structure in Redis.