Softwr

Databases · head to head

Amazon DocumentDB vs Amazon SQS

Amazon DocumentDB logo

Amazon DocumentDB

Databases

Managed MongoDB-compatible document database service on AWS

From
On request
Free plan
No
Amazon SQS logo

Amazon SQS

Databases

Fully managed message queues that decouple services, priced per request

From
On request
Free plan
No

The short version

  • Amazon DocumentDB is a managed document database on AWS; Amazon SQS is a managed message queue.
  • Only Amazon DocumentDB lists MongoDB driver and tool compatibility; only Amazon SQS lists standard queues.
  • Where Amazon DocumentDB falls short: runs only on AWS; it cannot run on premises or across cloud providers.
  • Where Amazon SQS falls short: messages are deleted once consumed, so you cannot replay history the way you can with a log such as Kinesis or Kafka.

How do Amazon DocumentDB and Amazon SQS differ?

Amazon DocumentDB and Amazon SQS differ on pricing model and platforms (Web against Web, Linux). Only the attributes on which Amazon DocumentDB and Amazon SQS actually diverge.

Attributes where Amazon DocumentDB and Amazon SQS differ
AttributeAmazon DocumentDBAmazon SQS
Pricing modelUsage-basedPer million requests
PlatformsWebWeb, Linux

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

Not yet recorded: category for Amazon SQS.

Which features does each one have?

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

  • Standard queues
  • FIFO queues
  • Dead-letter queues
  • Fair queues
  • Long polling
  • Server-side encryption

What is each one used for?

Amazon DocumentDB is most often brought in for migrating MongoDB workloads to AWS; Amazon SQS for buffering bursts of work so a slower downstream service is not overwhelmed. The jobs each tool is most often brought in to do.

Amazon DocumentDB

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

Amazon SQS

  • Buffering bursts of work so a slower downstream service is not overwhelmednot Amazon DocumentDB
  • Triggering Lambda functions from a queue with automatic retries and a dead-letter queuenot Amazon DocumentDB
  • Ordered processing of per-customer events using FIFO message groupsnot Amazon DocumentDB
  • Splitting a monolith into services that talk through durable messagesnot Amazon DocumentDB

Where do Amazon DocumentDB and Amazon SQS fall short?

Amazon DocumentDB's most cited limit: runs only on AWS; it cannot run on premises or across cloud providers. Amazon SQS's: messages are deleted once consumed, so you cannot replay history the way you can with a log such as Kinesis or Kafka. 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 SQS

  • Messages are deleted once consumed, so you cannot replay history the way you can with a log such as Kinesis or Kafka
  • Every API call is billed, including empty polls and deletes, so a badly configured short-polling consumer can cost more than the messages it handles
  • A single queue has one consumer group; delivering the same message to several systems requires an SNS topic fanning out to several queues
  • The maximum message size is small compared with data pipelines, so larger payloads must be stored in S3 and referenced
  • FIFO queues carry a higher rate and throughput limits that Standard queues do not have, which complicates scaling ordered workloads

How much do Amazon DocumentDB and Amazon SQS cost?

Amazon DocumentDB

On request

No published plan breakdown. See the Amazon DocumentDB review.

Amazon SQS

On request
  • Standard queueOn request
    • First 1 million requests per month free
    • $0.40 per million requests in the first volume tier
    • Lower rates at very high volumes
  • FIFO queueOn request
    • $0.50 per million requests in the first volume tier
    • Ordering and deduplication by message group
  • Fair queue add-onOn request
    • $0.10 per million fair queue requests, charged on top of Standard rates

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

  • You need standard queues.
  • You work on Web, Linux.
  • You also want fifo queues.

Questions people ask

Is Amazon DocumentDB or Amazon SQS better?
It depends on the job. Amazon DocumentDB fits migrating MongoDB workloads to AWS; Amazon SQS fits buffering bursts of work so a slower downstream service is not overwhelmed. Amazon DocumentDB starts at On request and Amazon SQS at On request.
Which is cheaper, Amazon DocumentDB or Amazon SQS?
Amazon DocumentDB starts at On request and Amazon SQS at On request.
Does Amazon DocumentDB or Amazon SQS run on more platforms?
Amazon DocumentDB runs on Web. Amazon SQS runs on Web, 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 SQS is typically brought in for.
What can Amazon DocumentDB do that Amazon SQS cannot?
Amazon DocumentDB covers MongoDB driver and tool compatibility, Managed patching, backups and monitoring, Serverless capacity scaling, Elastic clusters. Amazon SQS covers Standard queues, FIFO queues, Dead-letter queues, Fair queues.

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 SQS: Is SQS free?

The first 1 million requests each month are free across regions, per AWS. Beyond that you pay per million requests.

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 SQS: What is the difference between SQS and SNS?

SQS stores messages for a consumer to pull; SNS pushes one message to many subscribers. They are commonly combined.

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 SQS: Does SQS guarantee order?

Only FIFO queues do, within a message group. Standard queues deliver at least once and may reorder.

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