Softwr

Databases · head to head

Amazon Neptune vs AWS Serverless Application Model (AWS SAM)

Amazon Neptune logo

Amazon Neptune

Databases

Managed graph database on AWS for property graph and RDF data

From
On request
Free plan
No
AWS Serverless Application Model (AWS SAM) logo

AWS Serverless Application Model (AWS SAM)

Developer Tools

Open-source framework and CLI for building serverless apps on AWS

From
Free
Free plan
Yes

The short version

  • AWS Serverless Application Model (AWS SAM) is free; Amazon Neptune starts at $0.348/mo.
  • Only Amazon Neptune lists gremlin, openCypher and SPARQL; only AWS Serverless Application Model (AWS SAM) lists SAM connectors for IAM permissions.
  • Where Amazon Neptune falls short: available only on AWS, with no on-premises edition.
  • Where AWS Serverless Application Model (AWS SAM) falls short: targets AWS only, so templates are not portable to other cloud providers.

How do Amazon Neptune and AWS Serverless Application Model (AWS SAM) differ?

Amazon Neptune and AWS Serverless Application Model (AWS SAM) differ on starting price (On request against Free), pricing model (Usage-based against Open-source) and free tier (No against Yes). Only the attributes on which Amazon Neptune and AWS Serverless Application Model (AWS SAM) actually diverge.

Attributes where Amazon Neptune and AWS Serverless Application Model (AWS SAM) differ
AttributeAmazon NeptuneAWS Serverless Application Model (AWS SAM)
Starting priceOn requestFree
Pricing modelUsage-basedOpen-source
Free tierNoYes
PlatformsWebWindows, macOS, Linux
CategoryDatabasesDeveloper Tools

Which features does each one have?

They share no listed features; 7 appear only for Amazon Neptune and 7 only for AWS Serverless Application Model (AWS SAM). Drawn from each product's published feature list. An absence here means we hold no record of it - not that the product lacks it.

Only in Amazon Neptune

  • Property graph and RDF support
  • Gremlin, openCypher and SPARQL
  • Serverless scaling in NCUs
  • Neptune Analytics with graph algorithms and vector search
  • Read replicas and cross-Region replication
  • Point-in-time recovery
  • GraphRAG with Amazon Bedrock

Only in AWS Serverless Application Model (AWS SAM)

  • SAM template shorthand for CloudFormation
  • SAM CLI project scaffolding with sam init
  • Local testing of Lambda functions and API endpoints
  • sam sync for syncing local changes to the cloud
  • SAM connectors for IAM permissions
  • Terraform project debugging support
  • CI/CD pipeline support

What is each one used for?

Amazon Neptune is most often brought in for knowledge graphs; AWS Serverless Application Model (AWS SAM) for defining Lambda and API Gateway applications as code. The jobs each tool is most often brought in to do.

Amazon Neptune

  • Knowledge graphsnot AWS Serverless Application Model (AWS SAM)
  • Fraud detectionnot AWS Serverless Application Model (AWS SAM)
  • Customer 360 profilesnot AWS Serverless Application Model (AWS SAM)
  • Security asset graphsnot AWS Serverless Application Model (AWS SAM)

AWS Serverless Application Model (AWS SAM)

  • Defining Lambda and API Gateway applications as codenot Amazon Neptune
  • Testing Lambda functions locally before deploymentnot Amazon Neptune
  • Building CI/CD pipelines for serverless appsnot Amazon Neptune
  • Converting console-created resources into templatesnot Amazon Neptune

Where do Amazon Neptune and AWS Serverless Application Model (AWS SAM) fall short?

Amazon Neptune's most cited limit: available only on AWS, with no on-premises edition. AWS Serverless Application Model (AWS SAM)'s: targets AWS only, so templates are not portable to other cloud providers. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

Amazon Neptune

  • Available only on AWS, with no on-premises edition
  • Pricing combines instance, storage, I/O and data transfer charges
  • Free tier lasts only 30 days from the first cluster
  • Regional prices differ from the US East examples shown

AWS Serverless Application Model (AWS SAM)

  • Targets AWS only, so templates are not portable to other cloud providers
  • Local testing of functions depends on Docker being installed and running
  • Requires an AWS account, the AWS CLI and configured credentials before first use
  • Declarative templates, so complex logic needs CloudFormation or the AWS CDK instead
  • Does not cover non-serverless infrastructure on its own, which falls back to CloudFormation

How much do Amazon Neptune and AWS Serverless Application Model (AWS SAM) cost?

Amazon Neptune starts at $0.348/mo; AWS Serverless Application Model (AWS SAM) is free to use. Plan by plan below, from each vendor's own pricing page.

Amazon Neptune

On request
  • db.r5.large on-demand, US East Standard$0.348/hour

AWS Serverless Application Model (AWS SAM)

Free

No published plan breakdown. See the AWS Serverless Application Model (AWS SAM) review.

Which should you pick?

Choose Amazon Neptune if

  • You need property graph and rdf support.
  • You also want gremlin, opencypher and sparql.

Choose AWS Serverless Application Model (AWS SAM) if

  • You need sam template shorthand for cloudformation.
  • You want to start without paying.
  • You work on Windows, macOS, Linux.
  • You also want sam cli project scaffolding with sam init.

Questions people ask

Is Amazon Neptune or AWS Serverless Application Model (AWS SAM) better?
It depends on the job. Amazon Neptune fits knowledge graphs; AWS Serverless Application Model (AWS SAM) fits defining Lambda and API Gateway applications as code. Amazon Neptune starts at On request and AWS Serverless Application Model (AWS SAM) at Free.
Which is cheaper, Amazon Neptune or AWS Serverless Application Model (AWS SAM)?
AWS Serverless Application Model (AWS SAM) has a free tier; the other does not. Paid plans start at On request for Amazon Neptune and Free for AWS Serverless Application Model (AWS SAM).
Does Amazon Neptune or AWS Serverless Application Model (AWS SAM) run on more platforms?
Amazon Neptune runs on Web. AWS Serverless Application Model (AWS SAM) runs on Windows, macOS, Linux.
Can I use AWS Serverless Application Model (AWS SAM) for free?
Yes. AWS Serverless Application Model (AWS SAM) has a free tier, so you can try it without paying. Amazon Neptune starts at On request.
What is Amazon Neptune best used for?
Amazon Neptune is most often used for knowledge graphs, fraud detection, customer 360 profiles, security asset graphs. Of those, knowledge graphs and fraud detection are not what AWS Serverless Application Model (AWS SAM) is typically brought in for.
What can Amazon Neptune do that AWS Serverless Application Model (AWS SAM) cannot?
Amazon Neptune covers Property graph and RDF support, Gremlin, openCypher and SPARQL, Serverless scaling in NCUs, Neptune Analytics with graph algorithms and vector search. AWS Serverless Application Model (AWS SAM) covers SAM template shorthand for CloudFormation, SAM CLI project scaffolding with sam init, Local testing of Lambda functions and API endpoints, sam sync for syncing local changes to the cloud.

Answered from the vendors’ own pages

Amazon Neptune: Which query languages does Neptune support?

Wikipedia says Gremlin, openCypher and SPARQL, usable on the same instance.

Source
AWS Serverless Application Model (AWS SAM): What is AWS SAM?

AWS SAM is an open-source framework for building serverless applications with infrastructure as code. It consists of a template syntax that extends CloudFormation and a command-line tool.

Source
Amazon Neptune: How is Neptune priced?

Usage based with no upfront commitment. An example is 0.348 dollars an hour for db.r5.large in US East on Standard, plus storage and I/O.

Source
AWS Serverless Application Model (AWS SAM): Which operating systems does the SAM CLI support?

AWS publishes installers for Linux on x86_64 and arm64, macOS on Intel and Apple silicon, and a 64-bit Windows MSI. macOS versions older than 13.x are not supported.

Source
Amazon Neptune: Is there a free tier?

Yes, for 30 days from the first cluster: 750 hours of db.t3.medium or db.t4g.medium, 10 million I/Os and 1 GB storage.

Source
AWS Serverless Application Model (AWS SAM): What licence does AWS SAM use?

The serverless-application-model repository on GitHub is licensed under Apache-2.0.

Source
AWS Serverless Application Model (AWS SAM): How does SAM differ from the AWS CDK?

The documentation says to use SAM instead of the CDK if you prefer a declarative approach to describing infrastructure rather than a programmatic one. The two can also be combined, using the SAM CLI's local testing with CDK applications.

Source
Share

Related pages

Other head to heads