Softwr

Developer Tools · head to head

AWS Serverless Application Model (AWS SAM) vs turbopuffer

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
turbopuffer logo

turbopuffer

Databases

Closed-source vector and full-text search service built directly on object storage, with cold queries measured in seconds rather than milliseconds.

From
$16/month
Free plan
No

The short version

  • AWS Serverless Application Model (AWS SAM) is free; turbopuffer starts at $16/mo.
  • Only AWS Serverless Application Model (AWS SAM) lists SAM connectors for IAM permissions; only turbopuffer lists object storage architecture.
  • Where AWS Serverless Application Model (AWS SAM) falls short: targets AWS only, so templates are not portable to other cloud providers.

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

AWS Serverless Application Model (AWS SAM) and turbopuffer differ on starting price (Free against $16/month), pricing model (Open-source against Subscription) and free tier (Yes against No). Only the attributes on which AWS Serverless Application Model (AWS SAM) and turbopuffer actually diverge.

Attributes where AWS Serverless Application Model (AWS SAM) and turbopuffer differ
AttributeAWS Serverless Application Model (AWS SAM)turbopuffer
Starting priceFree$16/month
Pricing modelOpen-sourceSubscription
Free tierYesNo
PlatformsWindows, macOS, LinuxWeb
CategoryDeveloper ToolsDatabases

Which features does each one have?

They share no listed features; 7 appear only for AWS Serverless Application Model (AWS SAM) and 10 only for turbopuffer. 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 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

Only in turbopuffer

  • Object storage architecture
  • Namespaces
  • Vector search
  • Full-text search
  • Attribute filtering
  • Documented limits
  • Configurable consistency
  • Durable writes

What is each one used for?

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

AWS Serverless Application Model (AWS SAM)

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

turbopuffer

  • A product with one search index per customer and thousands of customers, most of whose data is idle on any given daynot AWS Serverless Application Model (AWS SAM)
  • Very large corpora where holding every vector in memory is the dominant cost and occasional cold-query latency is acceptablenot AWS Serverless Application Model (AWS SAM)
  • Hybrid retrieval combining BM25 and vector search where running and synchronising two separate systems is the problem being solvednot AWS Serverless Application Model (AWS SAM)
  • Retrieval for agent and assistant products where indexes are created and destroyed frequently and per-index overhead must be near zeronot AWS Serverless Application Model (AWS SAM)

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

AWS Serverless Application Model (AWS SAM)'s most cited limit: 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.

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

turbopuffer

  • A cold namespace pays object storage latency on the first query, with a documented p90 around 1,214 ms on a million documents, so any interactive search box needs the data kept warm or the user waits about a second
  • Queries are eventually consistent by default, and after roughly 128 MiB of outstanding writes new data is invisible until indexed, which the vendor puts at tens of seconds for small namespaces and tens of minutes for large ones, so a bulk re-index is not immediately queryable
  • It is closed source with no community edition, so single-tenant or bring-your-own-cloud deployment is a commercial negotiation rather than a deployment choice, and there is no path to running it yourself if the relationship ends
  • Per-namespace ceilings, roughly 10,000 writes per second, 32 MB/s and 500 million documents per shard, mean a single enormous index has to be sharded across namespaces by your application rather than by the service
  • It is a search engine, not a database: there are no joins, no cross-document transactions and no SQL, so it sits beside a primary datastore and keeping the two in step is work that belongs to you

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

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

AWS Serverless Application Model (AWS SAM)

Free

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

turbopuffer

$16/month
  • Launch$16/mo
    • All database features
    • Multi-tenancy deployment
    • SOC2 & GDPR-ready DPA
  • Scale$256/mo
    • Everything in Launch
    • HIPAA-ready BAA
    • Single Sign-On (SSO)
  • Enterprise$4,096/mo
    • Everything in Scale
    • Single-tenancy & BYOC deployment options
    • Private networking

Which should you pick?

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.

Choose turbopuffer if

  • You need object storage architecture.
  • You also want namespaces.

Questions people ask

Is AWS Serverless Application Model (AWS SAM) or turbopuffer better?
It depends on the job. AWS Serverless Application Model (AWS SAM) fits defining Lambda and API Gateway applications as code; turbopuffer fits a product with one search index per customer and thousands of customers, most of whose data is idle on any given day. AWS Serverless Application Model (AWS SAM) starts at Free and turbopuffer at $16/month.
Which is cheaper, AWS Serverless Application Model (AWS SAM) or turbopuffer?
AWS Serverless Application Model (AWS SAM) has a free tier; the other does not. Paid plans start at Free for AWS Serverless Application Model (AWS SAM) and $16/month for turbopuffer.
Does AWS Serverless Application Model (AWS SAM) or turbopuffer run on more platforms?
AWS Serverless Application Model (AWS SAM) runs on Windows, macOS, Linux. turbopuffer runs on Web.
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. turbopuffer starts at $16/month.
What is AWS Serverless Application Model (AWS SAM) best used for?
AWS Serverless Application Model (AWS SAM) is most often used for defining lambda and api gateway applications as code, testing lambda functions locally before deployment, building ci/cd pipelines for serverless apps, converting console-created resources into templates. Of those, defining lambda and api gateway applications as code and testing lambda functions locally before deployment are not what turbopuffer is typically brought in for.
What can AWS Serverless Application Model (AWS SAM) do that turbopuffer cannot?
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. turbopuffer covers Object storage architecture, Namespaces, Vector search, Full-text search.

Answered from the vendors’ own pages

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
turbopuffer: Can I self-host turbopuffer?

There is no open source or community edition. Single-tenant and bring-your-own-cloud deployments exist as commercial arrangements, but there is no way to run it independently of the vendor.

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
turbopuffer: How fast is it really?

Warm queries perform comparably to in-memory search engines. Cold queries, where data is not cached, have a documented p90 around 1,214 ms on a million documents. Write p90 is around 248 ms for a 512 KB upsert because writes go straight to object storage.

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
turbopuffer: Is it consistent?

Eventually consistent by default, with the vendor reporting that over 99.8% of queries return consistent data. Strong consistency can be requested per query at a latency cost. Large write bursts have a longer visibility delay while indexing catches up.

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
turbopuffer: What is it best at?

Large numbers of namespaces where most are idle. The architecture makes cold data cheap to keep, which is exactly the shape of a multi-tenant product with a long tail of inactive customers.

turbopuffer: What are the hard limits?

Up to 128 billion documents and 256 TB per namespace, 500 million documents per shard, 64 MiB per document, 10,752 dense vector dimensions, roughly 10,000 writes per second per namespace and a maximum result set of 10,000.

Share

Related pages

Other head to heads