News for hackers. Stuff that matters.
Re:Welcome to the New AWS AI Blog by tcas on Tuesday February 21, 2017 @01:41PM (#13698159)
I've hacked around lambda quite a bit (I think the compressed size of one function is a tad under the max allowed). My hacks I remember are:

- Run strip all .so libraries -- many aren't stripped fully

- In Python I manually deleted sub packages of numpy/scipy I didn't need

- If you're loading large models at initialize, numpy load routines are _much_ faster than cPickle. Have it load at module initialization, not during each invocation.

I should really write a blog post about my experience with it.

At a certain point I decided I was doing something that lambda really wasn't designed for -- I'm looking at migrating off, but the current implementation makes capacity planning super easy. Provisioning 1000 machines with 1GB of RAM for 15 minutes every day to read off a queue isn't a trivial problem.

(Also, if anyone from AWS is reading, being able to limit the max concurrency of a single function vs account level limits would be super useful).

Re:Welcome to the New AWS AI Blog by jedberg on Tuesday February 21, 2017 @05:58PM (#13700988)
Just to throw this out there as another possible optimization, if you find that you're putting a big fat library into every function, one possibility is to run the library as its own lambda function. You'll be slowed down a bit by the network but it might be made up for by not having to constantly initialize the same thing.
Re:Welcome to the New AWS AI Blog by niklasrde on Tuesday February 21, 2017 @02:07PM (#13698517)
That sounds quite similar to what we're doing!

Would love to see a blog post to compare experiences..

(Speaking of blogposts.. that was somewhere on the todo list..)

Re:Welcome to the New AWS AI Blog by btown on Tuesday February 21, 2017 @01:45PM (#13698206)
Would love to see that blog post!