News for hackers. Stuff that matters.
Re:Show HN: s3-lambda – Lambda functions over S3 objects: ea... by DenisM on Sunday February 12, 2017 @01:53PM (#13629856)
So... the client-side code iterates S3 objects matching a certain filter, and then schedules a lambda for each one of those objects. Is that right? Or does the iteration procedure itself is a lambda? Also, when you chain several operators together, where does the chaining happen?

I'd like to understand where different parts of the code are being executed.

Re:Show HN: s3-lambda – Lambda functions over S3 objects: ea... by daviding on Sunday February 12, 2017 @02:04PM (#13629915)
On a quick page-down through the code, I think this is not related to AWS-Lambda, it's more 'local lambda' where the map etc is run locally.
Re:Show HN: s3-lambda – Lambda functions over S3 objects: ea... by wellsjohnston on Sunday February 12, 2017 @02:02PM (#13629906)
First, a list of keys is generated based on the set context (and modifier functions). "context" returns a Request object, allowing you to call a lambda function (each, forEach, map, reduce, filter). Each lambda function returns a Promise, allowing you to chain them together. They will operate over the same context, in sequence.

Edit: This is not related to aws lambda...sorry for the confusion

Re:Show HN: s3-lambda – Lambda functions over S3 objects: ea... by tjholowaychuk on Sunday February 12, 2017 @04:06PM (#13630820)
I thought this too. You could easily ship/eval the toString()'s of the functions in individual Lambda functions, the name is definitely confusing haha.