A high-performance, fault-tolerant, and chaos-hardened web framework built in Rust.
Pulse Framework is designed for mission-critical applications where latency, resource efficiency, and reliability are non-negotiable. Built on top of actix-web, tokio, and sea-orm, it provides a production-ready foundation with built-in resilience patterns.
Pulse Framework isn't just fast; it is efficient and indestructible. The following metrics were captured during the Level 6 System Gauntlet (CI/CD Stress Test):
- 4,500+ Requests per Second on a standard local environment.
- 47ms Average Latency under heavy concurrency (200 active connections).
- Processed ~45,000 requests in 10 seconds with 99.99% success rate.
Unlike managed languages that eat up memory, Pulse remains incredibly lean under stress:
- RAM Usage: Only 33 MB while handling 4.5k req/s.
- CPU Efficiency: Peaks at 25% usage, leaving room for background tasks.
- Survival Mode: The framework automatically detects dependency failures (e.g., Redis crash) and degrades gracefully or recovers without crashing the main process.
- Verified Result:
Chaos: Killing Redis... -> SUCCESS.
- Modular Workspace: Organized into core, cli, migration, and dashboard crates.
- Production Optimized:
Cargo.tomlconfigured withlto = "fat",codegen-units = 1, andpanic = "abort"for smallest binary size and max speed. - Database Agnostic: Powered by SeaORM (Async ORM) for SQL databases.
- Caching & Queues: Built-in Redis support for high-speed caching and background jobs.
- Security First: JWT Authentication, secure headers, and rigorous input validation.
- Developer Experience:
- Create migrations effortlessly.
- Integrated CLI for management.
- Automated Test Suite (Logic, Security, Recovery, Chaos).
- Rust (latest stable)
- Docker & Docker Compose (for Postgres & Redis)
git clone https://github.com/lear94/pulse-framework.git
cd pulse-framework
Copy the example environment file and configure your secrets:
Bash
cp .env.example .env
Note: Ensure your
.envcontains valid credentials for Postgres and Redis.
Start your database and cache services:
Bash
docker-compose up -d
Initialize the database schema:
Bash
cargo run --bin migration refresh
Bash
cargo run --release
API will be available at: http://127.0.0.1:8080/api/v1
Pulse Framework comes with a comprehensive shell-based test runner that validates the system from logic to chaos.
To run the full suite:
Bash
./run_tests.sh
What is tested?
-
Logical Integrity: Unit tests & logic verification.
-
CLI Operations: Verifies command-line tools.
-
Migrations: Tests database schema evolution.
-
Security: Penetration testing scripts.
-
Recovery: System behavior after crashes.
-
The Gauntlet: Load and Chaos testing (Stress tests).
-
Idempotency: Ensures safe retries.
-
Toxic Scenarios: Handling malformed data.
pulse-framework/
├── cli/ # Command Line Interface tool
├── dashboard/ # Admin Dashboard (WASM/Frontend)
├── migration/ # SeaORM Migrations
├── src/ # Core API Logic
│ ├── auth/ # JWT & Security
│ ├── core/ # Orchestrator, Monitoring, Queues
│ ├── models/ # Database Entities
│ └── services/ # Business Logic
├── tests/ # Integration & Shell scripts
└── Cargo.toml # Workspace definition
This project is licensed under the MIT License - see the LICENSE file for details.