RedisGraph was a property-graph module for Redis that spoke a subset of Cypher and stored nodes and edges in compact GraphBLAS-backed matrices. It was attractive because it ran inside Redis with sub-millisecond latency on small graphs, but Redis Inc. ended maintenance in 2023 — version 2.12 is the last release, no further security patches, and the module is not in Redis Stack 7.4 or newer. This article documents what it was, what it could do, and the migration paths off it that we use in production. If you are running RedisGraph today, this is the operator-grade brief.
How to verify
# Is the module currently loaded?
redis-cli MODULE LIST | grep -i graph
# Expected (legacy): graph or RedisGraph 20812 or similar
# What is on the host? (Deb package or loadmodule line)
dpkg -l | grep -i redisgraph
grep -r 'loadmodule.*graph' /etc/redis/
# If loaded — what graphs exist and how big?
redis-cli GRAPH.LIST
redis-cli GRAPH.QUERY social "MATCH (n) RETURN count(n)"
redis-cli GRAPH.QUERY social "CALL db.indexes()"
What’s happening
A graph in RedisGraph was stored as a single Redis key whose value was a sparse adjacency matrix per edge type, plus per-property arrays. Queries were Cypher-like: MATCH (a:Person)-[:FRIENDS_WITH]->(b:Person) WHERE a.name = 'Ada' RETURN b.name. The module compiled the query, executed matrix operations through the GraphBLAS library, and returned tabular results. This made point traversals fast — single-digit milliseconds on graphs up to tens of millions of edges — but the engine had limits compared to Neo4j or Memgraph: limited subset of Cypher, no clustering across shards, no replicas that could serve graph queries independently (the graph key replicated as a blob), and no online schema evolution beyond CREATE INDEX.
Redis Inc. retired the module in 2023 citing maintenance burden. There is no in-place upgrade to a maintained Redis graph product — Redis Stack does not include a graph module anymore. Continuing to run RedisGraph means:
- No security patches for the module.
- A version of Redis pinned to
<=7.2(later versions will not load the module). - Loss of vendor support for that module.
Most teams we see move off RedisGraph onto one of three targets, depending on shape: Memgraph (drop-in Cypher with similar latency profile), Neo4j (richer Cypher, mature ops), or Apache AGE on PostgreSQL (graph + relational in one engine).
The decision
Choose Memgraph when:
- Your workload was already RedisGraph-shaped — Cypher, in-memory speed, small to medium graphs.
- You want the fastest migration path; the Cypher subsets overlap significantly.
Choose Neo4j when:
- The graph is the primary data store, not a sidecar.
- You need APOC procedures, mature Bolt drivers, or Aura cloud.
- Read replicas and clustering matter more than raw latency.
Choose Apache AGE / PostgreSQL when:
- The graph and your relational data share a transactional boundary.
- The team already operates PostgreSQL competently and you want one fewer database.
- Throughput is moderate and you can tolerate PostgreSQL’s planner over a specialized graph engine.
The procedure (migration off RedisGraph)
-
Inventory. Export the graph schema:
redis-cli GRAPH.QUERY social "CALL db.labels()" redis-cli GRAPH.QUERY social "CALL db.relationshipTypes()" redis-cli GRAPH.QUERY social "CALL db.indexes()" -
Dump nodes and edges to CSV. Run paginated Cypher queries from a script that drives
GRAPH.QUERY. Bulk-export gets you to a portable format.MATCH (n:Person) RETURN n.id, n.name, n.email SKIP $skip LIMIT 10000 MATCH (a)-[r:FRIENDS_WITH]->(b) RETURN a.id, b.id, r.since SKIP $skip LIMIT 10000 -
Spin up the target. Memgraph by Docker is the quickest:
docker run -d --name memgraph -p 7687:7687 \ -p 3000:3000 memgraph/memgraph-platform:latest -
Load the CSV. For Memgraph, use
LOAD CSVover the dumped files; for Neo4j, useneo4j-admin database import; for AGE,COPY ... FROM STDIN. -
Recreate indexes and constraints explicitly in the target — none of the engines auto-discover indexes from data.
-
Update application code. Cypher subsets differ —
WITHprojections, list comprehensions, and aggregations have small dialect differences. Run your test suite against the new engine first; do not switch traffic until parity is proven. -
Cutover. Dual-write to RedisGraph and the target during a window, compare query results, then flip reads.
Common pitfalls
- Continuing on RedisGraph past 2026 means running unmaintained code that handles untrusted data — a security finding waiting to happen. Plan the migration.
- A Cypher query that worked on RedisGraph may parse on Memgraph but return different ordering — RedisGraph sometimes returned results without explicit
ORDER BY. Add the order clause. - The single-key model meant
BGSAVErewrote the whole graph atomically. Memgraph and Neo4j use page-based persistence; backup tooling and restore semantics differ. Update runbooks. - An index on a property in RedisGraph required
CREATE INDEX ON :Label(prop)— the syntax is similar in Memgraph but slightly different in Neo4j (CREATE INDEX FOR ... ON ...). Re-test every query plan. - RedisGraph stored graphs in a single Redis key, so a single shard held the whole graph. If your graph was approaching the working set of one node, the migration is also an opportunity to right-size.
In the engagements we run, the standard path off RedisGraph is a Memgraph stand-up with parity tests, a dual-write bridge during cutover, and the RedisGraph host kept read-only as a fallback for 30 days. We operate post-migration graph workloads under Managed Operations — and clients running broader Redis Stack deployments often refresh the rest of the stack at the same time.