Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Size of the file exceeding 2MBs leading to slower loading on low speed connections and expensive AWS bills. #47

Open
ankushgarg1998 opened this issue Jun 27, 2020 · 3 comments
Labels

Comments

@ankushgarg1998
Copy link
Owner

  • Minify files.
  • Refactor Code
  • Remove gifs
  • Angular configs
@ankushgarg1998
Copy link
Owner Author

ankushgarg1998 commented Jun 28, 2020

CURRENT SITUATION
AWS Data Transfer limit is being exceeded big time.

  • The angular app after build creates a 3.1MB static webpage.
  • 3MB per request being served is 3GB data out (from EC2 to Internet) in 1000 request serves.
  • Only 1 GB/mo is free in AWS. And beyond that up to 10 TB/mo it's $0.1093 per GB.
  • Serving 10k requests/mo will require a minimum of 30GB data transfer, i.e. >$3 (roughly ₹300/mo).

@ankushgarg1998 ankushgarg1998 changed the title Size of the file exceeding 2MBs leading to slower loading on low speed connections Size of the file exceeding 2MBs leading to slower loading on low speed connections and expensive AWS bills. Jul 19, 2020
@ankushgarg1998
Copy link
Owner Author

UPDATE
Removed a lot of stuff to reduce the build size to 2MB.

@ankushgarg1998
Copy link
Owner Author

UPDATE
Up to 15 GB egress traffic is free in the free tier.

So if a single request takes 2 MB, that allows me about 7.5k free request serves per month.
Which is okay for now, but won't be enough once I start adding other courses as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant