TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: I wrote a book about using Lambda with Go

103 点作者 kevinmcconnell超过 3 年前
Hi HN!<p>During the last few years, I worked on a few applications built with Go, running on AWS Lambda.<p>As I got to know the platform better, I started to find Go &amp; Lambda to be a really productive combination. The applications were fast, and they ended up being much cheaper to run than what my team &amp; I had built before. It’s probably not the best platform for _every_ application, but I was surprised at how much of our workload worked well on it.<p>As we brought new engineers on to our team and helped them get up to speed with the stack, I found that we were covering a lot of the same topics over and over — especially things like performance, testing and monitoring. Since this knowledge turned out to be very useful for our team, I decided to gather it into a book that will hopefully also be useful to others.<p>This is my first time putting something like this together, so I&#x27;m grateful for any feedback!<p>The book is at: https:&#x2F;&#x2F;kevinmcconnell.gumroad.com&#x2F;l&#x2F;lambda-go-book&#x2F;hn (with HN discount ;))<p>There&#x27;s also a link on that page to a free sample that you can download without registering.<p>Thanks!<p>Cheers, Kevin

5 条评论

zxcvbn4038超过 3 年前
Golang is great for lambda - you compile in the entire lambda runtime and end up with a single 20MB executable that does everything needed. Other runtimes have a couple hundred megabytes of overhead for the lambda runtime and AWS SDK (though you don’t see the overhead unless your doing the ECR based lambdas). The part I’ve always struggled with is cloudformation only lets you inline 4K of code. The underlying api allows for payloads of up to 50mb before you have to pull from S3 or ECR, would love to see a little more flexibility - otherwise you have a lot of overhead to setup ci&#x2F;cd pipelines and signal lambda to update from another source.
评论 #29442706 未加载
kevinmcconnell超过 3 年前
I forgot URLs don&#x27;t become links in the submission text, so here&#x27;s a clickable one :)<p><a href="https:&#x2F;&#x2F;kevinmcconnell.gumroad.com&#x2F;l&#x2F;lambda-go-book&#x2F;hn" rel="nofollow">https:&#x2F;&#x2F;kevinmcconnell.gumroad.com&#x2F;l&#x2F;lambda-go-book&#x2F;hn</a>
tgv超过 3 年前
Any experience with cold start times? I wrote a relatively simple lambda handler in Go, expecting it to be fast, but node seems to beat it. The Go version&#x27;s memory usage is better, though.
评论 #29442832 未加载
评论 #29445354 未加载
rememberlenny超过 3 年前
I have used Lambda extensively over the past three months in Python, Ruby and Node. The largest game changer for me was discovering Lambda Layers and realizing how I could avoid compiling zip folders to deploy. I’ve loved the iteration speed and performance, and recently have depended heavily on the Lambda + EFS combo.<p>I purchased the book and was surprised there wasn’t more on the EFS usage, but otherwise the book looks wonderful.
评论 #29442102 未加载
评论 #29442111 未加载
评论 #29442631 未加载
clmcleod超过 3 年前
Just curious, what did you typeset the book with?
评论 #29444585 未加载