Home / Companies / Upstash / Blog / September 2022

September 2022 Summaries

7 posts from Upstash

Filter
Month: Year:
Post Summaries Back to Blog
Deno Deploy and QStash together offer a streamlined, serverless approach to building failure-tolerant asynchronous processing systems using JavaScript, TypeScript, and WebAssembly at the edge. With Deno Deploy, developers can easily upload and run code without managing infrastructure, while QStash provides a serverless message-queue/scheduler with per-request pricing. The integration process involves creating a new project in the Deno code editor, editing the handler function to verify incoming HTTP requests using signing keys, and deploying the project to start processing messages securely. By leveraging these tools, developers can efficiently set up a secure API that receives and validates webhooks from QStash, facilitating a seamless workflow for message publishing and processing.
Sep 27, 2022 525 words in the original blog post.
The article outlines the process of building a real-time data pipeline to analyze website traffic using a combination of Vercel Edge, Upstash Kafka, and Tinybird. The setup involves creating an architecture where Vercel Edge Middleware collects user and geo-locational information from requests to a Next.js application, which is then sent to a serverless Upstash Kafka cluster. Tinybird is used to run real-time queries on the collected Kafka data and create API endpoints for analysis. The process includes setting up a Next.js application with Vercel Edge functions, configuring Upstash Kafka to handle traffic data, and using Tinybird to query and visualize the data collected, enabling insights into page views by city within the last 15 minutes. The article emphasizes the simplicity and scalability of using serverless technologies to achieve real-time data analysis without extensive server management or infrastructure setups.
Sep 21, 2022 1,017 words in the original blog post.
In a tutorial exploring the use of serverless functions for processing tasks with potential failures, the integration of QStash and novu is demonstrated through the creation of a simple app that adds two numbers. This app, although basic in task, showcases the power of QStash as an HTTP-based messaging and scheduling solution, and novu's capability for managing communication channels like email and SMS. The app's serverless function conducts the addition and notifies users of success or failure through novu, highlighting the retry capabilities of QStash. By employing Next.js for development and deploying the app on Vercel, users can experience firsthand how such a setup can handle complex workflows beyond just adding numbers, offering a resilient framework that can automatically retry failed tasks and inform users accordingly. This approach underscores the potential of serverless architectures combined with messaging solutions to handle asynchronous tasks efficiently while minimizing infrastructure management.
Sep 19, 2022 1,169 words in the original blog post.
The article describes how to build a minimal authenticated REST API service using Next.js API Routes and Upstash Redis, focusing on user authentication and JWT handling without a front-end component. Upstash Redis, a serverless in-memory cloud database based on Redis, is used for storing user data, tokens, and a list of movies available through the API. The API endpoints allow client applications to request movie data, with security enforced via JWTs and a refresh token workflow. Detailed instructions are provided for setting up the Redis database, creating necessary API routes, handling user authentication, and managing JWTs and refresh tokens. The article emphasizes the importance of client-side responsibility for storing and using tokens, while also suggesting potential improvements such as optimizing data storage, enhancing security, and expanding API functionalities.
Sep 13, 2022 2,839 words in the original blog post.
Over the past 18 months, the Vercel and Upstash integration has evolved, initially enabling developers to create Redis databases and manage connection secrets as environment variables within Vercel. The integration has now been updated to support two new Upstash products: Managed Serverless Kafka and QStash, expanding its capabilities significantly. Developers can now integrate Kafka and QStash, create new databases and clusters on demand, and manage them directly through Vercel, with the integration automatically setting the necessary environment variables for seamless project deployment. Users are encouraged to explore the detailed documentation for comprehensive guidance and are invited to share feedback on Twitter or Discord.
Sep 07, 2022 232 words in the original blog post.
The text provides a comprehensive guide on setting up a sample application using the Sidekiq background processing library on Fly.io, utilizing Upstash Redis for efficient task management. It explains how Sidekiq allows processes to be distributed to workers, ensuring the main server remains responsive by offloading heavy or recurring tasks. The setup involves creating a Fly.io account, configuring Upstash Redis, and writing application code using Ruby, Sinatra, and Sidekiq to handle queued tasks like sending email notifications based on user input. The document outlines steps for deploying the application using Fly.io's CLI tools, detailing how to enqueue and update tasks through various endpoints, and concludes by emphasizing the benefits of improved server responsiveness and user experience.
Sep 05, 2022 820 words in the original blog post.
LaunchDarkly is a feature management tool that enables software development teams to control product releases and testing through the use of feature flags. These flags allow teams to target specific user groups or percentages of users when deploying new features, enabling live testing and controlled rollouts without affecting all users. The tool's integration with Upstash Redis offers a Redis-backed feature store, facilitating efficient management of feature flags. In a practical example, a simple Java client is set up using the LaunchDarkly SDK, allowing for feature flag evaluation based on user properties, and the integration with serverless Redis further enhances this setup by storing feature flags in a scalable manner. This approach exemplifies how LaunchDarkly can streamline feature management, offering flexibility and precision in software deployment processes.
Sep 02, 2022 1,229 words in the original blog post.