Async Support #349

wants to merge 7 commits into


None yet

2 participants


First let me say how impressed I am with this library. Its incredibly well written and made adding a somewhat complex feature surprisingly easy.

I have a project where we are doing a few relatively simple redis operations on a very fast stream of data. We have reached the limits of the current system and are latency bound waiting for the request to be returned to us. Our project is async in other places so we can get a huge performance win by preparing and making our next request even before we have the answer to the current request. Another way to accomplish the same goal would be to use many clients in parallel but the order of the data matters so its much simpler to increase the performance of a single thread if possible.

The implementation is pretty simple, the key changes were adding a ResponseListener callback to the Response class and a background thread on the Connection that spins reading the responses and calling the Response.set function.

I think the error handling may need a bit of work but it should be usable as is.


As you already know, we're planning to adopt nonblocking async feature, which could be better compared to blocking async.
So for now I'd like to close this first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment