Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Use hal and custom runtime instead of node.js #1

Open

Description

@purefn

What are your thoughts on switching from using a node.js runtime environment to using a custom environment with hal instead?

Activity

  1. nmattia commented on Mar 21, 2019

    @nmattia
    Owner

    I didn't know about hal, thanks for sharing! I'll have a look this weekend.

  2. nmattia commented on Mar 24, 2019

    @nmattia
    Owner

    This is very interesting, I didn't know you could provide custom runtimes: https://docs.aws.amazon.com/lambda/latest/dg/runtimes-custom.html

    I wonder if using hal would buy us anything, since we need the full input request as opposed to just the request body (I'm sure there's a way of accessing that with hal but couldn't find it). Also the wai-lambda code is much shorter so I do wonder if this wouldn't be overkill. Another solution would be for wai-lambda to provide a function similar to pureRuntime that turns the executable into a "runtime". ll play with both solutions and see what the pros and cons are. Do you have any experience using it @purefn ? Anything to report?

  3. purefn commented on Mar 24, 2019

    @purefn
    Author

    I haven't used It in anger yet, I've just played with it a bit. I think the mail benefit would be getting rid of any JS code in favor or pure Haskell. It should result in easier to maintain and understand code and better performance.

    I'm not sure what you mean about not having full access to the Lambda request. Any of theWithContext or the readerTRuntime function allow you to read it out of the environment.

  4. Zenleaf commented on Apr 23, 2019

    @Zenleaf

    You have probably seen this already but you can also use the Haskell AWS Lambda Runtime https://medium.com/the-theam-journey/getting-started-with-the-haskell-aws-lambda-runtime-951b2322c7a3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions