So you need to convert 1 million documents average of 5 MB size.
This will result in 5 terabytes of S3 storage per month. As you see, this is the primary driver of price, not computing cost.
Price per unit
|S3 Storage||1,000,000 * 5MB||$0.000023||$115.00|
|Lambda Runtime||1,000,000 * 1.5GB * 1.2s||$0.00002501||$30.01|
|S3 PUT Requests||1,000,000||$0.000005||$5.00|
|S3 GET Requests||1,000,000||$0.0000004||$0.40|
Currently ƛ unpacks 109 MB
/tmp folder which takes ~1-2 seconds on cold start.
Would be nice to create a single compressed executable to save unpack time and increase portability. I tried using Ermine packager and it works!! But unfortunately this is commercial software. Similar open-source analogue Statifier produces broken binaries.
Maybe someone has another idea how to create a single executable from a folder full of shared objects.
I am not a Linux or C++ expert, so for sure I missed some easy "hacks" to reduce size of compiled LibreOffice.
Mostly I just excluded from compilation as much unrelated stuff as possible. And stripped symbols from shared objects.