Softwr

Databases · head to head

Amazon SNS vs DynamoDB

Amazon SNS logo

Amazon SNS

Databases

Publish-subscribe messaging and mobile push, billed per request and per delivery

From
On request
Free plan
No
DynamoDB logo

DynamoDB

Databases

AWS-only managed key-value and document database with fixed per-partition throughput limits and no ad hoc queries.

From
Free
Free plan
Yes

The short version

  • DynamoDB starts at $0.625/mo; Amazon SNS prices on request.
  • Only Amazon SNS lists topics and subscriptions; only DynamoDB lists managed and serverless.
  • Where Amazon SNS falls short: SMS pricing varies by country and can be expensive on international traffic, so an unbounded alert integration can generate a large bill.

How do Amazon SNS and DynamoDB differ?

Amazon SNS and DynamoDB differ on starting price (On request against Free), pricing model and free tier (No against Yes). Only the attributes on which Amazon SNS and DynamoDB actually diverge.

Attributes where Amazon SNS and DynamoDB differ
AttributeAmazon SNSDynamoDB
Starting priceOn requestFree
Pricing modelPer request and per delivery, by protocolUsage-based
Free tierNoYes
PlatformsWeb, iOS, Android, LinuxAWS

Not yet recorded: category for Amazon SNS, founded for Amazon SNS.

Which features does each one have?

They share no listed features; 6 appear only for Amazon SNS and 10 only for DynamoDB. 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 SNS

  • Topics and subscriptions
  • FIFO topics
  • Message filtering
  • Mobile push
  • SMS and email
  • Message archiving and replay

Only in DynamoDB

  • Managed and serverless
  • Predictable latency
  • On-demand or provisioned capacity
  • Global secondary indexes
  • Transactions
  • DynamoDB Streams
  • Global tables
  • Point-in-time recovery

What is each one used for?

Amazon SNS is most often brought in for fanning one order event out to billing, fulfilment and analytics queues. The jobs each tool is most often brought in to do.

Amazon SNS

  • Fanning one order event out to billing, fulfilment and analytics queuesnot DynamoDB
  • Sending operational alerts from CloudWatch alarms to email and chat webhooksnot DynamoDB
  • Mobile push notifications for an app without running a push gatewaynot DynamoDB
  • Pairing with SQS FIFO for ordered event distribution across servicesnot DynamoDB

DynamoDB

  • High-volume keyed workloads such as sessions, shopping carts, device state or user profiles where the access pattern is fixed and knownnot Amazon SNS
  • Traffic that spikes unpredictably, where on-demand capacity absorbs a burst without a capacity-planning exercisenot Amazon SNS
  • Serverless applications on Lambda, where an HTTP-based datastore avoids the connection pooling problem relational databases havenot Amazon SNS
  • Event or telemetry ingestion where writes vastly outnumber reads and each record is retrieved by a known identifiernot Amazon SNS

Where do Amazon SNS and DynamoDB fall short?

Amazon SNS's most cited limit: payload-based filtering is charged per GB scanned per subscription, which adds cost at high volumes. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

Amazon SNS

  • SMS pricing varies by country and can be expensive on international traffic, so an unbounded alert integration can generate a large bill
  • There is no message persistence for slow subscribers beyond delivery retries, so consumers that fall behind can lose messages unless an SQS queue sits between
  • It lacks the audience management, templating and campaign analytics of a marketing platform, so it cannot replace a customer messaging tool
  • Payload-based filtering is charged per GB scanned per subscription, which adds cost at high volumes
  • Delivery to HTTP endpoints requires your endpoint to confirm subscriptions and cope with retries and duplicates

DynamoDB

  • Access patterns must be designed into the key schema before launch; a query nobody anticipated needs a new global secondary index, which is a full extra copy of the projected attributes billed as storage and as writes, or an offline migration
  • Global secondary indexes are eventually consistent and cannot be read strongly, so a read-after-write against an index can legitimately miss the item that was just written, and application code must be written to tolerate that
  • Per-partition throughput is capped at roughly 3,000 read and 1,000 write units, so a hot key throttles even when the table has spare capacity overall, and the only real fix is changing the key design to spread the load
  • Items are limited to 400 KB and query results paginate at 1 MB, so large or list-shaped data has to be split, offloaded to S3 with a pointer, or read through pagination loops that complicate every consumer
  • It runs only on AWS and the API is proprietary rather than a standard, so moving the data layer means rewriting it; ScyllaDB's Alternator is the only meaningfully compatible target and it brings a much smaller ecosystem

How much do Amazon SNS and DynamoDB cost?

DynamoDB has a free plan, with paid plans from $0.625/mo. Plan by plan below, from each vendor's own pricing page.

Amazon SNS

On request
  • Publishes and mobile pushOn request
    • First 1 million requests free, then $0.50 per million
    • Mobile push free for the first 1 million, then $0.50 per million
  • HTTP, HTTPS and emailOn request
    • HTTP and HTTPS: first 100,000 free, then $0.60 per million
    • Email: first 1,000 free, then $2.00 per 100,000
    • SQS and Lambda deliveries: no per-delivery charge
  • SMSOn request
    • Priced per message by destination country, see the SNS pricing page
    • Not covered by the free tier in most regions

DynamoDB

Free
  • On-Demand CapacityOn request
    • Pay-per-request pricing with automatic scaling
    • Read: 0.5 RRU per 4 KB (eventually consistent), 1 RRU per 4 KB (strongly consistent), 2 RRU per 4 KB (transactional)
    • Write: 1 WRU per 1 KB
  • Provisioned CapacityOn request
    • Fixed hourly charges based on reserved capacity
    • RCU rate: $0.00013 per hour (Standard)
    • WCU rate: $0.00065 per hour (Standard)
  • Standard Table Class Storage$0.25/per gb/month
    • $0.25 per GB/month after free tier
    • First 25 GB free per month (free tier)
  • Standard-Infrequent Access Table Class$0.1/per gb/month
    • $0.10 per GB/month

Which should you pick?

Choose Amazon SNS if

  • You need topics and subscriptions.
  • You work on Web, iOS, Android, Linux.
  • You also want fifo topics.

Choose DynamoDB if

  • You need managed and serverless.
  • You want to start without paying.
  • You work on AWS.
  • You also want predictable latency.

Questions people ask

Is Amazon SNS or DynamoDB better?
It depends on the job. Amazon SNS fits fanning one order event out to billing, fulfilment and analytics queues; DynamoDB fits high-volume keyed workloads such as sessions, shopping carts, device state or user profiles where the access pattern is fixed and known. Amazon SNS starts at On request and DynamoDB at Free.
Which is cheaper, Amazon SNS or DynamoDB?
DynamoDB has a free tier; the other does not. Paid plans start at On request for Amazon SNS and Free for DynamoDB.
Does Amazon SNS or DynamoDB run on more platforms?
Amazon SNS runs on Web, iOS, Android, Linux. DynamoDB runs on AWS.
Can I use DynamoDB for free?
Yes. DynamoDB has a free tier, so you can try it without paying. Amazon SNS starts at On request.
What is Amazon SNS best used for?
Amazon SNS is most often used for fanning one order event out to billing, fulfilment and analytics queues, sending operational alerts from cloudwatch alarms to email and chat webhooks, mobile push notifications for an app without running a push gateway, pairing with sqs fifo for ordered event distribution across services. Of those, fanning one order event out to billing, fulfilment and analytics queues and sending operational alerts from cloudwatch alarms to email and chat webhooks are not what DynamoDB is typically brought in for.
What can Amazon SNS do that DynamoDB cannot?
Amazon SNS covers Topics and subscriptions, FIFO topics, Message filtering, Mobile push. DynamoDB covers Managed and serverless, Predictable latency, On-demand or provisioned capacity, Global secondary indexes.

Answered from the vendors’ own pages

Amazon SNS: Is Amazon SNS free?

The first 1 million requests per month are free, plus small free allowances for HTTP and email deliveries, per AWS. SMS is not free.

DynamoDB: On-demand or provisioned capacity?

On-demand suits unpredictable or spiky traffic and removes capacity planning. Provisioned with autoscaling is considerably cheaper for steady high-volume workloads. Tables can be switched between them, though not arbitrarily often.

Amazon SNS: Does SNS keep messages?

Standard topics do not store messages for slow subscribers; durability comes from subscribing an SQS queue.

DynamoDB: Can I run DynamoDB outside AWS?

No. DynamoDB Local exists for development and testing only. For a production-compatible alternative elsewhere, ScyllaDB's Alternator implements the DynamoDB API, but it is a different system with a different ecosystem.

Amazon SNS: Can I send email with SNS?

Yes, for alerts, but it is plain notification email. Amazon SES is the service for transactional and bulk email.

DynamoDB: Can I run ad hoc queries or analytics?

Not on the table itself. Scans are slow and expensive at scale. The usual pattern is to export to S3 or stream changes out and query them in Athena, Redshift or another analytical engine.

DynamoDB: Is single-table design necessary?

It is the pattern that gets the most from DynamoDB when access patterns are well known, because it lets related items be retrieved in one query. It also makes the model harder to evolve, so many teams reasonably choose multiple simpler tables and accept extra requests.

DynamoDB: What are the real limits I should design around?

400 KB per item, 1 MB per query or scan page, 100 items per transaction, roughly 3,000 read and 1,000 write units per partition, and eventual consistency on global secondary indexes.

Share

Related pages

Other head to heads