Softwr

Developer Tools · head to head

AWS CDK vs Hatchet

AWS CDK logo

AWS CDK

Developer Tools

Open source framework for defining AWS infrastructure in programming languages

From
Free
Free plan
Yes
Hatchet logo

Hatchet

Automation Integration

Postgres-backed distributed task queue and workflow engine for Python, TypeScript and Go

From
Free
Free plan
Yes

The short version

  • AWS CDK is an Apache 2.
  • AWS CDK is free; Hatchet starts at $500/mo.
  • Only AWS CDK lists construct Library of reusable components; only Hatchet lists postgres-backed queue.
  • Where AWS CDK falls short: targets AWS only, so it does not provision resources on other clouds.

How do AWS CDK and Hatchet differ?

AWS CDK and Hatchet differ on pricing model, platforms and category. Only the attributes on which AWS CDK and Hatchet actually diverge.

Attributes where AWS CDK and Hatchet differ
AttributeAWS CDKHatchet
Pricing modelOpen-sourcePer month by task run count
PlatformsWindows, macOS, LinuxLinux, Self-hosted, Web
CategoryDeveloper ToolsAutomation Integration

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

Which features does each one have?

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

  • Postgres-backed queue
  • Durable execution
  • DAG workflows
  • Concurrency and fairness
  • Rate limiting
  • Cron and scheduling
  • Multi-language SDKs
  • Self-hosting

What is each one used for?

AWS CDK is most often brought in for defining AWS infrastructure in TypeScript or Python. The jobs each tool is most often brought in to do.

AWS CDK

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

Hatchet

  • An AI product running long agent pipelines that must survive worker restarts and resume mid-workflownot AWS CDK
  • A team that outgrew Celery and wants concurrency keys, fairness and rate limiting without building themnot AWS CDK
  • An engineering group that wants durable execution self-hosted with no datastore beyond the Postgres they already runnot AWS CDK
  • A multi-tenant SaaS that needs one noisy customer's jobs not to starve everyone else'snot AWS CDK

Where do AWS CDK and Hatchet 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

Hatchet

  • Postgres as the queue backend simplifies operations but sets a throughput ceiling, and very high task rates require database tuning or partitioning work that a purpose-built queue would not demand
  • Data retention on the managed tiers is three days on Team and seven on Scale, which is short for debugging intermittent failures and forces you to export run history elsewhere
  • The step from the free tier to Team is 500 US dollars a month plus usage, which is a large increment for a small team that simply needs a production SLA
  • Hatchet is a young company in a category with Temporal, Inngest and cloud-native alternatives already established, so ecosystem, hiring pool and third-party material are all thin
  • Self-hosting the MIT engine is realistic but you then run the engine, its Postgres and its workers yourself, and the managed features such as audit logs and support are not part of that

How much do AWS CDK and Hatchet cost?

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

AWS CDK

Free

No published plan breakdown. See the AWS CDK review.

Hatchet

Free
  • DeveloperFree
    • First 100,000 task runs included
    • $10 per million task runs after
    • No card required
  • Team$500/mo
    • Usage billed on top of the base fee
    • 10 users and 5 tenants
    • 3 day data retention
  • Scale$1,000/mo
    • Unlimited users and tenants
    • 7 day data retention
    • Audit logs
  • EnterpriseOn request
    • 300 million plus runs a month
    • Latency guarantees and custom SLAs
    • SSO and audit logging

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

  • You need postgres-backed queue.
  • You want to start without paying.
  • You work on Linux, Self-hosted, Web.
  • You also want durable execution.

Questions people ask

Is AWS CDK or Hatchet better?
It depends on the job. AWS CDK fits defining AWS infrastructure in TypeScript or Python; Hatchet fits an AI product running long agent pipelines that must survive worker restarts and resume mid-workflow. AWS CDK starts at Free and Hatchet at Free.
Which is cheaper, AWS CDK or Hatchet?
AWS CDK starts at Free and Hatchet at Free.
Does AWS CDK or Hatchet run on more platforms?
AWS CDK runs on Windows, macOS, Linux. Hatchet runs on Linux, Self-hosted, 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 Hatchet is typically brought in for.
What can AWS CDK do that Hatchet 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. Hatchet covers Postgres-backed queue, Durable execution, DAG workflows, Concurrency and fairness.

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

Yes, the engine is MIT licensed and can be self-hosted, with a managed cloud offered alongside.

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
Hatchet: What does it cost?

Free for the first 100,000 task runs, then 10 US dollars per million. Team is 500 US dollars a month plus usage; Scale is 1,000.

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
Hatchet: Why Postgres as the queue?

So durable task state lives in a database your team already backs up, replicates and can inspect with SQL, instead of a second system.

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
Hatchet: How does it compare with Temporal?

Lighter to adopt and operate, with a much smaller ecosystem and a lower throughput ceiling from the Postgres backend.

Share

Related pages

Other head to heads