Workers & Cron
Not every Lambda sits behind an API. The worker starter and the WorkerStack abstraction exist for background processing and scheduled jobs — a function with an SQS event source, or a function on an EventBridge schedule, with no API surface at all.
Worker lambdas
Section titled “Worker lambdas”A WorkerLambdaConfig (kind: "worker") describes a function driven by an event source rather than a route. Pair it with an AtfSqs queue and the DLQ-by-default posture gives you a place to inspect failures for free.
Cron lambdas
Section titled “Cron lambdas”A CronLambdaConfig (kind: "cron") describes a function on an EventBridge schedule. Author the schedule in the config; the framework wires the rule and target.
Adding a worker with the CLI
Section titled “Adding a worker with the CLI”axs add lambda reports/nightly --kind cronaxs add lambda queue/consumer --kind workerSee the axs add lambda reference — --kind accepts api | worker | cron | edge.
The bare starter
Section titled “The bare starter”If you want a single standalone Lambda and nothing else — no API, no event source, just a function that exists — the bare starter scaffolds exactly that with raw CDK, ready to grow. See Create a Project for the starter list.
Where to go next
Section titled “Where to go next”- Messaging for the queues and buses workers consume.
- Lambda Runtimes & the Factory for runtimes and defaults.
© 2026 Axis Tech. Powered by axis-tech.co.