Re: Reducing Jar file size for AWS Lambda

2017-07-24 Thread Kimmo Koskinen
Hi! Not yet Clojars -ready so lein install for now. There is also #portkey on Clojurians Slack for chatting. Happy hacking! :) - Kimmo maanantai 24. heinäkuuta 2017 8.24.29 UTC+3 Jose Trigueros kirjoitti: > > This looks like a viable solution! Is Portkey on Clojars or will I have to > build my

Re: Reducing Jar file size for AWS Lambda

2017-07-23 Thread Jose Trigueros
This looks like a viable solution! Is Portkey on Clojars or will I have to build myself? Not a problem either way, just making sure I'm doing it right. Thanks Kimmo. On Sunday, July 23, 2017 at 2:35:37 AM UTC-6, Kimmo Koskinen wrote: > > Hi! > > Although still at early stages, check out portkey

Re: Reducing Jar file size for AWS Lambda

2017-07-23 Thread Colin Fleming
portkey looks great, I wasn't aware of that - thanks! On 23 July 2017 at 20:35, Kimmo Koskinen wrote: > Hi! > > Although still at early stages, check out portkey > https://github.com/cgrand/portkey. > > Portkey does tree-shaking by starting from a closure to minimize resulting > jar size. Uses k

Re: Reducing Jar file size for AWS Lambda

2017-07-23 Thread Kimmo Koskinen
Hi! Although still at early stages, check out portkey https://github.com/cgrand/portkey. Portkey does tree-shaking by starting from a closure to minimize resulting jar size. Uses kryo and implementation of var tracing started in powderkeg project (https://github.com/HCADatalab/powderkeg) .

Re: Reducing Jar file size for AWS Lambda

2017-07-22 Thread Jose Trigueros
Hi Moe, Thanks for your suggestions, yes, I've been mostly practicing the first option suggested. docker-lambda is a good option as well. It does help that Lambda provides test messages, which is what I've been using to test locally. Seems like the best way to go about it is to test as much as

Re: Reducing Jar file size for AWS Lambda

2017-07-20 Thread Moe Aboulkheir
Jose, Leaving aside shrinking the jar, you could try: - Structuring your application so it's easier to construct plausible inputs in the tests / REPL - Using https://github.com/lambci/docker-lambda locally, to get an environment closer to the deployment target - Deploying to a geographically cl

Reducing Jar file size for AWS Lambda

2017-07-19 Thread Jose Trigueros
Hi all, I've been using AWS Lambda for a small project. I've been leveraging the lein-clj-lambda plugin to build and upload the compiled Jar to S3 which is then used to update my Lambda function. Aside from the Jar generation, a lot of the time is sp