jasonmoo/lambda_proc
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
master
Could not load branches
Nothing to show
Could not load tags
Nothing to show
{{ refName }}
default
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code
-
Clone
Use Git or checkout with SVN using the web URL.
Work fast with our official CLI. Learn more.
- Open with GitHub Desktop
- Download ZIP
Sign In Required
Please sign in to use Codespaces.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching Xcode
If nothing happens, download Xcode and try again.
Launching Visual Studio Code
Your codespace will open once ready.
There was a problem preparing your codespace, please try again.
Latest commit
Git stats
Files
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
lambda_proc This is experimental and passes tests but should be considered experimental. Leverages container reuse in aws lambda by starting go proc as companion process, communicating via stdin/stdout with parent nodejs process. Run takes a handler function and runs it once per json payload received from the parent nodejs process. Lambda containers may be frozen and thawed between invocations. This allows a go proc to live for many requests, allowing memoization, startup cost elimination, and performance benefits. Observed lambda run times between .5ms-15ms after first invocation. index.js has much more robust error handling than typical examples and will restart the go companion process when it dies, syscall writes to it fail, or other error scenarios. the example folder build.sh script and code are all complete examples of a working lambda. License: MIT 2015
About
Running a companion process to an AWS Lambda function in go
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published