Choosing a graph type: provisioned graphs and Neptune Graph Sessions
Neptune Analytics offers two graph types that run the same Neptune Analytics engine, with the same capabilities and tools. The
types differ in how compute is managed and billed, so each type suits a different workload shape. You
choose the type with the computeConfiguration parameter when you create a graph.
-
Provisioned graphs use dedicated compute that stays available until you stop or delete the graph. Provisioned graphs fit steady workloads that run all day or all month, need large memory, or need predictable latency on every query.
-
Neptune Graph Sessions run compute only while a session is working. A session is created in about 30 seconds, stops automatically after 15 minutes with no traffic, and resumes in under 20 seconds when a query arrives. Graph data, vector indexes, and configuration are retained while a session is stopped, so you never reload data. Graph sessions fit intermittent and unpredictable usage, because you pay for compute only while the session runs.
Which workloads fit a provisioned graph?
Steady workloads: Sustained analytics pipelines and always-on dashboards that query the graph all day or all month.
Latency-sensitive applications: Applications that can't wait for compute to start before the first query.
Large graphs: Graphs that need more memory than the largest session starting size provides.
Which workloads fit Neptune Graph Sessions?
Agentic workloads: Give each agent, conversation, or knowledge scope its own graph. Whatever the usage pattern, minutes per day or a few days a week, you pay for compute only while agents are doing work.
Per-tenant graphs: Run one isolated graph per tenant, customer, or user. Stopped sessions have no compute charge, so mostly idle tenant graphs incur only storage charges while they are stopped.
Ephemeral analytics with graph over data lakes: Create a session, load data from Amazon S3, run the analysis, and then stop or delete the session. For an open-source Python library that supports graph over data lakes, see nx-neptune
on GitHub. Variable and unpredictable workloads: Pay for compute only while the session is working, without sizing compute for peak demand.
Development and testing: Create a session, experiment, and delete it, or let it stop automatically between test runs.
How do I choose a graph type?
Choose a provisioned graph when your graph runs most of the day or month, needs more memory than the largest session starting size provides, or needs predictable latency on every query.
Choose a graph session when usage is intermittent or unpredictable, you run many small graphs, or you create a graph for a single analysis and then remove it.
Graph sessions aren't always the lower-cost choice. A session that runs nearly all the time can cost more than a small provisioned graph. For steady workloads, use a provisioned graph.
How do the graph types compare?
| Provisioned graph | Graph session | |
|---|---|---|
|
|
|
Capacity |
16 m-NCUs and up, set when you create or update the graph. |
A starting size of 4 or 8 s-NCU, chosen when you create the session. You can change
the starting size with |
Burstable compute |
Not applicable. Capacity stays at the size that you set. |
Memory grows above the starting size when your workload needs it. CPU bursts to about twice the starting vCPU (1 to 2 vCPU for 4 s-NCU, 2 to 4 vCPU for 8 s-NCU) at no extra charge. At the burst limit, the session is throttled. |
Billing dimensions |
Compute in m-NCU-hours, based on the size that you set. |
Compute in s-NCU-hours, per second, only while the session is running. Compute follows the memory used and is never below the starting size. Storage per GB-month of retained graph data, with a 1 GB minimum, while the session is running or stopped. Database Savings Plans apply, with a 30% discount. |
Idle behavior |
Runs until you stop or delete the graph. Compute is billed continuously while the graph runs. |
Stops automatically after 15 minutes with no traffic. A stopped session has no compute charge; you pay only for storage. |
Starting after a stop |
Manual restart. |
Resumes in under 20 seconds after it receives a query, or on a start call, with graph state retained. |
Replicas |
Supported. |
Not supported. Replicas aren't needed for availability, because a session starts again automatically. |
Bulk loading data |
Batch load, import tasks, and |
Use batch load to load data into the session. |
Export tasks |
Supported. |
Support coming soon. |
CloudFormation |
Supported. |
Support coming soon. |
Best for |
Steady workloads that run all day or all month, large graphs, and predictable latency. |
Intermittent and unpredictable usage, including agentic workloads, per-tenant graphs, and ephemeral analytics. |
How are graph sessions billed?
Neptune Graph Sessions bill compute in s-NCU-hours, per second, only while a session is running. Compute follows
the memory that the session uses and is never below its starting size. Storage is billed per GB-month for
retained graph data. A stopped session has no compute charge. For details, see
How are graph sessions billed?. For current prices, see
Neptune Analytics pricing
For how graph sessions work, see How Neptune Graph Sessions work. For how sessions stop and start, see Automatic stop and start for Neptune Graph Sessions. For session quotas and Regions, see Limits for Neptune Analytics.
Neptune Graph Sessions is a feature of Neptune Analytics. The feature is distinct from Neptune Serverless, an autoscaling configuration for Neptune Database, the transactional graph database. If you need low-latency transactional queries under sustained concurrent load, use Neptune Database.