A simulation platform for exploring distributed cache invalidation, consistency guarantees, and agent-based network behavior in a realistic event-driven environment.
cache-net-demo-preview.mp4
CacheNet models distributed systems as autonomous agents that communicate through message passing, time-aware events, and configurable failure modes. It is useful for studying:
- Cache invalidation strategies
- Byzantine or adversarial node behavior
- Network delays and partitioning
- System resilience under chaos conditions
- End-to-end agent communication patterns
CacheNet/
├── backend/ # FastAPI API and simulation engine integration
│ ├── src/
│ │ ├── main.py
│ │ ├── simulation_manager.py
│ │ ├── ai_analyst.py
│ │ └── core/
│ └── requirements.txt
├── frontend/ # Next.js dashboard and visualization layer
│ ├── app/
│ ├── package.json
│ └── public/
├── motion-graphics/ # Presentation assets and reel content
├── project-guide-files/ # Project notes and architecture documentation
├── README.md
├── LICENSE
├── CONTRIBUTING.md
├── CODE_OF_CONDUCT.md
├── SECURITY.md
├── .github/
├── .gitignore
└── cache-net-demo.mp4
- Backend: Python, FastAPI, Pydantic, asyncio
- Frontend: Next.js, React, Material UI
- Simulation: Discrete-event engine with agent-based orchestration
- Visualization: charts and dashboard components in the frontend app
- Python 3.11+
- Node.js 20+
- npm
cd backend
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
python src/main.pyThe API will run at:
cd frontend
npm install
npm run devThe app will run at:
- Agent-driven simulation of cache nodes and clients
- Event queue orchestration and timing control
- Network latency and failure scenarios
- Metrics tracking for cache behavior and stale reads
- AI-assisted analysis endpoint for simulation interpretation
# Backend tests
cd backend
pytest
# Frontend checks
cd frontend
npm run lint
npm run buildPlease read CONTRIBUTING.md and CODE_OF_CONDUCT.md before contributing.
If you discover a vulnerability, please follow the steps in SECURITY.md.
This project is licensed under the MIT License.
This repository is designed to showcase an agent-based simulation of distributed cache systems for experimentation, research, and engineering exploration.