Softwr

Databases · head to head

Amazon DocumentDB vs Swift

Amazon DocumentDB logo

Amazon DocumentDB

Databases

Managed MongoDB-compatible document database service on AWS

From
On request
Free plan
No
Swift logo

Swift

Mobile Development

Open source programming language from Apple for apps, servers and embedded systems

From
Free
Free plan
Yes

The short version

  • Amazon DocumentDB is a managed document database on AWS.
  • Swift is free; Amazon DocumentDB prices on request.
  • Only Amazon DocumentDB lists MongoDB driver and tool compatibility; only Swift lists native compiled code.
  • Where Amazon DocumentDB falls short: runs only on AWS; it cannot run on premises or across cloud providers.
  • Where Swift falls short: strongest tooling is on Apple platforms, with Xcode for iOS and macOS apps.

How do Amazon DocumentDB and Swift differ?

Amazon DocumentDB and Swift differ on starting price (On request against Free), pricing model (Usage-based against Open-source) and free tier (No against Yes). Only the attributes on which Amazon DocumentDB and Swift actually diverge.

Attributes where Amazon DocumentDB and Swift differ
AttributeAmazon DocumentDBSwift
Starting priceOn requestFree
Pricing modelUsage-basedOpen-source
Free tierNoYes
PlatformsWebmacOS, Linux, Windows, iOS
CategoryDatabasesMobile Development

Which features does each one have?

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

  • Native compiled code
  • Type inference and optionals
  • Memory and data race safety checks
  • async and await with actors
  • C and C++ interoperability
  • Package ecosystem
  • Linux, macOS and Windows toolchains
  • Embedded and server targets

What is each one used for?

Amazon DocumentDB is most often brought in for migrating MongoDB workloads to AWS; Swift for iOS and macOS apps. The jobs each tool is most often brought in to do.

Amazon DocumentDB

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

Swift

  • iOS and macOS appsnot Amazon DocumentDB
  • Server-side servicesnot Amazon DocumentDB
  • Command-line toolsnot Amazon DocumentDB
  • Embedded firmwarenot Amazon DocumentDB

Where do Amazon DocumentDB and Swift fall short?

Amazon DocumentDB's most cited limit: runs only on AWS; it cannot run on premises or across cloud providers. Swift's: strongest tooling is on Apple platforms, with Xcode for iOS and macOS apps. 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

Swift

  • Strongest tooling is on Apple platforms, with Xcode for iOS and macOS apps
  • It is a language, so UI, server and database libraries are separate choices
  • Versions 1.0 to 2.1 were proprietary and later versions are Apache 2.0
  • Cross-platform mobile UI needs other frameworks such as Flutter or React Native

How much do Amazon DocumentDB and Swift cost?

Swift is free to use. Plan by plan below, from each vendor's own pricing page.

Amazon DocumentDB

On request

No published plan breakdown. See the Amazon DocumentDB review.

Swift

Free

No published plan breakdown. See the Swift review.

Which should you pick?

Choose Amazon DocumentDB if

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

Choose Swift if

  • You need native compiled code.
  • You want to start without paying.
  • You work on macOS, Linux, Windows, iOS.
  • You also want type inference and optionals.

Questions people ask

Is Amazon DocumentDB or Swift better?
It depends on the job. Amazon DocumentDB fits migrating MongoDB workloads to AWS; Swift fits iOS and macOS apps. Amazon DocumentDB starts at On request and Swift at Free.
Which is cheaper, Amazon DocumentDB or Swift?
Swift has a free tier; the other does not. Paid plans start at On request for Amazon DocumentDB and Free for Swift.
Does Amazon DocumentDB or Swift run on more platforms?
Amazon DocumentDB runs on Web. Swift runs on macOS, Linux, Windows, iOS.
Can I use Swift for free?
Yes. Swift has a free tier, so you can try it without paying. Amazon DocumentDB starts at On request.
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 Swift is typically brought in for.
What can Amazon DocumentDB do that Swift cannot?
Amazon DocumentDB covers MongoDB driver and tool compatibility, Managed patching, backups and monitoring, Serverless capacity scaling, Elastic clusters. Swift covers Native compiled code, Type inference and optionals, Memory and data race safety checks, async and await with actors.

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
Swift: Is Swift open source?

Yes. Wikipedia says it has been released under Apache 2.0 since version 2.2 in December 2015, and the Swift site links to the SwiftLang GitHub organisation.

Source
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
Swift: Which platforms does Swift run on?

The Swift site lists tools for Linux, macOS and Windows, and Wikipedia also lists Apple operating systems, WebAssembly and Android. The infobox also lists FreeBSD and z/OS.

Source
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
Swift: When was Swift released?

Apple showed it at WWDC on 2 June 2014, and Swift 1.0 arrived in September 2014, according to Wikipedia. Swift 5 in 2019 brought a stable binary interface.

Source
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