ChaosForge

•
1
•

Orchestrate multi-tenant chaos engineering experiments and API resilience testing using distributed concurrency controls, transactional messaging, and Model Context Protocol integration.

ChaosForge is a multi-tenant chaos engineering and API resilience control plane engineered to enforce and demonstrate resilient distributed systems patterns. Built on Java 21 and Spring Boot, the platform couples an asynchronous reactive edge gateway with a virtual-thread control plane and execution engine. It incorporates compare-and-swap (CAS) fencing tokens for race-free replay execution, transactional outbox and inbox patterns over Kafka for duplicate-free crash recovery, and a two-level cache. Additionally, ChaosForge exposes an embedded stateless Model Context Protocol (MCP) server for agent-driven scenario control and supports LLM-assisted scenario authoring via Spring AI without placing AI components in the critical execution path.

Key Features

01Isolated AI scenario authoring using Spring AI and Ollama gated by schema validation
02Replay critical section enforced with CAS fencing tokens and strict optimistic concurrency
03Embedded stateless MCP server with scope-gated tools for scenario execution and run status inspection
040 GitHub stars
05Transactional outbox and consumer inbox deduplication over Kafka for publish-side atomicity
06Multi-tier resilience architecture combining WebFlux edge routing, virtual-thread execution, and two-level caching

Use Cases

01Simulating service faults and API degradation to evaluate system resilience under controlled conditions
02Triggering and monitoring multi-tenant chaos replays through AI agents using the Model Context Protocol
03Validating distributed concurrency patterns, idempotency keys, and transactional outbox guarantees in microservice architectures