Softwr

Databases · head to head

Amazon DocumentDB vs Amazon SNS

Amazon DocumentDB logo

Amazon DocumentDB

Databases

Managed MongoDB-compatible document database service on AWS

From
On request
Free plan
No
Amazon SNS logo

Amazon SNS

Databases

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

From
On request
Free plan
No

The short version

  • Amazon DocumentDB is a managed document database on AWS.
  • Only Amazon DocumentDB lists MongoDB driver and tool compatibility; only Amazon SNS lists topics and subscriptions.
  • Where Amazon DocumentDB falls short: runs only on AWS; it cannot run on premises or across cloud providers.
  • 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 DocumentDB and Amazon SNS differ?

Amazon DocumentDB and Amazon SNS differ on pricing model and platforms. Only the attributes on which Amazon DocumentDB and Amazon SNS actually diverge.

Attributes where Amazon DocumentDB and Amazon SNS differ
AttributeAmazon DocumentDBAmazon SNS
Pricing modelUsage-basedPer request and per delivery, by protocol
PlatformsWebWeb, iOS, Android, Linux

Identical on both: starting price (On request), free tier (No).

Not yet recorded: category for Amazon SNS.

Which features does each one have?

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

  • MongoDB driver and tool compatibility
  • Managed patching, backups and monitoring
  • Serverless capacity scaling
  • Elastic clusters
  • Global clusters across up to 10 AWS Regions
  • I/O-Optimized pricing configuration
  • CloudWatch, IAM and AWS Backup integration
  • Zero ETL to Amazon OpenSearch Service

Only in Amazon SNS

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

What is each one used for?

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

Amazon DocumentDB

  • Migrating MongoDB workloads to AWSnot Amazon SNS
  • Content and catalogue document storesnot Amazon SNS
  • Serverless document databases for variable loadnot Amazon SNS
  • Multi region read replicas for disaster recoverynot Amazon SNS

Amazon SNS

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

Where do Amazon DocumentDB and Amazon SNS fall short?

Amazon DocumentDB's most cited limit: runs only on AWS; it cannot run on premises or across cloud providers. Amazon SNS's: 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 DocumentDB

  • Runs only on AWS; it cannot run on premises or across cloud providers
  • Compatible with MongoDB rather than identical, with no time series collection support
  • Cost combines instance, storage, I/O and backup charges, which are harder to forecast
  • Free tier allowance lasts 30 days for new accounts and is excluded in some regions

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

How much do Amazon DocumentDB and Amazon SNS cost?

Amazon DocumentDB

On request

No published plan breakdown. See the Amazon DocumentDB review.

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

Which should you pick?

Choose Amazon DocumentDB if

  • You need mongodb driver and tool compatibility.
  • You also want managed patching, backups and monitoring.

Choose Amazon SNS if

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

Questions people ask

Is Amazon DocumentDB or Amazon SNS better?
It depends on the job. Amazon DocumentDB fits migrating MongoDB workloads to AWS; Amazon SNS fits fanning one order event out to billing, fulfilment and analytics queues. Amazon DocumentDB starts at On request and Amazon SNS at On request.
Which is cheaper, Amazon DocumentDB or Amazon SNS?
Amazon DocumentDB starts at On request and Amazon SNS at On request.
Does Amazon DocumentDB or Amazon SNS run on more platforms?
Amazon DocumentDB runs on Web. Amazon SNS runs on Web, iOS, Android, Linux.
What is Amazon DocumentDB best used for?
Amazon DocumentDB is most often used for migrating mongodb workloads to aws, content and catalogue document stores, serverless document databases for variable load, multi region read replicas for disaster recovery. Of those, migrating mongodb workloads to aws and content and catalogue document stores are not what Amazon SNS is typically brought in for.
What can Amazon DocumentDB do that Amazon SNS cannot?
Amazon DocumentDB covers MongoDB driver and tool compatibility, Managed patching, backups and monitoring, Serverless capacity scaling, Elastic clusters. Amazon SNS covers Topics and subscriptions, FIFO topics, Message filtering, Mobile push.

Answered from the vendors’ own pages

Amazon DocumentDB: Is DocumentDB the same as MongoDB?

No. It is MongoDB compatible: existing MongoDB drivers and tools work, but Wikipedia notes it supports MongoDB 3.6 and 4.0 with later partial 5.0 compliance and no time series collections.

Source
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.

Amazon DocumentDB: How is DocumentDB priced?

Pay as you go. Provisioned clusters are billed for instances per second, I/O, storage and backup storage, while serverless uses DocumentDB Capacity Units billed per second.

Source
Amazon SNS: Does SNS keep messages?

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

Amazon DocumentDB: Is there a free tier?

New AWS accounts get one month: 750 hours a month of db.t3.medium, 30 million I/Os, 5 GB storage and 5 GB backup. It is not available in AWS GovCloud (US) or China (Ningxia).

Source
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.

Amazon DocumentDB: Can it run outside AWS?

No. Wikipedia says it runs only on AWS and cannot span cloud providers or run on premises.

Source
Share

Related pages

Other head to heads