Skip to content

Overview

Dual Serve is a minimalistic, developer-friendly TypeScript framework designed to simplify the creation, testing, and deployment of AWS Lambda functions.

Key Features

  • Local Development & Runtime

Dual Serve includes a built-in run mode, allowing you to test Lambda functions locally without any Docker dependency.

  • Multi-Stage Support

Easily manage multiple environments such as local, dev, and production with clear and simple configuration.

  • Powered by AWS CDK

Leverages the official AWS Cloud Development Kit (CDK) under the hood, while providing a streamlined and minimal configuration layer on top of it.

  • Lightning Fast Build

All Lambda functions are compiled, minified, and bundled into a single file output at build time. This significantly reduces the deployment size—typically just a few hundred KBs—leading to faster cold starts.

  • 100% TypeScript Support

From infrastructure to application code, everything is written and managed in TypeScript, enabling better type safety and developer experience.

Dual Serve vs AWS SAM

FeatureDual ServeAWS SAM
Language SupportFull TypeScript (infra + code)YAML for infra, runtime support for various langs
Build SystemBundled + minified single outputDocker-based builds for some runtimes
Docker DependencyNot requiredRequired for local testing/build
Cold Start OptimizationSingle small file per function (~KBs)Often larger artifacts
Infrastructure as CodeSimplified CDK abstraction (TS-based)SAM template in YAML
Local DevelopmentBuilt-in run command (no Docker)Uses Docker to emulate AWS Lambda
Multi-Stage DeploymentNative support (local, dev, prod)Manual or CI/CD-based stage handling
Learning CurveEasy for TypeScript/Node.js developersRequires learning SAM CLI and YAML format
Deployment SpeedFast (minimal CDK wrapper)Slower due to Docker and large templates