3 ms·
Also to add on this... All of my lambda functions are a thin Node wrapper on top of Go applications. The go application is simply a command line accepting JSO
by avitzurel 10y ago
Also to add on this...
All of my lambda functions are a thin Node wrapper on top of Go applications.
The go application is simply a command line accepting JSON via stdin (from the Node wrapper). It is a Joy to test, you can run it locally/independently etc...
[Edit]: Typos fix
- ketralnis 10y agoDo you use a library or toolkit for this? Or is there an example of this that you can point me to? This sounds useful with or without Go
- avitzurel 10y agoLet me open source something real quick. Wouldn't call it a toolkit but might be useful for some people.
- avitzurel 10y agoQuickly open sourced as promised: https://github.com/KensoDev/sns-lambda-notifier-golang https://github.com/KensoDev/sns-lambda-notifier-golang It's simple enough to understand with absolutely no documentation. But here's the gist. You develop in Go, you can run tests or run it independent from the lambda and then, when you want to deploy you run `release.sh`. This is perfect for web callbacks, SNS notifications etc...
- dcu 10y agohttps://apex.sh https://apex.sh is nice