ADR 003: Neo4j 5 for graph data
Status: accepted
Context
The platform manages complex relationships between members, for which a graph database fits better than a relational one.
Decision
Neo4j 5 is the graph database of the platform.
- Fit. Specialized in graphs, with efficient queries and a data model suited to complex relationships.
- Support. Version 5 improves performance and support for cloud environments.
- Integration. Works with Quarkus and the other components.
Consequences
Benefits
- A better model for highly connected data.
- Faster queries across relationships.
- A mature and widely adopted database.
Costs
- A different data paradigm, which requires training.
- Data has to be kept consistent between Neo4j and the other databases.
- Calls to Neo4j over its REST interface are no longer possible.
Alternatives considered
- PostgreSQL with a graph extension. Keeps a single relational engine, with lower performance on complex graph queries. See the evaluation in Data stores.