Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9186345
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T19:30:15+00:00 2026-06-17T19:30:15+00:00

Let me explain dilemma. I use 3 services from Amazon: EC2, S3 and CloudFront.

  • 0

Let me explain dilemma.
I use 3 services from Amazon: EC2, S3 and CloudFront.
EC2 receives an file as upload, stores it in the S3 bucket. Then CloudFront mirrors the S3 bucket. The only limit is to have user friendly URLs.
Which approach to deliver those files is better?

Client > CloudFront > EC2 > S3

  • Client does a HTTP request to CloudFront URL
  • Cloudfront forwards the request to EC2
  • EC2 translates user friendly URL to raw file URL
  • EC2 reads the file from S3

Client > EC2 … redirect … CloudFront > S3

  • Client does a HTTP request to EC2
  • EC2 translates user friendly URL to raw file URL
  • EC2 redirects to CloudFront, witch mirrors the S3

There are two dimensions for this: the speed and the cost.


I see facebook using the second approach when serving profile images
http://graph.facebook.com/platform/picture

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T19:30:16+00:00Added an answer on June 17, 2026 at 7:30 pm

    You certainly don’t want to force the file transfer between S3 and your client to go through your EC2 instance. That will add load to the EC2 instance, increase bandwidth usage, and undoubtedly slow the response to the user.

    Your EC2 instance gives you the greatest control over URL format, so you’ll want the client to make the initial request to it (to have a “user-friendly” URL). The EC2 instance can just send the client a redirect to the CloudFront or S3 URL that actually has the content, and the client will pull it directly from there without the further involvement of EC2.

    I wouldn’t bother with CloudFront unless you have an enormous number of requests, or network latency has to be as low as possible.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Let me explain the question first and then few of my solutions to the
Let me explain what I'm trying to realize: I have a encrypted tar file.
Let me use medical doctors to explain my question. Now doctors have different fields
Let me explain best with an example. Say you have node class that can
Let we explain what I mean. Some time ago, while writing a program in
Let me explain you my situation. I have a base class called Shape, and
Let me explain: I need to sort a list in ascending order, while results
let me explain my current situation i have a SharePoint site lets say it
Let me explain. Suppose I want to teach Python to someone who only speaks
Let me explain what I mean : Let's say we have a menu with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.