Softwr

Developer Tools · head to head

Amazon Personalize vs AWS Serverless Application Model (AWS SAM)

Amazon Personalize logo

Amazon Personalize

Developer Tools

Managed recommendation engine trained on your interaction data

From
$0.05/GB
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 Personalize starts at $0.05/mo.
  • Only Amazon Personalize lists real-time events; only AWS Serverless Application Model (AWS SAM) lists SAM connectors for IAM permissions.
  • Where Amazon Personalize falls short: legacy campaigns charge a minimum throughput even with no traffic, so an idle campaign still bills.
  • Where AWS Serverless Application Model (AWS SAM) falls short: targets AWS only, so templates are not portable to other cloud providers.

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

Amazon Personalize and AWS Serverless Application Model (AWS SAM) differ on starting price ($0.05/GB against Free), pricing model and free tier (No against Yes). Only the attributes on which Amazon Personalize and AWS Serverless Application Model (AWS SAM) actually diverge.

Attributes where Amazon Personalize and AWS Serverless Application Model (AWS SAM) differ
AttributeAmazon PersonalizeAWS Serverless Application Model (AWS SAM)
Starting price$0.05/GBFree
Pricing modelPer GB ingested, per training interaction and per 1,000 recommendation requestsOpen-source
Free tierNoYes
PlatformsWebWindows, macOS, Linux

Not yet recorded: category for Amazon Personalize.

Which features does each one have?

They share no listed features; 6 appear only for Amazon Personalize 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 Personalize

  • Recipes
  • Real-time events
  • Batch recommendations
  • Filters and promotions
  • Cold-start handling
  • Content Generator

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 Personalize is most often brought in for product recommendations on an e-commerce home page and product page; 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 Personalize

  • Product recommendations on an e-commerce home page and product pagenot AWS Serverless Application Model (AWS SAM)
  • Personalised content rows for a video or article sitenot AWS Serverless Application Model (AWS SAM)
  • Batch recommendation lists for email and push campaignsnot AWS Serverless Application Model (AWS SAM)
  • Re-ranking search or category results by user tastenot AWS Serverless Application Model (AWS SAM)

AWS Serverless Application Model (AWS SAM)

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

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

Amazon Personalize's most cited limit: legacy campaigns charge a minimum throughput even with no traffic, so an idle campaign still bills. 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 Personalize

  • Inference is billed per request at $0.15 per 1,000 on v2 recipes, so a busy site with tens of millions of requests pays thousands of dollars a month
  • Legacy campaigns charge a minimum throughput even with no traffic, so an idle campaign still bills
  • Quality depends on enough clean interaction data, and small catalogues or new sites see weak results
  • The models are managed and opaque, with limited ability to inspect or tune ranking logic
  • It is AWS-only, so recommendation data and APIs lock the product into AWS infrastructure

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 Personalize and AWS Serverless Application Model (AWS SAM) cost?

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

Amazon Personalize

$0.05/GB
  • v2 recipes$0.05/gb
    • Data ingestion $0.05 per GB
    • Training $0.002 per 1,000 interactions ingested
    • Inference $0.15 per 1,000 recommendation requests, real-time or batch
  • Legacy recipes$0.24/hour
    • Training $0.24 per training hour
    • Real-time requests $0.0556 per 1,000 for the first 72 million, falling to $0.0139
    • Minimum 1 TPS charged on active campaigns even with no requests

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 Personalize if

  • You need recipes.
  • You also want real-time events.

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 Personalize or AWS Serverless Application Model (AWS SAM) better?
It depends on the job. Amazon Personalize fits product recommendations on an e-commerce home page and product page; AWS Serverless Application Model (AWS SAM) fits defining Lambda and API Gateway applications as code. Amazon Personalize starts at $0.05/GB and AWS Serverless Application Model (AWS SAM) at Free.
Which is cheaper, Amazon Personalize 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 $0.05/GB for Amazon Personalize and Free for AWS Serverless Application Model (AWS SAM).
Does Amazon Personalize or AWS Serverless Application Model (AWS SAM) run on more platforms?
Amazon Personalize 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 Personalize starts at $0.05/GB.
What is Amazon Personalize best used for?
Amazon Personalize is most often used for product recommendations on an e-commerce home page and product page, personalised content rows for a video or article site, batch recommendation lists for email and push campaigns, re-ranking search or category results by user taste. Of those, product recommendations on an e-commerce home page and product page and personalised content rows for a video or article site are not what AWS Serverless Application Model (AWS SAM) is typically brought in for.
What can Amazon Personalize do that AWS Serverless Application Model (AWS SAM) cannot?
Amazon Personalize covers Recipes, Real-time events, Batch recommendations, Filters and promotions. 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 Personalize: How much does Amazon Personalize cost?

For v2 recipes, $0.05 per GB ingested, $0.002 per 1,000 interactions for training and $0.15 per 1,000 recommendation requests, per the AWS pricing page.

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 Personalize: Are idle campaigns charged?

On legacy recipes, active real-time campaigns are charged a minimum of 1 TPS even with no requests.

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 Personalize: Can it handle new items?

Yes. It uses item metadata and exploration to recommend new items before interaction data builds up.

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