Home / Companies / Upstash / Blog / July 2023

July 2023 Summaries

2 posts from Upstash

Filter
Month: Year:
Post Summaries Back to Blog
The author describes their experience implementing an upvote feature with rate limiting in a SvelteKit app using tRPC and Redis, aiming to prevent abuse by users. After deploying the feature, the need for rate limiting became apparent due to high activity in logs and the database. The author created the 'High Five Cat' app to demonstrate the solution, which involves using tRPC middleware to manage requests, checking user IPs to apply rate limits. The solution, which is not limited to upvoting, uses a Redis-backed rate limiter from Upstash to allow only one request per minute per user. The author details the implementation process, including setting up the UI components and middleware, and discusses potential improvements and the flexibility of the approach for various use cases. The post encourages readers to consider their unique application requirements before implementation and invites them to join the Upstash Discord community for further discussion.
Jul 20, 2023 3,153 words in the original blog post.
Upstash is expanding its support for Python developers by introducing official SDKs for Redis and rate limiting, which leverage an HTTP-based API suitable for serverless environments. These SDKs, previously available in JavaScript and TypeScript, aim to enhance user experience by addressing the growing demand for Python applications, particularly those utilizing AI APIs that require efficient rate limiting due to their cost and resource intensity. The Upstash Redis SDK allows for straightforward data management, while the Upstash Rate Limiting SDK offers robust application-level rate limiting features, including various strategies like fixed window and token bucket, to manage user requests efficiently. These SDKs, available on GitHub and PyPi, also provide monitoring and analytics capabilities, ensuring developers can implement scalable and reliable solutions in their applications.
Jul 18, 2023 720 words in the original blog post.