Softwr

Cloud · head to head

Amazon S3 vs MongoDB

Amazon S3 logo

Amazon S3

Cloud

Amazon Web Services' pay-as-you-go object storage service

From
On request
Free plan
No
MongoDB logo

MongoDB

Databases

The developer data platform

From
Free
Free plan
Yes

The short version

  • MongoDB is a general purpose, document-based, distributed database.
  • MongoDB starts at $9/mo; Amazon S3 prices on request.
  • Only Amazon S3 lists object storage in buckets; only MongoDB lists document model.
  • Where Amazon S3 falls short: billing depends on storage class, requests and transfer, so total cost is hard to predict.
  • Where MongoDB falls short: 16 MB maximum document size limits large single objects.

How do Amazon S3 and MongoDB differ?

Amazon S3 and MongoDB differ on starting price (On request against Free), free tier (No against Yes) and platforms (Web against Web, Self-hosted). Only the attributes on which Amazon S3 and MongoDB actually diverge.

Attributes where Amazon S3 and MongoDB differ
AttributeAmazon S3MongoDB
Starting priceOn requestFree
Free tierNoYes
PlatformsWebWeb, Self-hosted
CategoryCloudDatabases

Not yet recorded: pricing model for MongoDB, founded for Amazon S3.

Which features does each one have?

They share no listed features; 9 appear only for Amazon S3 and 20 only for MongoDB. 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 S3

  • Object storage in buckets
  • Multiple storage classes including Glacier
  • S3 Intelligent-Tiering
  • Versioning
  • Replication
  • Encryption by default
  • Static website hosting
  • Time-limited authenticated URLs

Only in MongoDB

  • Document model
  • Distributed architecture
  • ACID transactions
  • Real-time analytics
  • Full-text search
  • Time series data
  • Geospatial queries
  • Aggregation framework

What is each one used for?

Amazon S3 is most often brought in for data lake storage for analytics; MongoDB for mobile applications. The jobs each tool is most often brought in to do.

Amazon S3

  • Data lake storage for analyticsnot MongoDB
  • Application and mobile app file storagenot MongoDB
  • Long-term archives in Glacier classesnot MongoDB
  • Static website hostingnot MongoDB

MongoDB

  • Mobile applicationsnot Amazon S3
  • Content managementnot Amazon S3
  • Real-time analyticsnot Amazon S3
  • IoT applicationsnot Amazon S3
  • Gaming backendsnot Amazon S3

Where do Amazon S3 and MongoDB fall short?

Amazon S3's most cited limit: billing depends on storage class, requests and transfer, so total cost is hard to predict. MongoDB's: 16 MB maximum document size limits large single objects. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

Amazon S3

  • Billing depends on storage class, requests and transfer, so total cost is hard to predict
  • Outbound internet data transfer is charged beyond the first 100 GB per month
  • Objects larger than 5 GB need multipart upload because single uploads are capped at 5 GB
  • Versioning is disabled by default and must be switched on per bucket
  • Available only on AWS; moving data elsewhere means egress and re-integration work

MongoDB

  • 16 MB maximum document size limits large single objects
  • No native JOIN support for relational data operations
  • Higher memory usage due to storing field names with each document
  • Eventual consistency in distributed deployments can cause data stale reads

How much do Amazon S3 and MongoDB cost?

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

Amazon S3

On request

No published plan breakdown. See the Amazon S3 review.

MongoDB

Free
  • M0Free
    • 512 MB storage
    • Learning and exploration
  • M2$9/mo
    • 2 GB storage
    • Development and testing
  • M5$25/mo
    • 5 GB storage
  • M10+$56.94/mo
    • Dedicated clusters for production

Which should you pick?

Choose Amazon S3 if

  • You need object storage in buckets.
  • You also want multiple storage classes including glacier.

Choose MongoDB if

  • You need document model.
  • You want to start without paying.
  • You work on Web, Self-hosted.
  • You also want distributed architecture.

Questions people ask

Is Amazon S3 or MongoDB better?
It depends on the job. Amazon S3 fits data lake storage for analytics; MongoDB fits mobile applications. Amazon S3 starts at On request and MongoDB at Free.
Which is cheaper, Amazon S3 or MongoDB?
MongoDB has a free tier; the other does not. Paid plans start at On request for Amazon S3 and Free for MongoDB.
Does Amazon S3 or MongoDB run on more platforms?
Amazon S3 runs on Web. MongoDB runs on Web, Self-hosted.
Can I use MongoDB for free?
Yes. MongoDB has a free tier, so you can try it without paying. Amazon S3 starts at On request.
What is Amazon S3 best used for?
Amazon S3 is most often used for data lake storage for analytics, application and mobile app file storage, long-term archives in glacier classes, static website hosting. Of those, data lake storage for analytics and application and mobile app file storage are not what MongoDB is typically brought in for.
What can Amazon S3 do that MongoDB cannot?
Amazon S3 covers Object storage in buckets, Multiple storage classes including Glacier, S3 Intelligent-Tiering, Versioning. MongoDB covers Document model, Distributed architecture, ACID transactions, Real-time analytics.

Answered from the vendors’ own pages

Amazon S3: What is Amazon S3?

Amazon S3 is an object storage service from AWS, described as built to retrieve any amount of data from anywhere. It is used for data lakes, cloud-native applications and mobile apps.

Source
MongoDB: Does MongoDB offer a free tier?

Yes. MongoDB Atlas offers an M0 free tier with 512 MB storage for learning and exploration, plus paid options starting at $9/month for M2 with 2 GB storage.

Source
Amazon S3: How is S3 priced?

AWS says the cost depends on object size, storage duration and storage class, with no minimum charge. Inbound transfer from the internet is free, as are transfers between buckets in the same Region, and the first 100 GB per month out to the internet is free.

Source
MongoDB: Can I self-host MongoDB?

Yes. You can run MongoDB Community Edition on your own servers, or use MongoDB Enterprise Advanced for self-managed production deployments with enterprise features.

Source
Amazon S3: What is the maximum object size in S3?

Objects can be up to 5 TB. A single upload operation is capped at 5 GB, so larger objects use the multipart upload API.

Source
MongoDB: What is the maximum document size in MongoDB?

Documents are limited to 16 MB. For documents exceeding this limit, you can use MongoDB's GridFS API to store files larger than the maximum size.

Source
Amazon S3: Is S3 versioning on by default?

No. Versioning is available but disabled by default. Default bucket-level encryption was added in November 2017.

Source
MongoDB: Does MongoDB support ACID transactions?

Yes. MongoDB supports ACID transactions within a single document by default, and multi-document ACID transactions are available for replica sets and sharded clusters in MongoDB 4.0+.

Source
Share

Related pages

Other head to heads