Softwr

Web Development · head to head

Amazon SNS vs Ruby on Rails

Amazon SNS logo

Amazon SNS

Web Development

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

From
On request
Free plan
No
Ruby on Rails logo

Ruby on Rails

Web Development

A full-stack framework for building web applications

From
Free
Free plan
Yes

The short version

  • Ruby on Rails is an open source full-stack web framework licensed under MIT.
  • Ruby on Rails is free; Amazon SNS prices on request.
  • 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 Ruby on Rails falls short: written in Ruby, so projects need the Ruby runtime and developers who know Ruby.

How do Amazon SNS and Ruby on Rails differ?

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

Attributes where Amazon SNS and Ruby on Rails differ
AttributeAmazon SNSRuby on Rails
Starting priceOn requestFree
Pricing modelPer request and per delivery, by protocolOpen-source
Free tierNoYes
PlatformsWeb, iOS, Android, LinuxWeb

Not yet recorded: category for Amazon SNS, founded for Amazon SNS.

Which features does each one have?

They share no listed features; 6 appear 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 SNS

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

Only in Ruby on Rails

Nothing recorded that Amazon SNS does not also cover.

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; Ruby on Rails for building e-commerce platforms that scale from startup to IPO. The jobs each tool is most often brought in to do.

Amazon SNS

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

Ruby on Rails

  • Building e-commerce platforms that scale from startup to IPOnot Amazon SNS
  • Developing SaaS applications with consistent conventions across teamsnot Amazon SNS
  • Creating marketplace platforms like Airbnb with transactional workflowsnot Amazon SNS
  • Integrating cloud file storage and real-time WebSocket updatesnot Amazon SNS
  • Enforcing encryption and security protections against common attacksnot Amazon SNS

Where do Amazon SNS and Ruby on Rails fall short?

Amazon SNS's most cited limit: payload-based filtering is charged per GB scanned per subscription, which adds cost at high volumes. Ruby on Rails's: written in Ruby, so projects need the Ruby runtime and developers who know Ruby. 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

Ruby on Rails

  • The framework is Ruby-only by design, per rubyonrails.org's own description of its convention over configuration approach, requiring the Ruby runtime rather than supporting alternate languages
  • Written in Ruby, so projects need the Ruby runtime and developers who know Ruby
  • Early critics raised scalability concerns about Rails on the Ruby MRI interpreter, and Twitter replaced its user-facing Rails code in 2011 over performance

How much do Amazon SNS and Ruby on Rails cost?

Ruby on Rails 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

Ruby on Rails

Free
  • Open source (MIT)Free

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 Ruby on Rails if

  • You want to start without paying.

Questions people ask

Is Amazon SNS or Ruby on Rails better?
It depends on the job. Amazon SNS fits fanning one order event out to billing, fulfilment and analytics queues; Ruby on Rails fits building e-commerce platforms that scale from startup to IPO. Amazon SNS starts at On request and Ruby on Rails at Free.
Which is cheaper, Amazon SNS or Ruby on Rails?
Ruby on Rails has a free tier; the other does not. Paid plans start at On request for Amazon SNS and Free for Ruby on Rails.
Does Amazon SNS or Ruby on Rails run on more platforms?
Amazon SNS runs on Web, iOS, Android, Linux. Ruby on Rails runs on Web.
Can I use Ruby on Rails for free?
Yes. Ruby on Rails 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 Ruby on Rails is typically brought in for.
What can Amazon SNS do that Ruby on Rails cannot?
Amazon SNS covers Topics and subscriptions, FIFO topics, Message filtering, Mobile push.

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.

Ruby on Rails: Is Ruby on Rails free?

Yes, Ruby on Rails is free and open-source, licensed under the MIT License. There are no costs associated with using or distributing the framework.

Source
Amazon SNS: Does SNS keep messages?

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

Ruby on Rails: What is Ruby on Rails licensed under?

Ruby on Rails is licensed under the MIT License, a permissive open-source license that allows commercial and private use.

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