redis

What do 200 electrocuted monks have to do with Redis 8, the fastest Redis ever?

What do 200 electrocuted monks have to do with Redis 8, the fastest Redis ever?

Bluesky | Twitter | LinkedIn | YouTube | InstagramThis article is also available on YouTube! Have you ever heard of Jean-Antoine Nollet? Back in the 18th century, Nollet carried out an experiment where he lined up 200 monks, each connected hand-to-hand with iron wires, forming a continuous chain over a mile (1.6 km) long. Once everything was set up, he connected a primitive electrical battery to the line, delivering a powerful electric shock to all of them simultaneously. Now, Nollet wasn’t just zapping monks for kicks. His experiment had a serious purpose: to study the properties of electricity and see…
Read More
Redis caching with Mongoose

Redis caching with Mongoose

If you are working with NoSQL databases and use the Mongoose package as an ODM to execute the queries on the database. This article is for you. Why caching? Caching is essential in optimizing performance, improving scalability, and enhancing the user experience of modern applications. It can significantly reduce the load on backend resources such as databases, or APIs. By serving cached data instead of executing resource-intensive operations. How can we apply caching with Mongoose? mongoose object imported from the mongoose package has a powerful other object called Query. We can add to its prototype any customized method. We will…
Read More
4 Best Rate Limiting Solutions for Next.js Apps (2024)

4 Best Rate Limiting Solutions for Next.js Apps (2024)

When implementing rate limiting in a Next.js application, there are several effective solutions available. Let's take a comprehensive overview of the best rate limiting options for Next.js: This middleware for Express applications is widely used for managing how many requests a client can make in a given time frame. Integration: You can use it in your Next.js API routes by importing the package and applying it as middleware. Example: import rateLimit from 'express-rate-limit'; const apiLimiter = rateLimit({ windowMs: 15 * 60 * 1000, // 15 minutes max: 100, // limit each IP to 100 requests per windowMs message: 'Too many…
Read More
Supercharge your applications queries with caching

Supercharge your applications queries with caching

Have you ever wondered how some websites seem to load information almost instantly, even when dealing with massive amounts of data? The secret often lies in a technique called caching. In this post, we'll explore what caching is, why it's important, and how I implemented it to supercharge my application's leaderboard feature. What is Caching? A Library Analogy Imagine a vast library where a librarian must search through millions of books for each patron's request. Now, picture a small billboard at the entrance displaying answers to common questions. Instead of searching the entire library each time, the librarian can quickly…
Read More
Free Database Hosting

Free Database Hosting

When it comes to free database hosting, several providers offer robust solutions across various database systems including MySQL, PostgreSQL, MongoDB, and Redis. Here are some of the top options available in 2024: 1. MySQL Google Cloud Platform (GCP) Features: GCP offers a free tier that includes the Cloud SQL service for MySQL. Users can manage and maintain their MySQL databases with automatic backups, updates, and scaling. Free Tier Limits: GCP’s free tier provides a small instance with 30GB of HDD storage and 1GB of RAM per month. Pros: High availability, seamless integration with other Google Cloud services, and robust security…
Read More
No widgets found. Go to Widget page and add the widget in Offcanvas Sidebar Widget Area.