360 Secure SkillHub
360 安全技能中心

architecture-paradigm-space-based

该 Skill 以 Markdown 指南形式介绍 Space-Based(基于空间)架构范式:何时采用(高流量、内存数据网格、线性扩展)、五步采用流程(分区工作负载、设计数据网格、协调持久化、故障转移、验证扩展性)、关键交付物(ADR、Runbook、监控)与风险缓解,并列出 Hazelcast/Ignite 等词汇性组件,不含可执行代码或依赖声明。

athola
athola
热度 63.81
最近更新 2026-08-26 21:06:56
分类:开发依赖:纯提示词应用场景:概念解释

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add nm-archetypes-architecture-paradigm-space-based
Metadata
name
architecture-paradigm-space-based
description
Applies data-grid architecture for high-traffic stateful workloads
version
1.9.8
triggers
["architecture","space-based","data-grid","scalability","in-memory","stateful","a single database cannot scale and in-memory partitioning is needed"]
metadata
{"openclaw":{"homepage":"https://github.com/athola/claude-night-market/tree/master/plugins/archetypes","emoji":"🏗️"}}
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 Space-Based Architecture Paradigm

When To Use

  • High-traffic applications needing elastic scalability
  • Systems requiring in-memory data grids

When NOT To Use

  • Low-traffic applications where distributed caching is overkill
  • Systems with strong consistency requirements over availability

When to Employ This Paradigm

  • When traffic or state volume overwhelms a single database node.
  • When latency requirements demand in-memory data grids located close to processing units.
  • When linear scalability is required, achieved by partitioning workloads across many identical, self-sufficient units.

Adoption Steps

  1. Partition Workloads: Divide traffic and data into processing units, each backed by a replicated data cache.
  2. Design the Data Grid: Select the appropriate caching technology, replication strategy (synchronous vs. asynchronous), and data eviction policies.
  3. Coordinate Persistence: Implement a write-through or write-behind strategy to a durable data store, including reconciliation processes.
  4. Implement Failover Handling: Design a mechanism for leader election or heartbeats to validate recovery from node loss without data loss.
  5. Validate Scalability: Conduct load and chaos testing to confirm the system's elasticity and self-healing capabilities.

Key Deliverables

  • An Architecture Decision Record (ADR) detailing the chosen grid technology, partitioning scheme, and durability strategy.
  • Runbooks for scaling processing units and for recovering from "split-brain" scenarios.
  • A monitoring suite to track cache hit rates, replication lag, and failover events.

Risks & Mitigations

  • Eventual Consistency Issues:
    • Mitigation: Formally document data-freshness Service Level Agreements (SLAs) and implement compensation logic for data that is not immediately consistent.
  • Operational Complexity:
    • Mitigation: The orchestration of a data grid requires mature automation. Invest in production-grade tooling and automation early in the process.
  • Cost:
    • Mitigation: In-memory grids can be resource-intensive. Implement aggressive monitoring of utilization and auto-scaling policies to manage costs effectively.

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.

  • data-grid-platform -- Hazelcast, Apache Ignite, or similar; in-memory partitioned data store
  • replication-manager -- moves writes asynchronously to durable storage and across regions
  • load-tester -- drives the grid past its single-region ceiling to validate scale-out