Developer Tools · head to head
Amazon SNS vs AWS CDK

Amazon SNS
Developer Tools
Publish-subscribe messaging and mobile push, billed per request and per delivery
- From
- On request
- Free plan
- No

AWS CDK
Developer Tools
Open source framework for defining AWS infrastructure in programming languages
- From
- Free
- Free plan
- Yes
The short version
- AWS CDK is an Apache 2.
- AWS CDK is free; Amazon SNS prices on request.
- Only Amazon SNS lists topics and subscriptions; only AWS CDK lists construct Library of reusable components.
- Where Amazon SNS falls short: SMS pricing varies by country and can be expensive on international traffic, so an unbounded alert integration can generate a large bill.
- Where AWS CDK falls short: targets AWS only, so it does not provision resources on other clouds.
How do Amazon SNS and AWS CDK differ?
Amazon SNS and AWS CDK differ on starting price (On request against Free), pricing model and free tier (No against Yes). Only the attributes on which Amazon SNS and AWS CDK actually diverge.
| Attribute | Amazon SNS | AWS CDK |
|---|---|---|
| Starting price | On request | Free |
| Pricing model | Per request and per delivery, by protocol | Open-source |
| Free tier | No | Yes |
| Platforms | Web, iOS, Android, Linux | Windows, macOS, Linux |
Not yet recorded: category for Amazon SNS.
Which features does each one have?
They share no listed features; 6 appear only for Amazon SNS and 8 only for AWS CDK. 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 SNS
- Topics and subscriptions
- FIFO topics
- Message filtering
- Mobile push
- SMS and email
- Message archiving and replay
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
What is each one used for?
Amazon SNS is most often brought in for fanning one order event out to billing, fulfilment and analytics queues; AWS CDK for defining AWS infrastructure in TypeScript or Python. The jobs each tool is most often brought in to do.
Amazon SNS
- Fanning one order event out to billing, fulfilment and analytics queuesnot AWS CDK
- Sending operational alerts from CloudWatch alarms to email and chat webhooksnot AWS CDK
- Mobile push notifications for an app without running a push gatewaynot AWS CDK
- Pairing with SQS FIFO for ordered event distribution across servicesnot AWS CDK
AWS CDK
- Defining AWS infrastructure in TypeScript or Pythonnot Amazon SNS
- Reusable internal infrastructure modulesnot Amazon SNS
- Serverless application stacksnot Amazon SNS
- Testing infrastructure with unit testsnot Amazon SNS
- Standardising environments across accountsnot Amazon SNS
Where do Amazon SNS and AWS CDK fall short?
Amazon SNS's most cited limit: payload-based filtering is charged per GB scanned per subscription, which adds cost at high volumes. AWS CDK's: 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.
Amazon SNS
- SMS pricing varies by country and can be expensive on international traffic, so an unbounded alert integration can generate a large bill
- There is no message persistence for slow subscribers beyond delivery retries, so consumers that fall behind can lose messages unless an SQS queue sits between
- It lacks the audience management, templating and campaign analytics of a marketing platform, so it cannot replace a customer messaging tool
- Payload-based filtering is charged per GB scanned per subscription, which adds cost at high volumes
- Delivery to HTTP endpoints requires your endpoint to confirm subscriptions and cope with retries and duplicates
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
How much do Amazon SNS and AWS CDK cost?
AWS CDK is free to use. Plan by plan below, from each vendor's own pricing page.
Amazon SNS
On request- Publishes and mobile pushOn request
- First 1 million requests free, then $0.50 per million
- Mobile push free for the first 1 million, then $0.50 per million
- HTTP, HTTPS and emailOn request
- HTTP and HTTPS: first 100,000 free, then $0.60 per million
- Email: first 1,000 free, then $2.00 per 100,000
- SQS and Lambda deliveries: no per-delivery charge
- SMSOn request
- Priced per message by destination country, see the SNS pricing page
- Not covered by the free tier in most regions
AWS CDK
FreeNo published plan breakdown. See the AWS CDK review.
Which should you pick?
Choose Amazon SNS if
- You need topics and subscriptions.
- You work on Web, iOS, Android, Linux.
- You also want fifo topics.
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.
Questions people ask
- Is Amazon SNS or AWS CDK better?
- It depends on the job. Amazon SNS fits fanning one order event out to billing, fulfilment and analytics queues; AWS CDK fits defining AWS infrastructure in TypeScript or Python. Amazon SNS starts at On request and AWS CDK at Free.
- Which is cheaper, Amazon SNS or AWS CDK?
- AWS CDK has a free tier; the other does not. Paid plans start at On request for Amazon SNS and Free for AWS CDK.
- Does Amazon SNS or AWS CDK run on more platforms?
- Amazon SNS runs on Web, iOS, Android, Linux. AWS CDK runs on Windows, macOS, Linux.
- Can I use AWS CDK for free?
- Yes. AWS CDK has a free tier, so you can try it without paying. Amazon SNS starts at On request.
- What is Amazon SNS best used for?
- Amazon SNS is most often used for fanning one order event out to billing, fulfilment and analytics queues, sending operational alerts from cloudwatch alarms to email and chat webhooks, mobile push notifications for an app without running a push gateway, pairing with sqs fifo for ordered event distribution across services. Of those, fanning one order event out to billing, fulfilment and analytics queues and sending operational alerts from cloudwatch alarms to email and chat webhooks are not what AWS CDK is typically brought in for.
- What can Amazon SNS do that AWS CDK cannot?
- Amazon SNS covers Topics and subscriptions, FIFO topics, Message filtering, Mobile push. 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.
Answered from the vendors’ own pages
Amazon SNS: Is Amazon SNS free?
The first 1 million requests per month are free, plus small free allowances for HTTP and email deliveries, per AWS. SMS is not free.
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.
SourceAmazon SNS: Does SNS keep messages?
Standard topics do not store messages for slow subscribers; durability comes from subscribing an SQS queue.
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.
SourceAmazon SNS: Can I send email with SNS?
Yes, for alerts, but it is plain notification email. Amazon SES is the service for transactional and bulk email.
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.
SourceAWS 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.
SourceRelated pages
Other head to heads
- Amazon SNS vs Google Cloud Run
- Amazon SNS vs Dokku
- Amazon SNS vs Confluent Cloud
- Amazon SNS vs Rancher
- Amazon SNS vs HAProxy
- Amazon SNS vs Akamai
- Amazon SNS vs Portworx
- Amazon SNS vs Azure Functions
- Amazon SNS vs Coolify
- Amazon SNS vs Serverless Framework
- Amazon SNS vs Flux
- Amazon SNS vs Lambda
- Amazon SNS vs Alibaba Cloud
- Amazon SNS vs Anyscale
- Amazon SNS vs Deno Deploy
- Amazon SNS vs Fastly
- Amazon SNS vs Vagrant
- Amazon SNS vs DeepInfra
- Amazon SNS vs Terraform
- Amazon SNS vs HCP Terraform
- Amazon SNS vs Atlantis
- Amazon SNS vs Pants Build
- Amazon SNS vs Biome
- Amazon SNS vs Frappe
- Amazon SNS vs Spacelift
- Amazon SNS vs Eclipse
- Amazon SNS vs Python
- Amazon SNS vs Backstage
- Amazon SNS vs Jitsu
- Amazon SNS vs Notepad++
- Amazon SNS vs GitHub Codespaces
- Amazon SNS vs GitKraken
- Amazon SNS vs Helm
- Amazon SNS vs iTerm2
- Amazon SNS vs PDAL
- Amazon SNS vs Rust
- AWS CDK vs Google Cloud Run
- AWS CDK vs Dokku
- AWS CDK vs Confluent Cloud
- AWS CDK vs Rancher
- AWS CDK vs HAProxy
- AWS CDK vs Akamai
- AWS CDK vs Portworx
- AWS CDK vs Azure Functions
- AWS CDK vs Coolify
- AWS CDK vs Serverless Framework
- AWS CDK vs Flux
- AWS CDK vs Lambda
- AWS CDK vs Alibaba Cloud
- AWS CDK vs Anyscale
- AWS CDK vs Deno Deploy
- AWS CDK vs Fastly
- AWS CDK vs Vagrant
- AWS CDK vs DeepInfra
- AWS CDK vs Terraform
- AWS CDK vs HCP Terraform
- AWS CDK vs Atlantis
- AWS CDK vs Pants Build
- AWS CDK vs Biome
- AWS CDK vs Frappe
- AWS CDK vs Spacelift
- AWS CDK vs Eclipse
- AWS CDK vs Python
- AWS CDK vs Backstage
- AWS CDK vs Jitsu
- AWS CDK vs Notepad++
- AWS CDK vs GitHub Codespaces
- AWS CDK vs GitKraken
- AWS CDK vs Helm
- AWS CDK vs iTerm2
- AWS CDK vs PDAL
- AWS CDK vs Rust
