Skip to content

lambda

44 posts

lambda
Where Should Claude Code Run? Devcontainer, Codespaces, or MicroVM

Devcontainers, Codespaces and AWS Lambda MicroVMs as homes for a coding agent: what each rung adds, what it costs, and when moving the agent off the laptop pays off.

lambda · claude-code · ai-tools +5

Choosing a Serverless Internal Service Layer7/7

Before building an internal service layer, decide whether you need one: what it costs per call, the volume where VPC Lattice wins, and when direct invoke still beats it.

aws · aws-cdk · lambda +4

gRPC, Protobuf, and the Wire Format Your Gateway Allows6/7

A private REST API structurally cannot carry gRPC, and every AWS surface that speaks gRPC excludes Lambda targets. What to keep from gRPC, and what to drop.

aws · aws-cdk · lambda +4

Building the Layer with a Private API Gateway5/7

The private REST API, the resource policy that switches it on, per-route AWS_IAM grants, the two CDK stacks, and signing the call from a Node 22 Lambda.

aws · aws-cdk · lambda +4

Identity and Encryption Between Serverless Services4/7

SigV4 proves which service is calling and nothing about which user it is for. How to propagate a verified subject, and what the transport actually encrypts.

aws · aws-cdk · lambda +4

Multi-Account: Cross-Account Calls and the Data Perimeter3/7

Same-account, the resource policy and the caller's identity policy are an OR. Cross-account they become an AND, and silence denies. What that changes in the perimeter.

aws · aws-cdk · lambda +4

How the Layer Fails: Throttles, Retries, and Loops2/7

API Gateway shares one throttle bucket with your front door, never retries a Lambda integration, and cannot see loops through itself. What you have to rebuild.

aws · aws-cdk · lambda +4

Observability, and Where Service Meshes Are Heading1/7

The access log already names the caller, route, and latency. Per-route metrics are not free, the user token needs masking, and AWS is switching off its own mesh.

aws · aws-cdk · lambda +4

CDK TypeScript Lambda: Choosing a Bundler and cdk synth Runner

A measured benchmark of 9 bundlers and 3 cdk synth runners for CDK TypeScript Lambdas, with a per-layer default and the rule that picks each one.

aws-cdk · lambda · typescript +3

Lambda Durable Functions vs Step Functions: When the Orchestrator Belongs in Your Code

Lambda durable functions put the orchestrator in your TypeScript. Reach for them when you own the whole workflow; keep Step Functions for cross-team state machines.

lambda · step-functions · serverless +1

Code Architecture by Init Amortization: Lean on Lambda, Heavy Only When Earned

Match architecture weight to each runtime's init-amortization: lean handlers on single-purpose Lambda, more on a Lambdalith, full OOP/DI only on long-lived runtimes.

architecture · lambda · serverless +3

Effect on AWS Lambda: Building a URL Shortener with SST and DynamoDB

A small, complete URL shortener on AWS Lambda and DynamoDB with Effect and SST v4, showing schema-at-the-boundary, layers, and tagged-error mapping.

functional-programming · lambda · typescript +2

AWS Lambda: Single-Purpose Functions vs Lambdalith

How to slice AWS Lambda functions: default to single-purpose, treat the single-domain Lambdalith as an earned exception, and the platform forces that decide it.

lambda · serverless · architecture +2

AWS Lambda Cold Start Optimization in TypeScript: 5 Anti-Patterns

DI containers, monolithic SDKs, god-handlers, top-level secret fetches, and heavy ORMs: what they cost on cold start, and the functional shape that replaces them.

lambda · typescript · serverless +2

Running Bun and Alternative JavaScript Runtimes on AWS Lambda

Run Bun and Deno on AWS Lambda with custom runtimes: performance benchmarks, cost analysis, and production deployment patterns.

lambda · javascript · serverless +2

Edge Computing with AWS: CloudFront Functions vs Lambda@Edge

A technical guide to choosing and implementing AWS edge computing for global apps, with practical examples and cost optimization strategies.

aws · cloudfront · lambda +6

Amazon Cognito Deep Dive: Beyond Basic Authentication

A technical guide to advanced Amazon Cognito: custom auth flows, federation, multi-tenancy, migration strategies, and production-grade security with CDK.

aws · authentication · serverless +6

Learning Effect: A Practical Adoption Guide for TypeScript Developers

A practical guide to learning Effect incrementally and integrating it with AWS Lambda, with real code examples, common pitfalls, and production patterns.

typescript · functional-programming · lambda +4

AWS Secrets Manager & Parameter Store: Security Best Practices

A technical guide comparing AWS Secrets Manager and Parameter Store, showing when to use each service with real-world implementation patterns and CDK examples.

aws · secrets-management · security +7

AWS Cost Optimization Toolkit - Practical Strategies for Production Workloads

The order that makes AWS cost work stick: visibility with Cost Explorer and Budgets, right-sizing with Compute Optimizer, then commitments.

aws · cost-optimization · aws-cdk +1

Mozilla SOPS: Encrypting Secrets in Git for GitOps

A practical guide to Mozilla SOPS for encrypting secrets in Git: age encryption, AWS CDK and Lambda patterns, and production-ready serverless security.

secrets-management · ci-cd · terraform +7

Testing Serverless Applications: A Practical Strategy Guide

Build a testing strategy for AWS Lambda, API Gateway, DynamoDB, and Step Functions with practical patterns for fast feedback and reliability.

lambda · testing · serverless +8

Middy and Zod: Type-Safe AWS Lambda Middleware Validation

Build maintainable, type-safe Lambda middleware with Middy's builder pattern, Zod validation, feature flags, and secrets management for serverless apps.

lambda · middleware · typescript +7

CloudEvents SDK for TypeScript: Standardizing Events in Serverless Architectures

A practical guide to the CloudEvents spec and TypeScript SDK: create, parse, and validate standardized events across AWS Lambda and EventBridge.

typescript · serverless · lambda +2

Lambda Layer Versioning Strategies for Multi-Environment Deployments

Practical approaches to managing Lambda Layer versions across dev, staging, and production with AWS CDK, automated deployment pipelines, and rollbacks.

aws · lambda · aws-cdk +4

Building Ephemeral Preview Environments with AWS CDK and Serverless

Learn to build automated preview environments using AWS CDK, Lambda, and GitHub Actions for seamless PR testing and review workflows

aws-cdk · serverless · ci-cd +5

Migrating from Node.js to Go on AWS Lambda: A Practical Guide

When a Node.js to Go move on AWS Lambda pays for itself and when it does not: the decision framework, the serverless Go patterns, and the cost math behind the call.

go · nodejs · serverless +5

Build a URL Shortener with AWS CDK Part 3: Security & Custom Domains4/4

Implementing custom domains, bulk operations, URL expiration, and defense-in-depth security measures for production link shortener services.

aws-cdk · lambda · security +5

Build a URL Shortener with AWS CDK Part 4: Production Deployment3/4

Multi-environment deployment, performance optimization at scale, cost management, and monitoring with solid incident response patterns.

aws-cdk · lambda · dynamodb +6

AWS CDK Link Shortener Part 1: Project Setup & Basic Infrastructure2/4

Set up a production-grade link shortener with AWS CDK, DynamoDB, and Lambda: architecture decisions, project layout, and the schema choices that hold up at scale.

aws-cdk · lambda · dynamodb +5

AWS CDK Link Shortener Part 2: Core Functionality & API Development1/4

Build the redirect engine, analytics collection, and API Gateway config: performance optimizations and debugging strategies for millions of daily redirects.

aws-cdk · lambda · api-gateway +5

AWS Lambda Cold Start Optimization: Production Lessons Learned4/4

Production-tested strategies for cutting AWS Lambda cold starts: runtime selection, provisioned concurrency, and practical optimization techniques.

lambda · serverless · cold-start +3

AWS Lambda Memory Allocation and Performance Tuning: The Complete Guide3/4

Tune AWS Lambda performance: the memory-to-CPU model, benchmarking with Power Tuning, cost analysis, and adaptive allocation patterns.

lambda · serverless · performance +2

AWS Lambda Production Monitoring and Debugging: Proven Strategies2/4

Instrument AWS Lambda for production: CloudWatch custom metrics, X-Ray tracing, structured logging, and alerts that track business impact.

lambda · serverless · monitoring +2

AWS Lambda Cost Optimization: VPC, Layers, and Advanced Patterns1/4

Advanced AWS Lambda patterns and cost optimization: Lambda Layers, VPC configuration, cross-account execution, and architectural decisions.

lambda · serverless · cost-optimization +5

Middy Alternatives: Building a Custom AWS Lambda Middleware Framework2/2

When a Lambda fleet outgrows Middy's static middleware model, how a project-specific engine handles per-request config, and what owning one costs

lambda · middleware · performance +6

AWS Lambda Middleware with Middy - Clean Code and Best Practices1/2

Discover how Middy transforms Lambda development with middleware patterns, moving from repetitive boilerplate to clean, maintainable serverless functions

lambda · middleware · serverless +5

AWS Lambda Performance Optimization: Sub-10ms Latency

Hold AWS Lambda warm-path latency inside a 10 ms budget with runtime choice, connection reuse, bundle discipline, caching, and memory tuning.

aws · lambda · performance +4

S3 Presigned URLs for Large File Uploads with Lambda and CDK

Handle large file uploads with S3 presigned URLs instead of Lambda proxies: a full CDK stack, both handlers, the browser side, and the security trade-offs.

lambda · aws-cdk · aws +2

AWS Lambda with TypeScript: Production Best Practices

Moving from Express.js to Lambda: the common mistakes teams make along the way, and the TypeScript patterns that reduce AWS bills at scale.

api-gateway · cost-optimization · lambda +2

CQRS with AWS Lambda, EventBridge, and DynamoDB

A practical CQRS implementation with AWS Lambda, EventBridge, and DynamoDB, covering event sourcing, eventual consistency, and distributed debugging.

architecture · dynamodb · event-driven +3

Replacing Factories and DI in Node.js with Pure Functions

Factories, service layers, and DI containers rarely earn their keep in a Lambda-shaped Node.js service. What replaces them, and where classes still win.

event-driven · functional-programming · lambda +3

Migrating from Serverless Framework to AWS CDK: Part 3 - Lambda Functions and API Gateway1/1

Migrate Lambda functions, API Gateway, request validation, and error handling from Serverless Framework to AWS CDK with practical examples.

api-gateway · aws · aws-cdk +2

Zod + OpenAPI + AWS Lambda: Schema-First API Development with CDK

Keep a Lambda API and its OpenAPI contract in sync by generating the spec from Zod schemas and wiring that generation into CDK deployment.

api-gateway · aws-cdk · lambda +4