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
I have a couple of questions here and need suggestions.
Currently I am creating a synchronous connection by client.connect() during client initialization and cache the connection to be used by all commands.
However, I am reading the reference of this library and think that using asynchronous connection by
client.connect().async() might be beneficial to reduce my lambda startup time, so that in the lambda startup, I call RedisAsyncCommands<String, String> future = client.connect().async(), instead of client.connect().
Should I cache this future object in the client object and reuse it, or should I call client.connect().async() everytime I need to run a command?
RedisAsyncCommands.isOpen() is deprecated now, how do I check if the RedisAsyncCommands is open and do I have to close it manually?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have a couple of questions here and need suggestions.
Currently I am creating a synchronous connection by client.connect() during client initialization and cache the connection to be used by all commands.
However, I am reading the reference of this library and think that using asynchronous connection by
client.connect().async() might be beneficial to reduce my lambda startup time, so that in the lambda startup, I call RedisAsyncCommands<String, String> future = client.connect().async(), instead of client.connect().
Beta Was this translation helpful? Give feedback.
All reactions