Home / Companies / Upstash / Blog / February 2022

February 2022 Summaries

5 posts from Upstash

Filter
Month: Year:
Post Summaries Back to Blog
This tutorial explores the creation of a simple TODO application using the Remix framework and Serverless Redis from Upstash, emphasizing the user interface and database integration. Remix, a full-stack web framework, allows developers to build fast and resilient user experiences by focusing on UI design and leveraging web fundamentals. The application features a form for input and a list to display TODO items, distinguishing between completed and uncompleted tasks. It employs Remix's loader and action functions for handling data retrieval and form submissions, respectively, with data stored in an Upstash Redis database via HTTP-based client interactions. The guide details the creation and styling of the application, including CSS integration, and provides code snippets for creating, listing, and updating TODO items. Additionally, the author plans to replicate the application using other frameworks like Next.js and SvelteKit for comparative analysis, with the project's source code and demo accessible online.
Feb 19, 2022 1,662 words in the original blog post.
Netlify Graph is a new feature that aids developers in building GraphQL API calls for web applications by allowing the preparation of requests via the Netlify Dashboard and injecting client code into projects with ease. However, when using Netlify Functions with third-party services, such as Spotify, latency issues can arise due to geographical differences between services and end-users. To address this, caching solutions like Upstash Global Redis Database can be implemented to minimize latency through global caching and replication. A simple Spotify application can be created and deployed using Netlify and Next.js, which involves setting up API integration and authentication with Spotify, generating GraphQL queries, and injecting them into the project. The process includes using the Upstash Redis JS library to modify auto-generated Netlify Function code for caching API responses, enhancing performance by checking cache availability before fetching new data. This integration streamlines the development process for integrating third-party APIs, while the caching feature of Upstash Redis offers a practical solution for optimizing API response times.
Feb 16, 2022 877 words in the original blog post.
In an analysis comparing Upstash Global Redis and Cloudflare Workers KV as data storage solutions for Cloudflare Workers functions, several key differences emerge. Workers KV offers a basic key-value store API with expiration features, while Upstash Redis provides a more extensive API including support for complex data structures such as strings, sets, and hashes. Pricing varies with Workers KV being more economical for reads but more expensive for writes compared to Upstash. Upstash's compatibility with Redis offers greater portability across platforms, whereas Workers KV is limited to Cloudflare's ecosystem. In terms of performance, Upstash offers lower read latency across eight regions, whereas Workers KV initially has higher latency but equalizes due to its widespread presence. Both systems ensure eventual consistency, though Cloudflare Workers KV's write latency is notably longer, taking up to 60 seconds for updates to be fully propagated compared to Upstash's near-instant replication. Write throughput is limited in Workers KV to one write operation per key per second, constraining it to read-heavy scenarios, while Upstash supports high write volumes without such restrictions.
Feb 14, 2022 563 words in the original blog post.
Upstash has announced the release of Developer API v2, which enhances capabilities for managing and monitoring their Redis databases and Kafka clusters. This new version supports global region database creation, multi-zone replication, TLS, strong consistency configurations, and CRUD operations for Kafka clusters and topics. These updates aim to improve automated deployment and ease of maintenance while ensuring compatibility with existing v1 endpoints. The company is also planning to introduce a new Upstash CLI, SDKs, and updated providers for Terraform and Pulumi to further streamline resource management. Upstash emphasizes the importance of user feedback for continuous improvement and invites engagement through Twitter and Discord.
Feb 11, 2022 488 words in the original blog post.
The text explores various databases popular among the Next.js community, evaluating their compatibility with serverless functions and associated pricing models. It reviews PlanetScale, Supabase, Upstash, Fauna, MongoDB Atlas, and DynamoDB, highlighting their unique features and limitations. PlanetScale offers MySQL compatibility with database branching but lacks an HTTP/REST API, which may pose a challenge for serverless applications. Supabase provides a PostgreSQL database with a RESTful API, making it suitable for serverless functions, although its fixed pricing may not fully align with serverless expectations. Upstash offers Redis with per-request pricing and supports both Redis and REST APIs, making it versatile for serverless and edge functions. Fauna emphasizes global strong consistency with a GraphQL API but has complex pricing. MongoDB Atlas introduces a serverless plan and a Data API, although both are in preview stages. DynamoDB, a managed NoSQL database, supports HTTP connections and scales to zero, but its API can be less intuitive, with a risk of vendor lock-in. Ultimately, the ideal database choice depends on specific project requirements, such as the need for relational databases, real-time updates, or global low latency.
Feb 02, 2022 1,509 words in the original blog post.