backend-development-architect
Architect-level server-side direction — choosing the language and framework leaf for a workload, then the cross-language contracts a backend is built on (API boundary, layering, state ownership, failure and shutdown, security posture, deployment model). Use when starting or reviewing a backend service, before any framework-specific skill.
- License 许可
- MIT
- 最近更新
- 2026-11-13
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- backend-development-architect
- license
- MIT
- metadata
- { "crusor-path": "website-architect/backend-development-architect", "crusor-domain": "website-architect", "crusor-origin": "original", "crusor-sources": "12factor.net; OWASP ASVS; language/framework official docs", "crusor-triggers": "backend architecture, microservice, microservices, grpc, backend design, service architecture", "crusor-verified-on": "2026-10-30" }
- description
- Architect-level server-side direction — choosing the language and framework leaf for a workload, then the cross-language contracts a backend is built on (API boundary, layering, state ownership, failure and shutdown, security posture, deployment model). Use when starting or reviewing a backend service, before any framework-specific skill.
- compatibility
- Language-agnostic (Python, Node, Go, Java, Rust, .NET, Ruby, PHP). Requires ability to read and edit server source.
02 资源文件 1
- 参考文档README.md1.1 KB
03 SKILL.md 正文
Backend Architect
Backend architecture is decided by failure behaviour and ownership, not by the framework. Choose the leaf, then hold the contracts below.
When to use
- Choosing a backend language/framework for a new service.
- Layering, state, shutdown or deployment decisions inside one service.
- Reviewing a service that has grown without explicit boundaries.
When NOT to use
- Frontend rendering decisions — that is the frontend shelf.
- Multi-service topology and infrastructure — that is the cloud domain.
Leaf map
| Workload | Start with |
|---|---|
| Python service | python-architect → flask- / fastapi- / django-architect |
| Node service | nodejs-architect → express- / nestjs- / fastify-architect |
| Go service | go-architect |
| Java/JVM service | java-architect |
| Rust service | rust-architect |
| .NET service | dotnet-architect |
| Ruby service | ruby-architect |
| PHP service | php-architect |
Rules of the tree: one skill per framework, chosen by task; the language skill holds what is portable, the framework skill holds what actually differs.
Decision 1 — Language and framework selection
| Constraint | Points to |
|---|---|
| team velocity, integration-heavy, CRUD | Python/Django, Node/NestJS |
| high concurrency, modest CPU per request | Go, Node, Rust |
| CPU-bound or latency-critical | Go, Rust, JVM |
| existing enterprise integration | Java/.NET |
| one small service, minimal ops | Python/Flask, Go net/http |
Never choose on preference. Choose on: team's current skill, operational familiarity, and the load shape.
Decision 2 — The API boundary
- Contract first: the schema (OpenAPI/protobuf) is the artefact reviewed, not the handler.
- Versioning strategy chosen up front (
/v1, or a gateway) — never mutate a published shape. - One error envelope for the whole service, including validation failures.
- Idempotency keys for anything a client may retry.
- Pagination, filtering and limits are contract, not implementation detail.
Decision 3 — Layering (same in every language)
transport (routes, parsing, auth, status codes)
service (use-cases, transactions, rules)
data (repositories, the only SQL/ORM surface)
domain (pure types and rules, framework-free)
- A framework type never reaches the domain layer.
- Transactions are opened in the service, not the handler.
- Cross-cutting concerns (logging, tracing, auth) are middleware/decorators, applied once.
Decision 4 — State and scale
- Processes are disposable: no in-memory state that a restart would lose.
- Sessions in a store; caches explicit with TTLs; jobs in queues.
- Scale out by instances; every instance must be able to serve any request.
- Shared contracts (queues, events) versioned like APIs.
Decision 5 — Failure and shutdown
- Timeouts on every outbound call; retries only where idempotent, with backoff and jitter.
- Circuit breaking or load shedding for known-flaky dependencies.
- Graceful shutdown on
SIGTERM: stop accepting, drain, close pools, exit. - Health: liveness ≠ readiness; readiness reflects dependencies.
- Logs structured, correlated by request id, no secrets or PII.
Decision 6 — Security posture
- Deny by default: every route authenticated unless explicitly public.
- Authorise in the service layer using server-side facts, never client claims.
- Validate at the edge, parameterise every query, encode on output.
- Secrets from a manager; rotated; never in images or repos.
- Dependency policy: lockfile, audit in CI, pinned versions.
Decision 7 — Deployment model
- One deployable artefact per service; config from environment.
- Migrations run as a step, not on boot in parallel across instances.
- Observability shipped with the service: metrics, traces, structured logs.
- Rollback plan defined before the first deploy.
Failure modes at scale
- Business rules in controllers; the API becomes the domain.
- Migrations in the boot path racing across replicas.
- Unbounded retries amplifying an outage.
- In-memory caches that make instances non-interchangeable.
- One shared database serving five services with no ownership.
Verification receipts
- Contract review: schema diff, versioning, error envelope.
- Failure drill: dependency down → timeout, shed, recover.
- Graceful shutdown under load within the deadline.
- Migration plan for a live table (expand → backfill → contract).
- Load test at peak with loop/GC/queue saturation visible.
04 同仓库更多 Skills
interaction-patterns-architect
Architect-level interaction design in code — choosing established patterns over invented ones, feedback and latency behaviour, destructive-action safeguards, navigation and overlay conventions, and the state model behind every interactive surface. Use when a screen has to behave, not just look.
design-system-ops-architect
Architect-level operation of a design system in code — token pipelines and versioning, component API and variant policy, the catalogue as the contract, adoption metrics, and the governance that stops a system from forking into three. Use when a component library must survive several teams.
design-handoff-architect
Architect-level design handoff — what must be specified before implementation starts, tokens over raw values, responsive and content-limit contracts, state matrices, and the review loop that catches drift between design and code. Use when a design is about to become code.
content-microcopy-architect
Architect-level UI content — where strings live, voice and terminology consistency, error and empty-state copy as part of the interface, translation-ready authoring, and the content model a product needs before it multiplies screens. Use when the words in the interface matter as much as the pixels.
ui-ux-implementation-architect
Architect-level direction for turning a design into working UI — the handoff contract, component ownership versus screen-level layout, interaction and state conventions, design QA gates, and the review habits that keep an implementation faithful without frozen pixels. Use before any specific UI implementation skill.
test-strategy-architect
Architect-level test strategy — allocating assertions across unit, integration, contract and end-to-end layers, designing for testability through dependency boundaries, fixture and data strategy, and the flake and coverage policies that keep a suite trustworthy. Use when defining how a codebase is tested.