Skip to content
This repository has been archived by the owner on Jan 15, 2023. It is now read-only.

DOCKER_LAMBDA_STAY_OPEN via API #246

Open
elthrasher opened this issue Jan 26, 2020 · 4 comments
Open

DOCKER_LAMBDA_STAY_OPEN via API #246

elthrasher opened this issue Jan 26, 2020 · 4 comments

Comments

@elthrasher
Copy link

First, thanks for this great project. The number one thing keeping from serverless has always been the tooling/dev experience and I feel like a lot of those problems are being solved.

DOCKER_LAMBDA_STAY_OPEN is a great feature for development, but looks like I still need to lambda invoke to call the method. Is there any way to connect with the api gateway provided by SAM? I couldn't figure it out.

My use case is that I work with teams that use a lot of docker-compose to run a handful of services for local development. I'd like to start introducing serverless to our workflows and in fact am considering wrapping a couple of these services in aws serverless express. It's pretty easy to use lambci and DOCKER_LAMBDA_STAY_OPEN to get a persistent container running one of our lambdas, but lambda invoke isn't going to give us that cohesive developer experience.

I couldn't find an api-to-lambda-invoke wrapper for local dev, so I wrote one and it works fine, but I'm not really looking to reinvent the wheel or take on the maintenance debt if there's already something out there I'm just not seeing. Can you point to any existing solutions/something I missed? If not I'd be happy to continue with my local gateway and share it.

@contributionls
Copy link

First, thanks for this great project. The number one thing keeping from serverless has always been the tooling/dev experience and I feel like a lot of those problems are being solved.

DOCKER_LAMBDA_STAY_OPEN is a great feature for development, but looks like I still need to lambda invoke to call the method. Is there any way to connect with the api gateway provided by SAM? I couldn't figure it out.

My use case is that I work with teams that use a lot of docker-compose to run a handful of services for local development. I'd like to start introducing serverless to our workflows and in fact am considering wrapping a couple of these services in aws serverless express. It's pretty easy to use lambci and DOCKER_LAMBDA_STAY_OPEN to get a persistent container running one of our lambdas, but lambda invoke isn't going to give us that cohesive developer experience.

I couldn't find an api-to-lambda-invoke wrapper for local dev, so I wrote one and it works fine, but I'm not really looking to reinvent the wheel or take on the maintenance debt if there's already something out there I'm just not seeing. Can you point to any existing solutions/something I missed? If not I'd be happy to continue with my local gateway and share it.

yeah, this is exactly what features i want

@mhart
Copy link
Member

mhart commented Mar 19, 2020

I believe https://github.com/dherault/serverless-offline supports this now

@elthrasher
Copy link
Author

I came up with my own solution: https://github.com/elthrasher/http-lambda-invoker

@tyliggity
Copy link

@elthrasher dude... you're a baddass. works like a charm and you wrote it in Go. rock on 🥇

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants