Microservice Health Simulator

Real-time distributed system monitoring with failure simulation and WebSocket streaming. Simulates interconnected microservices to demonstrate failure propagation and system resilience.

⚠️ Server may be sleeping (Render.com free tier). Click "Wake Up Server" to start it (takes ~30-60 seconds).
{{ error }}
Total Requests
{{ metrics.total_requests }}
Total Errors
{{ metrics.total_errors }}
Avg Latency
{{ metrics.avg_latency_ms }}ms
Healthy Services
{{ metrics.healthy_services }}/{{ metrics.services_count }}
{{ service.service_id }}
{{ service.status.toUpperCase() }}
Latency
{{ service.latency_ms }}ms
Error Rate
{{ service.error_rate }}%
Dependencies:
{{ dep }}

Technical Implementation

Python 3.11 FastAPI asyncio WebSockets Vue.js Docker Render.com

System Architecture

  • Distributed Simulation: Simulates 9 interconnected microservices with unique error profiles and latency characteristics
  • Asynchronous Core: Built with Python's asyncio to handle hundreds of simulated requests per second concurrently
  • Failure Propagation: Demonstrates how a failure in a downstream service (e.g., Database) impacts upstream services (e.g., API Gateway)
  • Real-time Updates: Metrics are streamed via WebSockets or polled via REST API for live dashboard updates
  • Containerization: Entire system is Dockerized for consistent deployment across environments

Key Features

  • Interactive failure simulation to test system resilience
  • Dynamic dependency mapping and health tracking
  • Latency and error rate visualization
  • Automatic recovery after simulated failure duration
  • Serverless-ready API design with FastAPI