ipu-ranklist icon indicating copy to clipboard operation
ipu-ranklist copied to clipboard

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

Open ankushgarg1998 opened this issue 4 years ago • 3 comments

  • Minify files.
  • Refactor Code
  • Remove gifs
  • Angular configs

ankushgarg1998 avatar Jun 27 '20 21:06 ankushgarg1998

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 avatar Jun 28 '20 10:06 ankushgarg1998

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

ankushgarg1998 avatar Aug 02 '20 08:08 ankushgarg1998

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.

ankushgarg1998 avatar Aug 02 '20 08:08 ankushgarg1998