Cloud & AI Production Lab

Graph Database - Distributed Load & Design Comparison

A real, self-managed graph database for a social-media workload, without the cost of AWS Neptune. We start with Neo4j on EC2, then build a lab that compares load and scale across Memgraph, ArangoDB and NebulaGraph.

The candidates

Four self-hosted alternatives to Neptune

For most social platforms a dedicated property graph database fits. Meta and X build custom layers on key-value or SQL stores instead.

Which one fits? Answer four questions

The best fit lights up.

  1. 1How big will the graph get?
  2. 2How fast must reads be?
  3. 3What do you store?
  4. 4Who runs it?

Neo4j Community

Starting point

Memgraph

Real-time feeds

ArangoDB

One engine

NebulaGraph

Distributed scale

AWS Neptune

Baseline

Weighted score: efficiency, cost, business value

Pick a weighting. Scores are out of 10.

Efficiency 33%Cost 33%Business value 34%

Weighted scores per engine
EngineEfficiency 33%Cost 33%Business value 34%Weighted total
Neo4j Community
5.50
7.25
6.80
6.52
Memgraph
6.50
6.25
6.20
6.32
ArangoDB
6.00
5.25
6.40
5.88
NebulaGraph
7.25
7.00
6.60
6.95
AWS Neptune
5.25
5.50
8.40
6.38

✓Best in the column. Efficiency is performance per resource. Cost is license, infrastructure and operations. Business value is query language, clustering and HA, ecosystem, managed options and licensing risk.

When to use each one

Neo4j Community

Starting point

Known forThe default graph database. Cypher and the biggest community.

Use it when

  • First build on one server, team new to graphs
  • Friends-of-friends and recommendations in Cypher
  • You want the easiest hiring, drivers and tutorials

Avoid it when

  • You need built-in clustering or failover (single instance, GPLv3)
  • Writes will outgrow one server
Efficiency5.50
Cost7.25
Value6.80

Memgraph

Real-time feeds

Known forIn-memory C++ speed on live graph queries, no JVM overhead.

Use it when

  • Live feeds, notifications and recommendations
  • Streaming data into a hot graph
  • An existing Neo4j app: Cypher and Bolt, near drop-in

Avoid it when

  • The graph is larger than the RAM you can pay for
  • You need automatic failover without the Enterprise license
Efficiency6.50
Cost6.25
Value6.20

ArangoDB

One engine

Known forDocuments, key-value and graph together in one database.

Use it when

  • Profiles, posts and edges with no second database to sync
  • A small team that wants one engine to run
  • Internal or non-commercial use under 100 GiB

Avoid it when

  • Commercial production on the Community license (needs Enterprise)
  • You require an Apache-style open source license
Efficiency6.00
Cost5.25
Value6.40

NebulaGraph

Distributed scale

Known forBillions of edges on cheap nodes, Apache 2.0.

Use it when

  • The graph will pass one server
  • Heavy write volume spread over shards
  • A team with Kubernetes and SRE skills (JanusGraph on Cassandra or ScyllaDB is similar)

Avoid it when

  • Small graph or small team: Storage, Meta and Graph services mean heavier DevOps
  • You need a vendor-managed service
Efficiency7.25
Cost7.00
Value6.60

AWS Neptune (reference)

Baseline

Known forFully managed, with Multi-AZ and read replicas built in.

Use it when

  • No database operations staff
  • High availability and an SLA from day one
  • Gremlin or SPARQL as well as openCypher

Avoid it when

  • Heavy steady I/O on Standard billing: it bills instance hours, storage and I/O (none with I/O-Optimized)
  • Lab runs that rely on Spot, or fast create and delete (no Spot)
Efficiency5.25
Cost5.50
Value8.40
Design comparison

How they differ

Switch the view, then select a node for the full note.

Neo4j CommunityCypher MemgraphCypher ArangoDBAQL (SQL-like) NebulaGraphnGQL (Cypher-like)
Neo4j CommunityDisk (JVM), single node MemgraphIn-memory (C++) ArangoDBDocument + graph NebulaGraphDistributed (C++)
Neo4j CommunityFastest development MemgraphReal-time feeds ArangoDBPosts + profiles + graph NebulaGraphBillions of connections
Start: Neo4j on one EC2 Then: move to Memgraph
Distributed load

Docker, ECS and EKS: which to use when

Single-node benchmarks on Docker, load generation on ECS, multi-node clusters on EKS.

Docker Compose on EC2Single-node benchmarks Amazon ECSLoad workers and S3 export Amazon EKSMulti-node clusters
Docker Compose on EC2Local NVMe, no orchestrator Amazon ECSDozens of containers in seconds Amazon EKSStatefulSets, storage, recovery
Docker Compose on EC2Lowest: Spot, no control plane Amazon ECSLow: pay for task runtime Amazon EKSHighest: $0.10/h control plane