Home / Companies / Upstash / Blog / Post Details
Content Deep Dive

Pipeline REST API on Serverless Redis

Blog post from Upstash

Post Details
Company
Date Published
Author
Enes Akar
Word Count
317
Language
English
Hacker News Points
-
Summary

Upstash has introduced a Pipeline API, adapting the Redis PIPELINE command to their REST API, which allows developers to send multiple commands in a single HTTP request, enhancing performance by reducing round trip time and socket I/O. This feature is particularly beneficial for serverless and edge functions that face connection issues when accessing Redis. Despite its advantages, the Pipeline API does not guarantee atomicity, meaning commands from other clients can interleave with the pipeline, and some commands may fail while others succeed. Additionally, commands within the pipeline must be independent, as the response of one cannot be used by another. Upstash encourages users to provide feedback to improve the API further.