News for hackers. Stuff that matters.
Re:New for AWS Lambda: Use Any Programming Language and Shar... by samstave on Thursday November 29, 2018 @04:39PM (#18564301)
For the uninitiated, can you please provide some example use cases where you would use Lambda for Haskell for great good?
Re:New for AWS Lambda: Use Any Programming Language and Shar... by Tehnix on Thursday November 29, 2018 @05:29PM (#18564744)
Honestly, for everything we are currently running on Lambda. At the moment we are using the Node.js runtime with Typescript.

We use both Lambda for data processing on incoming IoT events, and also for API interactions with our user, along with services to send mails and SMS, etc.

---

I would just want to use the robustness and correctness that I'm able to ensure with Haskell, compare to TypeScript, and especially bundling quirks with Webpack and NPM.

An example of an easy thing to let through is missing an _await_ on a call (might be for logging or something else), which means it'll go out-of-band, and can then easily not be run during the execution, if you have disabled waiting for the event loop to be done (which is necessary in many cases for global setup optimizations).

The call might then finish when the lambda function is thawed, but it might also never run, because the function gets collected.

Now, admittedly, this is not a big issue in any way, but it's the death by a thousand papercuts that I'd like to avoid.

Re:New for AWS Lambda: Use Any Programming Language and Shar... by freedomben on Thursday November 29, 2018 @06:45PM (#18565290)
Haskell (and many functional languages) excel at tasks where data is being transformed and/or can be modeled that way. Most of our lambda functions do exactly that.