Softwr

Cloud · head to head

Amazon EC2 vs Amazon SNS

Amazon EC2 logo

Amazon EC2

Cloud

Resizable virtual server compute service on AWS

From
Free
Free plan
Yes
Amazon SNS logo

Amazon SNS

Cloud

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

From
On request
Free plan
No

The short version

  • Amazon EC2 is free; Amazon SNS prices on request.
  • Only Amazon EC2 lists over 1,000 instance types; only Amazon SNS lists topics and subscriptions.
  • Where Amazon EC2 falls short: cost forecasting is complex across purchase options and instance types.
  • 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 EC2 and Amazon SNS differ?

Amazon EC2 and Amazon SNS differ on starting price (Free against On request), pricing model and free tier (Yes against No). Only the attributes on which Amazon EC2 and Amazon SNS actually diverge.

Attributes where Amazon EC2 and Amazon SNS differ
AttributeAmazon EC2Amazon SNS
Starting priceFreeOn request
Pricing modelUsage-basedPer request and per delivery, by protocol
Free tierYesNo
PlatformsWeb, Linux, Windows, macOSWeb, iOS, Android, Linux

Not yet recorded: category for Amazon SNS.

Which features does each one have?

They share no listed features; 7 appear only for Amazon EC2 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 EC2

  • Over 1,000 instance types
  • Intel, AMD and Arm (Graviton) processors
  • Per-second billing
  • Spot Instances and Savings Plans
  • Dedicated Hosts
  • EC2 Mac instances
  • Nitro System isolation

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 EC2 is most often brought in for hosting web applications and APIs; 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 EC2

  • Hosting web applications and APIsnot Amazon SNS
  • Running GPU and machine learning workloadsnot Amazon SNS
  • Building and signing macOS appsnot Amazon SNS
  • Bursting capacity with Spot Instancesnot Amazon SNS

Amazon SNS

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

Where do Amazon EC2 and Amazon SNS fall short?

Amazon EC2's most cited limit: cost forecasting is complex across purchase options and instance types. 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 EC2

  • Cost forecasting is complex across purchase options and instance types
  • Spot instances carry no SLA and can be reclaimed on two minutes' notice
  • Instance-store data is lost when an instance stops or terminates
  • You manage OS patching, scaling and security configuration

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 EC2 and Amazon SNS cost?

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

Amazon EC2

Free

No published plan breakdown. See the Amazon EC2 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 EC2 if

  • You need over 1,000 instance types.
  • You want to start without paying.
  • You work on Web, Linux, Windows, macOS.
  • You also want intel, amd and arm (graviton) processors.

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 EC2 or Amazon SNS better?
It depends on the job. Amazon EC2 fits hosting web applications and APIs; Amazon SNS fits fanning one order event out to billing, fulfilment and analytics queues. Amazon EC2 starts at Free and Amazon SNS at On request.
Which is cheaper, Amazon EC2 or Amazon SNS?
Amazon EC2 has a free tier; the other does not. Paid plans start at Free for Amazon EC2 and On request for Amazon SNS.
Does Amazon EC2 or Amazon SNS run on more platforms?
Amazon EC2 runs on Web, Linux, Windows, macOS. Amazon SNS runs on Web, iOS, Android, Linux.
Can I use Amazon EC2 for free?
Yes. Amazon EC2 has a free tier, so you can try it without paying. Amazon SNS starts at On request.
What is Amazon EC2 best used for?
Amazon EC2 is most often used for hosting web applications and apis, running gpu and machine learning workloads, building and signing macos apps, bursting capacity with spot instances. Of those, hosting web applications and apis and running gpu and machine learning workloads are not what Amazon SNS is typically brought in for.
What can Amazon EC2 do that Amazon SNS cannot?
Amazon EC2 covers Over 1,000 instance types, Intel, AMD and Arm (Graviton) processors, Per-second billing, Spot Instances and Savings Plans. Amazon SNS covers Topics and subscriptions, FIFO topics, Message filtering, Mobile push.

Answered from the vendors’ own pages

Amazon EC2: How is Amazon EC2 billed?

Usage is billed in one-second increments with a minimum charge of 60 seconds, across all purchase options and Regions.

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 EC2: When did EC2 launch?

A limited public beta started on 25 August 2006, and the beta label was dropped on 23 October 2008 with the addition of an SLA.

Source
Amazon SNS: Does SNS keep messages?

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

Amazon EC2: How much can Spot Instances save?

AWS says Spot Instances save up to 90 percent versus On-Demand, and Savings Plans up to 72 percent. Wikipedia notes Spot can be reclaimed with two minutes' notice.

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