Hi all,

I've been using AWS Lambda for a small project. I've been leveraging the 
lein-clj-lambda <https://github.com/mhjort/clj-lambda-utils> 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 spent 
uploading the Jar up to S3. The resulting Jar file is only about 12mb but 
does considerably slow down the feedback loop.

I have the following questions:

   - Does anyone have any tips for reducing the size of a jar even more?
      - I've tried excluding dependencies until the Jar broke, saved a few 
      KBs
      - I briefly looked into ProGuard, but the obfuscating process seemed 
      to take some time which would negate any time saved on upload.
   - Am I doing this wrong? Is there a way to mimic AWS Lambda locally?
      - To mitigate this loop, I use the REPL to play with the individual 
      functions until they feel right, but at some point you gotta test on the 
      server, being far from perfect, I make a lot of mistakes so that's when 
the 
      iteration happens.
   
Here's a link to the project.clj 
<https://github.com/guacamoledragon/petfinder/blob/master/twilio-webhook/project.clj>
 
in question for reference.


I will say that using the lein-clj-lambda is already a huge win (before 
plugin it was `lein uberjar`, manually upload jar to S3, manually update 
AWS Lambda), but I'm wondering if there's an even better way.


-jvt

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to