A
architecture-paradigm-space-based
About architecture-paradigm-space-based
A skill for designing space-based architectures in high-traffic systems that need elastic scaling and in-memory data grids. It guides partitioning, persistence, failover, testing, and operational readiness.
Key features
- 01Workload partitioning across processing units
- 02In-memory data grid design
- 03Durable-store persistence strategies
- 04Failover and recovery planning
- 05Load and chaos testing
Use cases
- 01Scaling beyond a single database node
- 02Reducing latency with nearby in-memory data
- 03Preparing recovery from split-brain scenarios
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ athola/ claude-night-market --skill architecture-paradigm-space-basedAfter installing, type/architecture-paradigm-space-basedin Claude Code to confirm it loaded.
Details
From the project READMEThe 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
- Partition Workloads: Divide traffic and data into processing units, each backed by a replicated data cache.
- Design the Data Grid: Select the appropriate caching technology, replication strategy (synchronous vs. asynchronous), and data eviction policies.
- Coordinate Persistence: Implement a write-through or write-behind strategy to a durable data store, including reconciliation processes.
- Implement Failover Handling: Design a mechanism for leader election or heartbeats to validate recovery from node loss without data loss.
- 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
Vocabulary for the tools and abstractions an implementation of this
paradigm tends to carry. Not dependencies, and not tools: frontmatter.
data-grid-platform: Hazelcast, Apache Ignite, or similar; in-memory partitioned data storereplication-manager: moves writes asynchronously to durable storage and across regionsload-tester: drives the grid past its single-region ceiling to validate scale-out
Exit Criteria
- An ADR documents the chosen grid technology, partitioning scheme, replication strategy (sync vs. async), data eviction policies, and durability SLA before any processing unit is deployed.
- Runbooks for scaling processing units and recovering from split-brain scenarios exist and have been exercised in a non-production environment.
- Load and chaos testing confirms the system handles >= 2x expected peak traffic without data loss, measured before production promotion.
- A monitoring suite tracks cache hit rates, replication lag, and failover events with alerting thresholds set before the system accepts live traffic.
Comments
Markdown supported