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
It would be great to have a pipeline API on Devvit's redis client. Right now, to guarantee command ordering you have to await each call individually, which adds a round trip per command. With pipelining, commands could be batched and sent in a single TCP write without transaction overhead. Many Redis clients (E.g. ioredis) expose it through .pipeline()
// Not guaranteed Redis receives first command first. redis.zAdd(...)redis.zRank(...)// Awaiting adds a round trip awaitredis.zAdd(...)redis.zRank(...)// No round trip, fast and guaranteed orderconstpipeline=redis.pipeline()pipeline.redis.zAdd(...)pipeline.redis.zRank(...)const[_,rankResult]=awaitpipeline.exec()
Activity