Coder Social home page Coder Social logo

fake-api-gateway-lambda's People

Contributors

dominictarr avatar heapwolf avatar jwerle avatar raynos avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

fake-api-gateway-lambda's Issues

sadly, enable cors behavior is incorrect

The enable cors functionality in this module is how I wish api-gateway worked -- it sets the header on the response, which is sent to the client, even if the lambda doesn't set it. however, this isn't actually how aws lambda works. When I was trying to make cors work with lambda it only worked when I explicitly set the cors headers in the lambda.

Allow for setting max memory / runtime settings

This requires checking in 3 languages, something like

setInterval(() => {
  const ht = process.memoryUsage().heapTotal
  const mb = Math.round(ht / 1024 / 1024 * 100) / 100)
  if (ht >= MAX_MEM) process.exit(EXIT_CODE)
}, 512)

setTimeout(() => {
  process.exit(EXIT_CODE)
}, MAX_RUNTIME)

Local go server has cryptic errors

When I try to call into a go lambda that has a compile or runtime error I get

dial tcp: connection refused

Looks like we need to get more error output bubbled up.

does not correctly replicate syntax error behavior

if you deploy code to lambda that has a syntax error, iirc it becomes a runtime Internal Server Error to the client request.
but deploying a lambda with this code will cause the worker process to crash.

curiously, it crashes on the first request.

reading the code, I see that each worker loads all lambdas. That means that one broken lambda breaks everything.

rootless docker does not pass tests

I've been trying this with rootless docker. (so you don't have to run sudo docker on every command...)

it has weirdly different behavior. It fails the tests with a network error - ECONREFUSED. Weirdly, it gets part way through and then fails.

Also, rootless docker is much slower. With root, the tests pass in 15 seconds, without root, they fail after 45 seconds, on the 3rd test of 5!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.