DEV Community

[Comment from a deleted post]
Collapse
 
rolandcsibrei profile image
Roland Csibrei

Hello! Thanks a lot for sharing! I think all of us will need to zip/unzip data sooner or later. I am working on a PWA which needs to poll data from an API every 5 minutes. When I started to work on the application, the payload was around 20 kB. Nowadays it is around 400 kB and mobile data users started to complain. I can't change the API so I created an AWS lambda, which polls the data and I used your zip function to zip the data and store in a S3 bucket. The PWA now polls the data from this bucket. The zipped file is around 13 kB. And again, unzip with your function. I was already thinking about stripping or packing the payload so your article saved me time. I owe you a drink dude 😂 thanks again and keep posting! R.

Collapse
 
daviddalbusco profile image
David Dal Busco

Wow that's so cool to hear this story!!! Thanks a lot for the feedback, happy to hear it was useful 🥳