July 2021 Summaries
4 posts from Upstash
Filter
Month:
Year:
Post Summaries
Back to Blog
The blog post discusses implementing a basic stateful API, specifically a page counter, using AWS Lambda and Upstash Redis through a REST API, addressing challenges associated with serverless architecture, such as statelessness and connection management. The serverless framework is used for deployment, and the project setup involves creating a database in the Upstash console, using node-fetch for API calls, and configuring the serverless.yml file to handle HTTP requests. The post emphasizes the benefits of serverless computing, like the pay-per-use model and reduced infrastructure maintenance, while also cautioning against the public sharing of API tokens and recommending best practices for performance, such as deploying in the same region and using a pipeline API for multiple commands.
Jul 27, 2021
420 words in the original blog post.
Upstash has announced the public release of its Terraform Provider, expanding its developer-friendly tools by integrating with Terraform, an automation tool that manages infrastructure as code. This new plugin, now available in the Terraform marketplace, aims to simplify collaboration by persisting configuration changes, making it easier for teams to understand infrastructure modifications. The provider is straightforward to configure, requiring minimal lines of code, and allows users to create databases effortlessly. Upstash encourages users to engage with its roadmap and provide feedback on the Terraform Provider via social platforms like Twitter and Discord, with the project being hosted on GitHub.
Jul 18, 2021
297 words in the original blog post.
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.
Jul 16, 2021
317 words in the original blog post.
The article outlines the process of building a minimalist serverless TODO application using Next.js, without relying on any database connections or extra dependencies beyond Next.js itself. It emphasizes the use of REST API due to its stateless nature, making it ideal for serverless environments, and utilizes Upstash Redis as the database backend accessed via REST. The project setup involves creating a Next.js app and an Upstash Redis database, with three API endpoints for listing, adding, and removing TODO items. The application employs React hooks for state management and is designed to run and deploy seamlessly on Vercel, leveraging serverless functions to handle API requests. The article also highlights the importance of keeping the database token secure in environment variables and suggests maintaining both serverless functions and the Redis database in the same region for optimal performance.
Jul 09, 2021
1,277 words in the original blog post.