Softwr

Developer Tools · head to head

AWS CDK vs Nhost

AWS CDK logo

AWS CDK

Developer Tools

Open source framework for defining AWS infrastructure in programming languages

From
Free
Free plan
Yes
Nhost logo

Nhost

Developer Tools

Postgres backend with GraphQL, authentication, storage and functions, from $25 a month

From
Free
Free plan
Yes

The short version

  • AWS CDK is an Apache 2; Nhost is a hosted backend platform.
  • AWS CDK is free; Nhost starts at $25/mo.
  • Only AWS CDK lists construct Library of reusable components; only Nhost lists postgres database.
  • Where AWS CDK falls short: targets AWS only, so it does not provision resources on other clouds.
  • Where Nhost falls short: the API layer is Hasura GraphQL, so teams who want a REST-first or other access pattern are working against the platform's default.

How do AWS CDK and Nhost differ?

AWS CDK and Nhost differ on pricing model and platforms. Only the attributes on which AWS CDK and Nhost actually diverge.

Attributes where AWS CDK and Nhost differ
AttributeAWS CDKNhost
Pricing modelOpen-sourcePer month plus usage
PlatformsWindows, macOS, LinuxWeb

Identical on both: starting price (Free), free tier (Yes).

Not yet recorded: category for Nhost.

Which features does each one have?

They share no listed features; 8 appear only for AWS CDK and 8 only for Nhost. 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 AWS CDK

  • Construct Library of reusable components
  • CDK CLI for synthesis and deployment
  • Programmatic CDK Toolkit Library
  • Support for TypeScript, JavaScript, Python, Java, C# and Go
  • Deployment through AWS CloudFormation
  • Custom and shareable constructs
  • Construct Hub registry
  • Open source under Apache 2.0

Only in Nhost

  • Postgres database
  • Hasura GraphQL
  • Authentication
  • Storage
  • Functions
  • AI toolkit
  • Nhost Run
  • Infrastructure as code

What is each one used for?

AWS CDK is most often brought in for defining AWS infrastructure in TypeScript or Python; Nhost for A startup that wants Postgres, auth and a GraphQL API without writing a backend. The jobs each tool is most often brought in to do.

AWS CDK

  • Defining AWS infrastructure in TypeScript or Pythonnot Nhost
  • Reusable internal infrastructure modulesnot Nhost
  • Serverless application stacksnot Nhost
  • Testing infrastructure with unit testsnot Nhost
  • Standardising environments across accountsnot Nhost

Nhost

  • A startup that wants Postgres, auth and a GraphQL API without writing a backendnot AWS CDK
  • A React or Vue team using real-time GraphQL subscriptionsnot AWS CDK
  • A developer who wants backend config in git through the CLInot AWS CDK
  • An app that needs file storage and auth plus a few server functionsnot AWS CDK

Where do AWS CDK and Nhost fall short?

AWS CDK's most cited limit: targets AWS only, so it does not provision resources on other clouds. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

AWS CDK

  • Targets AWS only, so it does not provision resources on other clouds
  • Deploys through CloudFormation, so its resource coverage and limits apply
  • Infrastructure written in code can be harder to review than declarative templates
  • The AWS resources it creates are billed separately at standard AWS rates

Nhost

  • The API layer is Hasura GraphQL, so teams who want a REST-first or other access pattern are working against the platform's default
  • Starter projects are paused after one week of inactivity, which makes the free tier unsuitable for anything that must stay available
  • Point-in-time recovery starts at $100 on top of the plan, so recovery beyond the 7 days of daily backups is an extra cost
  • Compute, custom domains ($10 per project per month), egress and storage overage are metered, so the plan fee understates the running bill for a busy app
  • Team costs $599 a month, a large jump from Pro at $25, so growing teams that need the Team tier's limits face a steep step

How much do AWS CDK and Nhost cost?

AWS CDK is free to use; Nhost has a free plan, with paid plans from $25/mo. Plan by plan below, from each vendor's own pricing page.

AWS CDK

Free

No published plan breakdown. See the AWS CDK review.

Nhost

Free
  • StarterFree
    • 1 project and 1 workspace member
    • 1 GB database, 1 GB storage, 5 GB egress
    • 10 functions with 10 second execution time
  • Pro$25/mo
    • $15 in compute credits included
    • 10 GB database, 50 GB storage, 50 GB egress
    • 50 functions, 180 second execution time
  • Team$599/mo
    • $15 in compute credits included
    • Everything in Pro, with 600 second function execution time
  • EnterpriseOn request
    • Custom pricing
    • Dedicated clusters available as an add-on

Which should you pick?

Choose AWS CDK if

  • You need construct library of reusable components.
  • You want to start without paying.
  • You work on Windows, macOS, Linux.
  • You also want cdk cli for synthesis and deployment.

Choose Nhost if

  • You need postgres database.
  • You want to start without paying.
  • You also want hasura graphql.

Questions people ask

Is AWS CDK or Nhost better?
It depends on the job. AWS CDK fits defining AWS infrastructure in TypeScript or Python; Nhost fits a startup that wants Postgres, auth and a GraphQL API without writing a backend. AWS CDK starts at Free and Nhost at Free.
Which is cheaper, AWS CDK or Nhost?
AWS CDK starts at Free and Nhost at Free.
Does AWS CDK or Nhost run on more platforms?
AWS CDK runs on Windows, macOS, Linux. Nhost runs on Web.
Can I use AWS CDK for free?
Both have a free tier, so you can try either at no cost before committing.
What is AWS CDK best used for?
AWS CDK is most often used for defining aws infrastructure in typescript or python, reusable internal infrastructure modules, serverless application stacks, testing infrastructure with unit tests. Of those, defining aws infrastructure in typescript or python and reusable internal infrastructure modules are not what Nhost is typically brought in for.
What can AWS CDK do that Nhost cannot?
AWS CDK covers Construct Library of reusable components, CDK CLI for synthesis and deployment, Programmatic CDK Toolkit Library, Support for TypeScript, JavaScript, Python, Java, C# and Go. Nhost covers Postgres database, Hasura GraphQL, Authentication, Storage.

Answered from the vendors’ own pages

AWS CDK: Which languages does AWS CDK support?

The AWS documentation lists TypeScript, JavaScript, Python, Java, C# and .NET, and Go. Infrastructure is defined as constructs composed into stacks and apps.

Source
Nhost: How much does Nhost cost?

Starter is $0, Pro is $25 a month and Team is $599 a month, plus metered usage beyond included amounts. Enterprise is custom.

AWS CDK: How does AWS CDK deploy resources?

CDK apps are synthesised and deployed through AWS CloudFormation. The documentation states this gives predictable, repeatable deployments with rollback on error.

Source
Nhost: Does the free plan pause?

Yes. Starter projects are paused after one week of inactivity.

AWS CDK: Is AWS CDK free?

It is open source under the Apache 2.0 licence according to its GitHub repository. The AWS resources you provision with it are charged at their normal rates.

Source
Nhost: Are there user limits on auth?

No. The pricing page lists unlimited total users on every plan.

AWS CDK: When was AWS CDK first released?

Wikipedia reports a developer preview announced in 2018 and general availability on 11 July 2019. CDK v2 followed in 2021.

Source
Share

Related pages

Other head to heads