ipu-ranklist
ipu-ranklist copied to clipboard
Size of the file exceeding 2MBs leading to slower loading on low speed connections and expensive AWS bills.
- Minify files.
- Refactor Code
- Remove gifs
- Angular configs
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).
UPDATE Removed a lot of stuff to reduce the build size to 2MB.
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.