I am trying to use a @FeignClient with Redis but Redis needs to serialize the Client bean to use it in the session. If I make the Client object transient then it becomes null after the first use.
If I make it transient, I have to take it from the Application Context everytime I use it, which is bad practice.
Is there a good way to serialize the Feign Client so that I can use it along with Redis or is this a bad idea in the first place?
Edit:
I used a serializable proxy library on the feign client and have made everything a spring component with a UIScope.
If this solution doesn't seem correct, please announce me! :)
I used a serializable proxy library on the feign client and have made everything a spring component with a UIScope.
If this solution doesn't seem correct, please announce me! :)