
Security News
The Changelog Podcast: Practical Steps to Stay Safe on npm
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.
github.com/pkosterman/aws-lambda-barcode-generator
Advanced tools
This is a sample project to demonstrate usage of Golang for AWS Lambda.
AWS Lambda is a cloud computing service that lets you run code without provisioning or managing servers. AWS Lambda executes your code only when needed and scales automatically.
Currently AWS Lambda natively supports Java, Node.js, Python, and C#.
This project uses a Node.js wrapper to build a Go Lambda function that generates and returns a barcode when triggered by AWS API Gateway. The barcode is returned as a base64 encoded PNG image string.
The Node.js wrapper keeps a Go process around to handle multiple invocations. The first time the function runs it will take a bit longer, but after that it greatly increases performance.
I have been using Go for the past 3 years, it's our language of choice at PassKit because of:
The Node.js wrapper used in this project is inspired by:
Click here for a detailed article on how to set this up with AWS API Gateway and Route 53.
Clone this repo and cd into the project root then:
./build.sh
This will place a lambda.zip file into the build folder. You can update this zip file into AWS Lambda.
If you want to run go test, then you will also need to install lambda-test (Node command-line tool). I will
place a repo of this on github shortly - just need to rewrite some of the logic.
FAQs
Unknown package
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.

Security News
Ruby's creator Matz assumes control of RubyGems and Bundler repositories while former maintainers agree to step back and transfer all rights to end the dispute.