7 ms·
Redis transactions [1] also apply pipelining, but AFAICT there is no practical way to use them for implementing generic RPC. [1] https://redis.com/ebook/part-2
by giovannibonetti 3y ago
Redis transactions [1] also apply pipelining, but AFAICT there is no practical way to use them for implementing generic RPC.
[1] https://redis.com/ebook/part-2-core-concepts/chapter-4-keeping-data-safe-and-ensuring-performance/4-4-redis-transactions/ https://redis.com/ebook/part-2-core-concepts/chapter-4-keepi...
- ackfoobar 3y agoDoes the pipelining in Redis allow you to have the second command depend on the result of the first command?
- byroot 3y agoNo, but for that use case you have EVAL which execute an arbitrary lua script on the server. https://redis.io/commands/eval/ https://redis.io/commands/eval/
- jauntywundrkind 3y agoThat assumes you know & can generate the complete pipeline ahead of time. The elegance of promise pipelining is that your pipeline can also be asynchronously grown.