Multi-Database Support in Neo4j Aura: What You Need to Know

Zusammenfassung

This discussion on the Neo4j server addresses the challenges of implementing multi-tenant architecture within Aura DB. It explores the limitations of using property-based tenant isolation and clarifies the current development status of multi-database support in the Aura platform. The community provides insights into potential workarounds and architectural strategies for developers managing multi-tenant SaaS applications.

zestylizard-41 OP

Hello
My team just started using neo4j for our sass product, specifically aura db professional.
We currently support multi-tenant architecture by introducing a "tenant" field on most nodes.
This is... less than ideal as it poses a security risk, complicates indexes, makes it difficult to have an llm write cypher queries (hoping it doesn't forget to add the tenant clause or risk leaking data), amongst other things
Obviously standing up a new database for each tenant is major brain damage: provisioning it possibly could be automated, but keeping them all in sync, running migrations and schema/index commands across everything and keeping it in sync

I understand that neo4j has a "multi-database" option that may be exactly what I'm looking for, but it doesn't seem to be supported in aura yet.

Can you point me to any specific information regarding multi-database, how it works exactly, if it seems to be a fit for my use case?

I am interested in having each tenant have their own "database", but not having all the operational overhead of managing unique databases (at least as far as what aura db considers a "database"). Potentially it would be nice to somehow have tenant-specific indexes that exist on one instance of a multi-database solution, but maybe that's not possible.

Thanks for any help/pointers

@zestylizard-41 Hello My team just started using neo4j for our sass product, specifically aura db professional. We…
CommunityOne
sharpcactus-66

Hi 👋

Multi-db support in Aura is currently being worked on. I can't give you a timeline unfortunately as I'm not involved in that work myself at all.

Generally speaking, using databases for separating multi-tenant data is a valid strategy. But as you noticed, currently not available in Aura. You can either use a workaround (labels or properties) or migrate to an on-prem enterprise edition license, which does support this feature. Maybe there are other strategies that can work on Aura that I'm not aware of.

Das Neueste von Neo4j