Architecture

This page explains how the components of Neo4j Enterprise Studio relate to each other and how network traffic flows between them.

Components

Neo4j Enterprise Studio consists of three components:

  • Frontend: the browser-based user interface.

  • Server (backend): handles tool asset operations, access control, and forwards database queries in default mode.

  • Asset storage: a Neo4j database that stores tool assets (queries, dashboards, Perspectives) and sharing metadata.

deployment bar
Figure 1. Deployment bar

Asset storage

The asset storage database holds all tool assets across all connected deployments. Use a separate database for the asset storage, not the database that holds your business data. This avoids accidental interference, simplifies backups, and keeps concerns cleanly separated.

The separate database does not need its own DBMS. You can create it with multi-database in an existing DBMS, next to your regular databases. This is the recommended setup for most installations, because the tool assets are small and generate little load.

Use an existing DBMS or cluster when:

  • You already operate it with backups and the availability you need for Enterprise Studio.

  • You can grant the Enterprise Studio service account the required privileges on it; see Prerequisites → Create a service account.

Use a dedicated instance or cluster when:

  • Your security policy does not allow the service account on the DBMS that holds business data.

  • You want to isolate Enterprise Studio from the maintenance windows and workload of that DBMS.

  • Enterprise Studio serves several deployments and you want the asset storage to be independent of any one of them.

How the components interact

The frontend loads in the user’s browser and communicates with the Enterprise Studio server for all tool-related operations, such as saving queries and sharing dashboards. Each request includes the user’s Neo4j credentials, which the server validates before granting access. The server connects to the asset storage database using a dedicated service account.

For running Cypher® queries against a Neo4j deployment, the connection mode of that deployment determines the path.

Connection modes

Each Neo4j deployment is configured with one of two connection modes:

  • Default mode: the browser sends queries to the Enterprise Studio server, which forwards them to Neo4j through the Query API over HTTP(S).

  • Direct mode: the browser connects to Neo4j directly over Bolt.

Default mode Direct mode

Browser connects to

Enterprise Studio only

Enterprise Studio and Neo4j

Protocol for queries

Query API over HTTP(S), port 7474 / 7473

Bolt, port 7687

Neo4j cluster

Requires session affinity on the HTTP endpoints

No additional setup

Configuration

uri with http or https scheme

uri with a Bolt scheme and directClientQuery.enabled: true

Default mode

The server is the only component that talks to Neo4j on behalf of the browser. The deployment only needs to be reachable from the server.

architecture default mode
Figure 2. Components and connections in default mode

For Neo4j clusters, default mode requires session affinity in front of the cluster; see Prerequisites → Set up communication to a Neo4j cluster.

Direct mode

The browser runs queries against Neo4j directly, using the publicUri. The Enterprise Studio server handles the interface, tool assets, and access control, but does not carry the queries. The deployment must be reachable from the browser. publicUri and uri can be the same address, or different when the server uses an internal address.

architecture direct mode
Figure 3. Components and connections in direct mode

Scalability and high availability

Enterprise Studio is a stateless application. The server does not store session data, caches, or in-memory state between requests. Every request is independently authenticated against Neo4j.

This design has two important consequences:

  • Horizontal scaling: you can run multiple Enterprise Studio instances behind a load balancer (or as Kubernetes replicas) with no coordination between them. All instances connect to the same asset storage database.

  • High availability: if one instance fails, the load balancer routes traffic to the remaining instances. There is no leader election, no cluster membership, and no state to replicate.

One limit is not shared across instances: generativeAi.chatCompletionProvider.default.settings.maxConcurrentRequests is enforced per instance, so the concurrency your LLM provider sees is that value multiplied by the replica count. Size it against your provider’s rate limit and your replica count together.

Explicit transactions proxied to a Neo4j cluster are stateful on the Neo4j side and require session affinity in front of the cluster. See Prerequisites → Set up communication to a Neo4j cluster.

Resource sizing

Enterprise Studio is a lightweight stateless proxy: it holds no session data, caches, or query results between requests. Pick a tier based on the expected number of concurrent users (users with Enterprise Studio open and actively making requests, not total named users).

Tier Concurrent users CPU / memory Example VM (AWS / Azure / GCP)

S

up to ~5

1 vCPU / 1 GiB

t3.micro, B1s, e2-micro

M

up to ~25

2 vCPU / 2 GiB

t3.small, B2s, e2-small

L

100+

2 vCPU / 4 GiB

t3.medium, B2ms, e2-medium

Network paths

The following connections must be reachable from the machine running Enterprise Studio:

Destination Port Used for

Asset storage Neo4j

7687

Bolt (neo4j+s://) — tool asset operations

User-facing Neo4j deployments

7473 or 7687

HTTPS (default mode) or Bolt (direct mode)

LLM provider endpoint

443, or as configured in upstream.url

OpenAI-compatible chat completions, when generative AI is enabled

When directClientQuery.enabled is true, end-user browsers also need direct access to Neo4j on port 7687.

The LLM provider connection is outbound from the server only; browsers never contact the provider. Air-gapped deployments either leave generative AI disabled (the default) or point upstream.url at a gateway or self-hosted model inside the network.

For TLS configuration between Enterprise Studio and Neo4j, see Security → Neo4j backend connections.

Multi-tenancy

A single Enterprise Studio instance can serve multiple teams. Each deployment has its own authorization.roleMapping, so users can only access deployments they can authenticate to.

For full data isolation between teams, deploy separate Enterprise Studio instances with distinct asset storage databases.