Redis
dataloader
Our great sponsors
Redis | dataloader | |
---|---|---|
318 | 47 | |
64,705 | 12,632 | |
1.9% | 0.5% | |
9.7 | 3.3 | |
6 days ago | 30 days ago | |
C | JavaScript | |
GNU General Public License v3.0 or later | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Redis
-
Valkey Is Rapidly Overtaking Redis
One of the challenges Redis labs here have is that there's very little reason for their userbase to stay loyal to them.
antirez retired from Redis development a few years ago.
From https://github.com/redis/redis/graphs/contributors it looks like activity since he left has been mostly from people who didn't overlap with him much.
Redis Labs have not shown themselves to be outstanding stewards of the project as far as I can tell. Why shouldn't people support the fork?
-
Handling Multiple requests with Redis and Bullmq
Redis
- Redis is not "open core" (2021)
-
Software Engineering Workflow
Redis - real time data storage with different data structures in a cache
-
Redict 7.3.0, a copyleft fork of Redis, is now available
[0] https://github.com/redis/redis/blob/unstable/CONTRIBUTING.md
- It has been ten days since the last commit was pushed to Redis
-
Containerize your multi-services app with docker compose
Cache: a Redis cache
- Fix Redis Drama
- Redis changes license from BSD-3 to dual RSALv2+SSPLv1
- Change license from BSD-3 to dual RSALv2+SSPLv1
dataloader
-
Delving into the Black Magic of GraphQL DataLoader! ๐โจ
When I began working with GraphQL, I had concerns about the N+1 query problem. In my research, I came across the DataLoader pattern and its implementation on GitHub. While I explored various examples of its usage, I still struggled to grasp how it operates internally. Join me in delving a bit deeper into GraphQL DataLoader! :)
-
How to use DataLoader with Mercurius GraphQL
DataLoader: it is the standard solution to N+1 problem.
-
Best Practices in Testing GraphQL APIs
Additionally, you can use DataLoader or similar tools to optimize data fetching and avoid over-fetching or under-fetching data. Ultimately, performance and load tests ensure that your GraphQL API delivers optimal performance, meets response time expectations, and provides a smooth experience for users, even under heavy loads.
-
Migrating Netflix to GraphQL Safely
The most common practice is to turn N+1 into 1+1 using dataloaders (https://github.com/graphql/dataloader for JS, there are equivalents for most implementations). The N resolvers invoke a single batched loader which receives a list of keys and returns a list of values.
-
SQL vs. NoSQL - cutting through the Tech Twitter noise
Let's take Payload, for example. Surprise, surprise. We have a relationship field, and it can store IDs to other related documents which are seamlessly merged in when you retrieve documents from the DB. We leverage the dataloader pattern to batch together all "populations" required for a given query, returning them all super fast and with as few separate queries to the DB as possible. We actually even outperform SQL-based frameworks quite a bit. In a purely relational test, we were 3x faster than Directus and 7x faster than Strapi while both were running Postgres, and we were on MongoDB.
- NoSQL vs. SQL - cutting through the Tech Twitter noise with a real-world use case
-
We Ditched REST and Went with GraphQL: Hereโs Why
Also, have a look at Facebook's Dataloader[0].
[0] https://github.com/graphql/dataloader
-
Implementing logger with metadata
In the next article, I'm going to implement a GraphQL server with dataloader using the tools we introduced.
-
Typesafe, (almost) Zero Cost Dependency Injection in TypeScript
The one example of using Scoped dependency that comes to my mind, it's HTTP request level caching for libs like dataloader.
-
GraphQL Trades Complexity
you would fetch these 1000 rows via dataloader that batches all requests for this relation to a single query... solving the n+1 issue
What are some alternatives?
Redis - ๐ A robust, performance-focused, and full-featured Redis client for Node.js.
react-relay - Relay is a JavaScript framework for building data-driven React applications.
LevelDB - LevelDB is a fast key-value storage library written at Google that provides an ordered mapping from string keys to string values.
Knex - A query builder for PostgreSQL, MySQL, CockroachDB, SQL Server, SQLite3 and Oracle, designed to be flexible, portable, and fun to use.
RabbitMQ - Open source RabbitMQ: core server and tier 1 (built-in) plugins
jest - Delightful JavaScript Testing.
Polly - Polly is a .NET resilience and transient-fault-handling library that allows developers to express policies such as Retry, Circuit Breaker, Timeout, Bulkhead Isolation, and Fallback in a fluent and thread-safe manner. From version 6.0.1, Polly targets .NET Standard 1.1 and 2.0+.
Sequelize - Feature-rich ORM for modern Node.js and TypeScript, it supports PostgreSQL (with JSON and JSONB support), MySQL, MariaDB, SQLite, MS SQL Server, Snowflake, Oracle DB (v6), DB2 and DB2 for IBM i.
celery - Distributed Task Queue (development branch)
gRPC - The C based gRPC (C++, Python, Ruby, Objective-C, PHP, C#)
Riak - Riak is a decentralized datastore from Basho Technologies.
BatchLoader - :zap: Powerful tool for avoiding N+1 DB or HTTP queries