Skip to content

Instantly share code, notes, and snippets.

@cristiancmello
Created August 9, 2018 01:15
Show Gist options
  • Save cristiancmello/07e9fb29a3cbce6fa2055290ec04c78a to your computer and use it in GitHub Desktop.
Save cristiancmello/07e9fb29a3cbce6fa2055290ec04c78a to your computer and use it in GitHub Desktop.

BEST CASE

Regular visits, with no daily access peaks.

VARIATION A.1 (without free-tier)

  1. API - AWS EC2 (t2.micro): 0,0116 USD/h

    • Production Environment + Staging Env. = 8,63 USD/month * 2 = 17,26 USD/month
  2. Front-end/media/deployments - AWS S3:

    • Transferring Data Out of Amazon S3 to the Internet (~9,999 TB/month): 0,09 USD Considering regular traffic, it rarely comes to this charge: 0,00 USD/month

    • Specific Operations: HTTP PUT, COPY, POST or LIST: 0,005 USD/1000 requests GET, SELECT: 0,0004 USD/1000 requests

    Considering a worst case scenario, where all operations will be carried out 10 thousand times, we will have 0.054 USD/month.

  3. Load Balancer - AWS ELB: Billing calculation is quite complex. Based on the project HomeList, with similar characteristics, it is estimated cost of 16.00 USD/month.

  4. API Gateway - AWS API Gateway: As we will use as HTTP-PROXY, without API interface, we fit only for data transfer charges outside of AWS. 0,09 USD/GB < 10 TB. Maybe we will not be charged: 0,00 USD/month

  5. Caching - AWS CloudFront:

    • US-Europe Traffic: 0,085/GB (Regional to Internet) + 0,020 USD/GB (Regional to Origin) + 0,0090/10000 HTTP requests = 0,114 USD (assuming consumption of 1 GB/month with 10K HTTP calls).
  6. Database

    • Production Environment: MongoDB Atlas on AWS Cloud (M20; 20 GB storage and 4 GB RAM): 148,8 USD/month
    • Staging Environment: MongoDB on AWS EC2 Hosting (unsafe and without automation but is great for private testing): 8,63 USD/month

TOTAL: 17,26 + 0,054 + 16,00 + 0,114 + 148,8 = 182,22 USD/month

VARIATION A.2 (with free-tier)

  1. API - AWS EC2 (t2.micro): 0,00 USD/month

TOTAL: 182,22 - 17,26 = 164,96 USD/month

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment