Best of AWS LambdaOctober 2024

  1. 1
    Article
    Avatar of awegoAwesome Go·2y

    Writing an HTTP Router for AWS Lambda Functions From Scratch With Go

    Deploying REST APIs using serverless architecture with AWS Lambda can deliver advantages like pay-per-request pricing and no infrastructure management but also presents challenges such as cold starts and vendor lock-in. To optimize HTTP request routing in Lambda functions, the author implemented a custom router called LambdaMux using a radix tree for efficient matching, competing with existing solutions such as aws-lambda-go-api-proxy and LmdRouter. Benchmarks show LambdaMux offers performance improvements, particularly in high-throughput scenarios. Future enhancements may include adding middleware support and query parameter parsing.

  2. 2
    Article
    Avatar of theburningmonktheburningmonk.com·2y

    How to build a Leaderboard service with Momento: a step-by-step Guide

    Learn to build a scalable leaderboard service using Momento's Sorted Set collections with a step-by-step guide. The guide covers creating API routes for submitting scores, getting user rankings, and listing leaderboard entries, all implemented with AWS Lambda and API Gateway. It also provides tips for securely handling API keys with AWS Systems Manager Parameter Store.