← 返回
未分类 中文

Nm Archetypes Architecture Paradigm Serverless

Applies serverless FaaS patterns for event-driven workloads
使用无服务器FaaS模式处理事件驱动工作负载
athola athola 来源
未分类 clawhub v1.9.12 5 版本 100000 Key: 无需
★ 0
Stars
📥 515
下载
💾 1
安装
5
版本
#latest

概述

> 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

  • Event-driven workloads with variable traffic
  • Minimizing operational overhead for cloud-native apps

When NOT To Use

  • Long-running processes exceeding function timeout limits
  • Applications requiring persistent connections or local state

When to Employ This Paradigm

  • When workloads are event-driven and exhibit intermittent or "bursty" traffic patterns.
  • When the goal is to minimize infrastructure management and adopt a pay-per-execution cost model.
  • When latency constraints from "cold starts" are acceptable for the use case or can be effectively mitigated.

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

  • An Architecture Decision Record (ADR) that describes function triggers, runtime choices, state management strategies, and cost projections.
  • A complete Infrastructure-as-Code (IaC) and CI/CD pipeline for automatically packaging and deploying functions.
  • Observability dashboards to monitor key metrics including function duration, error rates, cold-start frequency, and cost.

Risks & Mitigations

  • Vendor Lock-in:
  • Mitigation: Where feasible, abstract away provider-specific APIs behind your own interfaces or adopt portable frameworks (e.g., Serverless Framework) to reduce dependency on a single cloud vendor.
  • Debugging Challenges:
  • Mitigation: Tracing execution across distributed functions can be complex. Standardize on specific instrumentation libraries and structured logging to simplify debugging.
  • Resource Limits:
  • Mitigation: Actively monitor provider-imposed limits, such as concurrency and memory quotas. Design workloads to be shardable or horizontally scalable to stay within these constraints.

Concrete Components

These vocabulary items name the concrete tools and abstractions

that show up when the paradigm is implemented. They are not

required dependencies and they are not part of the skill's

`tools:` frontmatter (which is reserved for Claude Code tool

restrictions). Use this list to disambiguate during architecture

discussions.

  • `cloud-sdk` -- AWS SDK, Google Cloud SDK, or Azure SDK; first-class platform integration
  • `serverless-framework` -- Serverless Framework, SAM, or CDK; declarative function deployment
  • `IaC-tools` -- Terraform, Pulumi, or platform-native IaC for shared infrastructure around functions

版本历史

共 5 个版本

  • v1.9.12 当前
    2026-06-19 19:45 安全 安全
  • v1.8.6
    2026-06-09 17:40 安全 安全
  • v1.8.5
    2026-05-09 16:33 安全 安全
  • v1.8.4
    2026-05-07 04:22 安全 安全
  • v1.8.3
    2026-05-03 10:42 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

dev-programming

Mcporter

steipete
使用 mcporter CLI 直接列出、配置、认证及调用 MCP 服务器/工具(支持 HTTP 或 stdio),涵盖临时服务器、配置编辑及 CLI/类型生成功能。
★ 195 📥 67,634
dev-programming

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 677 📥 327,239
business-ops

Nm Attune Project Planning

athola
将规格说明转化为分阶段、依赖排序的实施计划,用于规格完成后、执行前。
★ 0 📥 719