Home / Market / architecture-paradigm-serverless

architecture-paradigm-serverless

Serverless FaaS patterns. Use for bursty event-driven workloads with pay-per-execution cost and little infrastructure

skill★ 00 dlclawhubMIT-0Install in CosmosUpstream Source

Documentation & Preview

--- name: architecture-paradigm-serverless description: | Serverless FaaS patterns. Use for bursty event-driven workloads with pay-per-execution cost and little infrastructure version: 1.10.3 triggers:

metadata: {"openclaw": {"homepage": "https://github.com/athola/claude-night-market/tree/master/plugins/archetypes", "emoji": "\ud83c\udfd7\ufe0f"}} source: claude-night-market source_plugin: archetypes

---

> Night Market Skill: ported from claude-night-market/archetypes. For the full experience with agents, hooks, and commands, install the Claude Code plugin.

The Serverless Architecture Paradigm

When To Use

When NOT To Use

When to Employ This Paradigm

Adoption Steps

  1. Identify Functions: Decompose workloads into small, stateless function handlers triggered by events such as HTTP requests, message queues, or scheduled timers.
  2. Externalize State: use managed services like databases and queues for all persistent state. Design handlers to be idempotent to validate that repeated executions do not have unintended side effects.
  3. Plan Cold-Start Mitigation: For latency-sensitive paths, keep function dependencies minimal. Employ strategies such as provisioned concurrency or "warmer" functions to reduce cold-start times.
  4. Implement Instrumentation and Security: Enable detailed tracing and logging for all functions. Adhere to the principle of least privilege with IAM roles and set per-function budgets to control costs.
  5. Automate Deployment: Use Infrastructure-as-Code (IaC) frameworks like SAM, CDK, or Terraform to create repeatable and reliable release processes.

Key Deliverables

Risks & Mitigations

Concrete Components

Vocabulary for the tools and abstractions an implementation of this paradigm tends to carry. Not dependencies, and not `tools:` frontmatter.

Exit Criteria

cold-start mitigation approach, and cost projections before any function is deployed.

and its supporting infrastructure, and a deploy from scratch reproduces it.

same outcome and no duplicate side effects (verified by unit test with replayed inputs).

cost per invocation before the function reaches production traffic.