Softwr

Cloud · head to head

Amazon S3 vs Stimulus

Amazon S3 logo

Amazon S3

Cloud

Amazon Web Services' pay-as-you-go object storage service

From
On request
Free plan
No
Stimulus logo

Stimulus

Web Development

Small JavaScript framework that adds behaviour to existing server rendered HTML

From
Free
Free plan
Yes

The short version

  • Stimulus is an MIT licensed JavaScript framework.
  • Stimulus is free; Amazon S3 prices on request.
  • Only Amazon S3 lists object storage in buckets; only Stimulus lists works with server rendered HTML.
  • Where Amazon S3 falls short: billing depends on storage class, requests and transfer, so total cost is hard to predict.
  • Where Stimulus falls short: does not render templates, so HTML must come from the server or another tool.

How do Amazon S3 and Stimulus differ?

Amazon S3 and Stimulus differ on starting price (On request against Free), pricing model (Usage-based against Open-source) and free tier (No against Yes). Only the attributes on which Amazon S3 and Stimulus actually diverge.

Attributes where Amazon S3 and Stimulus differ
AttributeAmazon S3Stimulus
Starting priceOn requestFree
Pricing modelUsage-basedOpen-source
Free tierNoYes
CategoryCloudWeb Development

Identical on both: platforms (Web).

Not yet recorded: founded for Amazon S3.

Which features does each one have?

They share no listed features; 9 appear only for Amazon S3 and 7 only for Stimulus. 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 S3

  • Object storage in buckets
  • Multiple storage classes including Glacier
  • S3 Intelligent-Tiering
  • Versioning
  • Replication
  • Encryption by default
  • Static website hosting
  • Time-limited authenticated URLs

Only in Stimulus

  • Controllers attached through data-controller
  • Actions that bind DOM events to controller methods
  • Targets for locating elements inside a controller
  • Values that read, write and observe data attributes
  • Works with server rendered HTML
  • Designed to pair with Turbo in Hotwire
  • MIT licensed open source

What is each one used for?

Amazon S3 is most often brought in for data lake storage for analytics; Stimulus for adding small interactions to Rails views. The jobs each tool is most often brought in to do.

Amazon S3

  • Data lake storage for analyticsnot Stimulus
  • Application and mobile app file storagenot Stimulus
  • Long-term archives in Glacier classesnot Stimulus
  • Static website hostingnot Stimulus

Stimulus

  • Adding small interactions to Rails viewsnot Amazon S3
  • Progressive enhancement of server rendered pagesnot Amazon S3
  • Pairing with Turbo for fast page updatesnot Amazon S3
  • Replacing scattered jQuery codenot Amazon S3
  • Form and widget behaviour on existing HTMLnot Amazon S3

Where do Amazon S3 and Stimulus fall short?

Amazon S3's most cited limit: billing depends on storage class, requests and transfer, so total cost is hard to predict. Stimulus's: does not render templates, so HTML must come from the server or another tool. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

Amazon S3

  • Billing depends on storage class, requests and transfer, so total cost is hard to predict
  • Outbound internet data transfer is charged beyond the first 100 GB per month
  • Objects larger than 5 GB need multipart upload because single uploads are capped at 5 GB
  • Versioning is disabled by default and must be switched on per bucket
  • Available only on AWS; moving data elsewhere means egress and re-integration work

Stimulus

  • Does not render templates, so HTML must come from the server or another tool
  • No built in routing, data fetching or client side state management
  • Behaviour is tied to data attributes in markup, which some teams find harder to trace
  • Not a component framework, so large interactive interfaces need other libraries

How much do Amazon S3 and Stimulus cost?

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

Amazon S3

On request

No published plan breakdown. See the Amazon S3 review.

Stimulus

Free

No published plan breakdown. See the Stimulus review.

Which should you pick?

Choose Amazon S3 if

  • You need object storage in buckets.
  • You also want multiple storage classes including glacier.

Choose Stimulus if

  • You need controllers attached through data-controller.
  • You want to start without paying.
  • You also want actions that bind dom events to controller methods.

Questions people ask

Is Amazon S3 or Stimulus better?
It depends on the job. Amazon S3 fits data lake storage for analytics; Stimulus fits adding small interactions to Rails views. Amazon S3 starts at On request and Stimulus at Free.
Which is cheaper, Amazon S3 or Stimulus?
Stimulus has a free tier; the other does not. Paid plans start at On request for Amazon S3 and Free for Stimulus.
Does Amazon S3 or Stimulus run on more platforms?
Both run on Web, so platform support will not decide this one for you.
Can I use Stimulus for free?
Yes. Stimulus has a free tier, so you can try it without paying. Amazon S3 starts at On request.
What is Amazon S3 best used for?
Amazon S3 is most often used for data lake storage for analytics, application and mobile app file storage, long-term archives in glacier classes, static website hosting. Of those, data lake storage for analytics and application and mobile app file storage are not what Stimulus is typically brought in for.
What can Amazon S3 do that Stimulus cannot?
Amazon S3 covers Object storage in buckets, Multiple storage classes including Glacier, S3 Intelligent-Tiering, Versioning. Stimulus covers Controllers attached through data-controller, Actions that bind DOM events to controller methods, Targets for locating elements inside a controller, Values that read, write and observe data attributes.

Answered from the vendors’ own pages

Amazon S3: What is Amazon S3?

Amazon S3 is an object storage service from AWS, described as built to retrieve any amount of data from anywhere. It is used for data lakes, cloud-native applications and mobile apps.

Source
Stimulus: What is Stimulus used for?

Stimulus enhances HTML that already exists on the page by connecting JavaScript controllers to elements through data attributes. It does not generate the HTML itself.

Source
Amazon S3: How is S3 priced?

AWS says the cost depends on object size, storage duration and storage class, with no minimum charge. Inbound transfer from the internet is free, as are transfers between buckets in the same Region, and the first 100 GB per month out to the internet is free.

Source
Stimulus: What are the core concepts in Stimulus?

Controllers are the main unit, and they are joined by actions, targets and values. Actions link events to methods, targets find elements and values store state in data attributes.

Source
Amazon S3: What is the maximum object size in S3?

Objects can be up to 5 TB. A single upload operation is capped at 5 GB, so larger objects use the multipart upload API.

Source
Stimulus: What licence does Stimulus use?

The GitHub repository states that Stimulus is released under the MIT licence. It is free to use.

Source
Amazon S3: Is S3 versioning on by default?

No. Versioning is available but disabled by default. Default bucket-level encryption was added in November 2017.

Source
Stimulus: Why was Stimulus created?

According to the project's origin page, Basecamp used a mix of jQuery, vanilla JavaScript and object oriented subsystems that were hard to reuse and learn. Stimulus condensed those patterns into a small, consistent framework.

Source
Share

Related pages

Other head to heads