Softwr

Cloud · head to head

Amazon SNS vs Google Cloud Run

Amazon SNS logo

Amazon SNS

Cloud

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

From
On request
Free plan
No
Google Cloud Run logo

Google Cloud Run

Cloud

Managed platform for running containers and functions on Google Cloud

From
On request
Free plan
No

The short version

  • Only Amazon SNS lists topics and subscriptions; only Google Cloud Run lists deploy any container image.
  • 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 Google Cloud Run falls short: runs only on Google Cloud, so there is no self-hosted option.

How do Amazon SNS and Google Cloud Run differ?

Amazon SNS and Google Cloud Run differ on pricing model and platforms. Only the attributes on which Amazon SNS and Google Cloud Run actually diverge.

Attributes where Amazon SNS and Google Cloud Run differ
AttributeAmazon SNSGoogle Cloud Run
Pricing modelPer request and per delivery, by protocolUsage-based
PlatformsWeb, iOS, Android, LinuxWeb

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

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 9 only for Google Cloud Run. 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 Google Cloud Run

  • Deploy any container image
  • Source-based builds for common languages
  • Services with automatic scaling and scale to zero
  • Jobs for scheduled or manual tasks
  • Worker pools for background processing
  • Traffic splitting and rollback between revisions
  • Custom domains and managed TLS
  • Request-based and instance-based billing

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; Google Cloud Run for hosting web APIs and microservices. The jobs each tool is most often brought in to do.

Amazon SNS

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

Google Cloud Run

  • Hosting web APIs and microservicesnot Amazon SNS
  • Scheduled batch jobsnot Amazon SNS
  • Queue consumers on worker poolsnot Amazon SNS
  • Deploying containers without managing clustersnot Amazon SNS
  • Event-driven backends with Pub/Subnot Amazon SNS

Where do Amazon SNS and Google Cloud Run fall short?

Amazon SNS's most cited limit: payload-based filtering is charged per GB scanned per subscription, which adds cost at high volumes. Google Cloud Run's: runs only on Google Cloud, so there is no self-hosted option. 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

Google Cloud Run

  • Runs only on Google Cloud, so there is no self-hosted option
  • The container file system is in memory and not persistent
  • Worker pools do not autoscale natively and need at least one instance
  • Services are stateless, so state needs external storage

How much do Amazon SNS and Google Cloud Run cost?

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

Google Cloud Run

On request

No published plan breakdown. See the Google Cloud Run 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 Google Cloud Run if

  • You need deploy any container image.
  • You also want source-based builds for common languages.

Questions people ask

Is Amazon SNS or Google Cloud Run better?
It depends on the job. Amazon SNS fits fanning one order event out to billing, fulfilment and analytics queues; Google Cloud Run fits hosting web APIs and microservices. Amazon SNS starts at On request and Google Cloud Run at On request.
Which is cheaper, Amazon SNS or Google Cloud Run?
Amazon SNS starts at On request and Google Cloud Run at On request.
Does Amazon SNS or Google Cloud Run run on more platforms?
Amazon SNS runs on Web, iOS, Android, Linux. Google Cloud Run runs on Web.
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 Google Cloud Run is typically brought in for.
What can Amazon SNS do that Google Cloud Run cannot?
Amazon SNS covers Topics and subscriptions, FIFO topics, Message filtering, Mobile push. Google Cloud Run covers Deploy any container image, Source-based builds for common languages, Services with automatic scaling and scale to zero, Jobs for scheduled or manual tasks.

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.

Google Cloud Run: What can Cloud Run run?

Any container image, or source code for Go, Node.js, Python, Java.NET and Ruby that Google builds into a container.

Source
Amazon SNS: Does SNS keep messages?

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

Google Cloud Run: How is Cloud Run billed?

Allocated CPU and memory are billed in 100 millisecond granularity, in request-based or instance-based mode. A free tier is available.

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.

Google Cloud Run: Can Cloud Run scale to zero?

Yes. Services scale to zero when idle unless a minimum number of instances is set.

Source
Share

Related pages

Other head to heads