Softwr

Software · head to head

Amazon ECS vs Amazon SNS

Amazon ECS logo

Amazon ECS

Software

AWS managed container orchestration, free to use, billed for Fargate or EC2 compute

From
On request
Free plan
No
Amazon SNS logo

Amazon SNS

Software

Publish-subscribe messaging and mobile push, billed per request and per delivery

From
On request
Free plan
No

The short version

  • Amazon ECS is a fully managed container orchestration service on AWS.
  • Only Amazon ECS lists fargate serverless containers; only Amazon SNS lists topics and subscriptions.
  • Where Amazon ECS falls short: runs only on AWS, with no portability to other clouds.
  • 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.

How do Amazon ECS and Amazon SNS differ?

Amazon ECS and Amazon SNS differ on pricing model and platforms. Only the attributes on which Amazon ECS and Amazon SNS actually diverge.

Attributes where Amazon ECS and Amazon SNS differ
AttributeAmazon ECSAmazon SNS
Pricing modelUsage-basedPer request and per delivery, by protocol
PlatformsWebWeb, iOS, Android, Linux

Identical on both: starting price (On request), free tier (No).

Which features does each one have?

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

  • Fargate serverless containers
  • EC2 launch type
  • ECS Anywhere for on-premises and edge
  • ECS Managed Instances
  • IAM-based access control
  • Automated patching
  • Encryption in transit and at rest
  • Spot capacity support

Only in Amazon SNS

  • Topics and subscriptions
  • FIFO topics
  • Message filtering
  • Mobile push
  • SMS and email
  • Message archiving and replay

What is each one used for?

Amazon ECS is most often brought in for running containerised web services on AWS; Amazon SNS for fanning one order event out to billing, fulfilment and analytics queues. The jobs each tool is most often brought in to do.

Amazon ECS

  • Running containerised web services on AWSnot Amazon SNS
  • Batch jobs on Spot capacitynot Amazon SNS
  • Serverless containers without managing serversnot Amazon SNS
  • Hybrid workloads using ECS Anywherenot Amazon SNS

Amazon SNS

  • Fanning one order event out to billing, fulfilment and analytics queuesnot Amazon ECS
  • Sending operational alerts from CloudWatch alarms to email and chat webhooksnot Amazon ECS
  • Mobile push notifications for an app without running a push gatewaynot Amazon ECS
  • Pairing with SQS FIFO for ordered event distribution across servicesnot Amazon ECS

Where do Amazon ECS and Amazon SNS fall short?

Amazon ECS's most cited limit: runs only on AWS, with no portability to other clouds. Amazon SNS's: payload-based filtering is charged per GB scanned per subscription, which adds cost at high volumes. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

Amazon ECS

  • Runs only on AWS, with no portability to other clouds
  • Task definitions and APIs are AWS-specific, unlike Kubernetes
  • Costs combine ECS-adjacent services such as EC2, load balancers and IPv4
  • Smaller ecosystem of third-party tooling than Kubernetes

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

How much do Amazon ECS and Amazon SNS cost?

Amazon ECS

On request

No published plan breakdown. See the Amazon ECS review.

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

Which should you pick?

Choose Amazon ECS if

  • You need fargate serverless containers.
  • You also want ec2 launch type.

Choose Amazon SNS if

  • You need topics and subscriptions.
  • You work on Web, iOS, Android, Linux.
  • You also want fifo topics.

Questions people ask

Is Amazon ECS or Amazon SNS better?
It depends on the job. Amazon ECS fits running containerised web services on AWS; Amazon SNS fits fanning one order event out to billing, fulfilment and analytics queues. Amazon ECS starts at On request and Amazon SNS at On request.
Which is cheaper, Amazon ECS or Amazon SNS?
Amazon ECS starts at On request and Amazon SNS at On request.
Does Amazon ECS or Amazon SNS run on more platforms?
Amazon ECS runs on Web. Amazon SNS runs on Web, iOS, Android, Linux.
What is Amazon ECS best used for?
Amazon ECS is most often used for running containerised web services on aws, batch jobs on spot capacity, serverless containers without managing servers, hybrid workloads using ecs anywhere. Of those, running containerised web services on aws and batch jobs on spot capacity are not what Amazon SNS is typically brought in for.
What can Amazon ECS do that Amazon SNS cannot?
Amazon ECS covers Fargate serverless containers, EC2 launch type, ECS Anywhere for on-premises and edge, ECS Managed Instances. Amazon SNS covers Topics and subscriptions, FIFO topics, Message filtering, Mobile push.

Answered from the vendors’ own pages

Amazon ECS: Does ECS cost extra?

No. There is no additional charge for Amazon ECS orchestration; you pay for the compute and resources your containers use.

Source
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.

Amazon ECS: Can ECS run outside AWS?

ECS Anywhere runs containers on registered on-premises instances at $0.01025 per instance per hour.

Source
Amazon SNS: Does SNS keep messages?

Standard topics do not store messages for slow subscribers; durability comes from subscribing an SQS queue.

Amazon ECS: What compute options does ECS offer?

AWS Fargate, Amazon EC2 and ECS Anywhere, plus ECS Managed Instances.

Source
Amazon 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.

Share

Related pages

Other head to heads