Menu

How We Built Chord's Backend on Go Lambdas (and Kept the AWS Bill Small)
πŸ“°

How We Built Chord's Backend on Go Lambdas (and Kept the AWS Bill Small)

DEV Community: goΒ·Michalis DaniilakisΒ·16 days ago
#eo9Ot8YP
#devtogo#devto#dev#lambda#ffmpeg
Long article (2889 words) β€” no AI summary yet.
Reading 0:00
15s threshold

Chord's entire backend runs on Go AWS Lambda functions sitting behind API Gateway. No servers to patch. No cluster idling at 3 a.m. waiting for a podcaster in another timezone to hit record. From day one we had a small team and one rule: don't pay for compute nobody is using.

This post is the honest version of how that went. Why Lambda and API Gateway made sense for an early-stage product. Why Go is a great fit for it. The limits that bit us, like timeouts and shipping ffmpeg inside a function. And how we deal with cold starts without throwing money at them.

TL;DR

Pay-per-request compute is a superpower at the early stage . Your bill tracks your usage, so low traffic means a low bill.

Go is one of the best languages for Lambda . You ship a single static binary on provided.al2023 , init is fast, and memory use is small.

Design around the timeouts from day one . API Gateway HTTP APIs give you 30 seconds, and it's a hard limit.…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.