August 2022 Summaries
5 posts from Upstash
Filter
Month:
Year:
Post Summaries
Back to Blog
The text provides a guide on using QStash to automatically retry Strapi webhooks, enhancing the reliability of Strapi's open-source content management system by addressing its lack of a retry mechanism for failed webhooks. It explains how Strapi's webhooks function, which send HTTP requests when data changes, but highlights their limitation of not having a built-in retry feature in case of failures. QStash, a serverless message queue, resolves this by ensuring successful delivery through retries and allowing serverless functions to process messages. The guide outlines setting up a mock API with requestcatcher.com, creating a Strapi project, and configuring QStash to handle webhook retries. It describes updating Strapi's webhook settings to use QStash, ensuring authenticated requests via a QSTASH_TOKEN, and mentions the retry mechanism employed by QStash in case of delivery failures. The text emphasizes the importance of verifying the authenticity of incoming webhooks for production environments and suggests using Upstash's TypeScript SDK for enhanced security.
Aug 31, 2022
827 words in the original blog post.
Astro is a new tool for building fast content sites, featuring zero JavaScript by default and the flexibility to integrate with various frameworks like Svelte, React, or Vue. This tutorial guides users through creating a basic notes app using Astro and a serverless Redis database provided by Upstash, hosted on Cloudflare. It covers setting up the project with Astro's file-based routing, creating an API endpoint in TypeScript, and integrating Svelte components. The guide emphasizes minimal JavaScript use, relying predominantly on standard browser APIs, and explains how to handle CRUD operations with the Redis database using HTTP requests. It also details the deployment process to Cloudflare, including necessary adjustments for server-side rendering and environment variable management. This tutorial serves as an introduction to leveraging Astro and Redis for building scalable web applications.
Aug 30, 2022
3,716 words in the original blog post.
The tutorial provides a step-by-step guide on implementing rate limiting for applications using Cloudflare Workers and Upstash Redis. It involves setting up multiple Redis databases in different regions to manage traffic efficiently, using Wrangler 2 for deployment, and coding a function to handle rate limiting based on IP addresses or other identifiers. The guide explains why regional databases are preferred over a global database for rate limiting, emphasizing reduced costs and local scope management. It highlights the use of an ephemeral cache to minimize the cost of remote calls and outlines how to integrate this setup into existing websites by configuring Cloudflare to intercept and manage requests. Furthermore, it clarifies that self-hosted Redis cannot be used directly with Cloudflare Workers due to connection restrictions, recommending Upstash Redis for its built-in REST API compatibility.
Aug 19, 2022
941 words in the original blog post.
The article provides a detailed guide on building an email scheduler using QStash, a serverless queuing service from Upstash, integrated with a Next.js application deployed on Vercel. It emphasizes the benefits of serverless systems, like their ease of initiation, while also acknowledging challenges such as managing stateless functions. It explains how QStash addresses these challenges by offering a pay-as-you-go model and features like delivery to HTTP endpoints and deduplication. The tutorial walks through setting up a Next.js app, installing necessary dependencies like nodemailer, and creating API routes for scheduling and notifying, ensuring secure communication through signature verification. It also covers pushing the code to GitHub, creating a Vercel project, and testing the app using cURL, highlighting the seamless integration of these technologies to create efficient serverless applications.
Aug 11, 2022
1,234 words in the original blog post.
Pulumi has introduced a new provider for Upstash Redis and Kafka, which leverages modern programming languages like TypeScript, Go, and Python to create dynamic and maintainable infrastructure as code (IAC), similar to Terraform. This allows developers to construct conditional resources and use loops for multiple resources, enhancing the flexibility of infrastructure management. The provider's development was driven by community requests, and future updates aim to maintain ease of use, with plans to include QStash resources in both Terraform and Pulumi providers. Developers are encouraged to explore the repository for examples of resource creation in different languages and to provide feedback via Twitter or Discord.
Aug 04, 2022
296 words in the original blog post.