Home / Companies / Upstash / Blog / December 2023

December 2023 Summaries

6 posts from Upstash

Filter
Month: Year:
Post Summaries Back to Blog
Change Data Capture (CDC) is a method used to identify and capture changes in data, enabling the processing of only modified information rather than entire datasets. This blog post outlines the creation of a CDC pipeline using Supabase as the source PostgreSQL database, Upstash Kafka for data streaming, and Tinybird as the target analytics platform. The process involves setting up Supabase to capture real-time data changes, configuring an Upstash Kafka cluster with a Debezium PostgreSQL Source Connector to stream data, and using Tinybird to transform and publish data as HTTP APIs. The blog emphasizes the ease of creating this pipeline with serverless tools, allowing for real-time data ingestion without the need for manual infrastructure management. An end-to-end test of the pipeline demonstrates how data changes in a Supabase table are captured and made accessible via an API, illustrating the practical application and efficiency of the setup.
Dec 28, 2023 1,400 words in the original blog post.
This tutorial details the process of building an Unsplash 2023 Recap app, leveraging a combination of modern technologies for data retrieval, backend processing, and frontend display. The application uses the Unsplash API to obtain user data and photo statistics, showcasing Unsplash's creative highlights from 2023. Golang, known for its efficiency, serves as the backend, integrated with AWS Lambda for a serverless architecture, allowing for scalable and maintainable code. Upstash Redis is employed as a caching layer to enhance data retrieval speed, reducing API call frequency. On the frontend, React and Tailwind CSS are utilized to create a visually appealing and responsive user interface. The tutorial provides step-by-step instructions, including setting up accounts, configuring environments, and deploying the final app on Vercel, while emphasizing best practices for integration and deployment in a serverless context.
Dec 27, 2023 1,959 words in the original blog post.
A low-latency segmentation platform is crucial for understanding and categorizing data, such as customer behavior in e-commerce, to enable personalized marketing and targeted promotions. Key challenges in designing such a platform include managing large, dynamic datasets in real-time, ensuring system scalability and responsiveness through asynchronous processing, and implementing a microservices architecture to enhance flexibility. The proposed architecture involves subsystems like Compute Service, Ingestion Service, and Segment Service, utilizing technologies such as Apache Spark for data processing, S3 as a data lake, MongoDB for transactional data, and Upstash Kafka for streaming events. Design challenges include managing write QPS bottlenecks and achieving low read latency, with solutions like distributed caching using Aerospike and serverless Upstash Kafka to manage infrastructure without operational burdens. The platform's design principles focus on scalability, leveraging Upstash technologies to efficiently handle millions of users and vast data volumes, while maintaining low latency and high availability.
Dec 14, 2023 1,510 words in the original blog post.
The release of version 1.0.0 of the upstash-redis Python package introduces a connectionless HTTP-based client for Upstash Redis, optimized for serverless environments like AWS Lambda and Google Cloud Functions. This version provides comprehensive python docstrings and example usages for each command, with further documentation available online. Enhancements include a new type, ValueT, for certain commands to reduce confusion, and updated return types for geo and set commands, improving usability and efficiency. The package supports both synchronous and asynchronous functionalities, and the developers plan to add pipeline and JSON command support in the future. Users are encouraged to initialize the client outside request handlers when possible to optimize performance, and feedback is welcomed via X or Discord.
Dec 13, 2023 525 words in the original blog post.
This tutorial details the process of building a real-time leaderboard using Upstash Redis as the backend storage and deploying it globally with Fly.io, combining the efficiency of serverless Redis with Fly.io's low-latency, global distribution capabilities. It starts with setting up a Fly.io account, creating a Redis database, and developing a Flask application that interacts with the Redis database to manage leaderboard data. The tutorial includes instructions on installing necessary dependencies, developing the application using Python and Flask, and deploying it using Fly.io's infrastructure, ensuring global accessibility. The tutorial highlights the seamless integration of Upstash Redis and Fly.io, emphasizing their simplicity, scalability, and performance advantages, along with suggestions for further enhancing the application's features.
Dec 09, 2023 1,865 words in the original blog post.
This tutorial provides a comprehensive guide on building a message queue from scratch using Redis lists, specifically focusing on using Upstash Redis for the setup. The process involves setting up a Redis instance, initializing a TypeScript project using Bun, and creating a project structure with key components such as Job and Queue classes. The Job class tracks the status of each job, manages job IDs, and facilitates saving jobs into queues, while the Queue class is designed to handle concurrency, allowing multiple jobs to run simultaneously with the ability to retain or remove data based on success or failure. The tutorial also introduces a Lua script to optimize Redis operations, reducing round trips by consolidating multiple calls into a single execution. Key functionalities include adding and processing jobs, managing job statuses, and implementing a worker function to execute jobs. To enhance the developer experience, the guide employs TypeScript features for better intellisense and outlines bonus challenges such as implementing retry logic and scheduling jobs. The tutorial emphasizes hands-on learning through practical implementation, encouraging users to explore further enhancements and optimizations.
Dec 08, 2023 3,565 words in the original blog post.