prydam
v0.2.1
Published
XyPriss Daemon Process Manager - Ultra-performant process manager with 99.99% uptime guarantee
Maintainers
Readme
Prydam - XyPriss Daemon Process Manager (Beta)
Prydam is an ultra-high-performance process manager and traffic orchestrator specifically engineered for XyPriss. Developed in Rust, it provides a robust alternative to traditional process managers by ensuring 99.99% uptime through native perimeter security, zero-downtime deployments, and near-instant failover capabilities.
Vision
Prydam aims to bridge the gap between process management and edge security. By combining a low-latency reverse proxy with an intelligent supervision engine, it offers a unified solution for modern, high-availability web applications.
The Problem
Standard process managers often suffer from several limitations when used in high-traffic environments:
- Unpredictable crashes impacting end-users.
- Excessive recovery times during failover.
- Lack of native perimeter protection (Rate Limiting, WAF).
- Service interruptions during updates or deployments.
- High resource overhead due to interpreted runtimes.
The Solution: Prydam
Prydam addresses these challenges through a set of core architectural features:
Nehonix Hot Standby (nHS)
Ensures sub-500ms failover by maintaining standby clones ready to take over traffic immediately if the active instance fails.
Nehonix Smart Gateway (nSG)
A high-performance Rust-based gateway that handles:
- Native TLS termination (Rustls).
- Intelligent Load Balancing (Round-robin, Least connections, Sticky sessions).
- Zero-Downtime Deployments via graceful traffic draining.
- Native Compression (Gzip, Brotli).
Perimeter Security
Built-in protection mechanisms that operate before traffic reaches the application layer:
- Advanced Rate Limiting.
- Circuit Breaker patterns to prevent cascading failures.
- Lightweight WAF capabilities.
Technical Architecture
Prydam utilizes a hybrid architecture to maximize performance and reliability:
- Rust Core: A standalone binary responsible for process supervision, health monitoring, and traffic orchestration.
- Systemd Integration: Optimized for Linux environments to ensure the daemon itself remains highly available.
- IPC Communication: Efficient communication between the Rust daemon and XyPriss clones via Unix Sockets or HTTP.
XyPriss Integration
Prydam is designed to be used as a first-class plugin within the XyPriss framework.
import { Plugin } from "xypriss";
import { PrydamPlugin } from "prydam";
Plugin.exec(
PrydamPlugin.use({
strategy: "hot",
clones: 2,
gateway: {
port: 443,
ssl: { auto: true },
rateLimit: { window: "1m", max: 1000 },
},
})
);CLI Usage
The prydam CLI provides comprehensive control over your infrastructure:
prydam start [entry]- Start a new managed process.prydam reload- Perform a zero-downtime deployment.prydam status- View the health and metrics of all clones.prydam monitor- Access a real-time terminal dashboard (TUI).prydam gateway status- Inspect gateway traffic and security logs.
Comparison with PM2
| Feature | PM2 | Prydam | | ------------------------ | ------- | --------- | | Core Language | Node.js | Rust | | Standalone Binary | No | Yes | | Integrated Gateway | No | Yes (nSG) | | Zero-Downtime | Partial | Native | | Hot Standby (<500ms) | No | Yes (nHS) | | Native TLS/Compression | No | Yes | | Security (Rate Limit/CB) | No | Yes |
Roadmap
Phase 1: Core MVP (Completed)
- Build system and basic CLI.
- Hot standby and failover logic.
- IPC implementation.
Phase 2: Smart Gateway (In Progress)
- Rust-based reverse proxy.
- Load balancing strategies.
- Zero-downtime deployment orchestration.
Phase 3: Production Hardening
- Circuit breaker implementation.
- Native compression.
- Systemd integration and Prometheus metrics.
Authors
- Nehonix
