RapidBalancer
RapidBalancer is a lightweight and powerful Python load balancer designed for the BetterRapidHost ecosystem.
It provides:
- ⚖️ Smart load balancing
- 🌐 Reverse proxy system
- 📊 Real-time dashboard
- 👥 Client tracking
- 🔥 Request monitoring
- 📡 Traffic analytics
- 🔄 Automatic failover
- 🧠 Sticky sessions
- ⚡ High performance routing
- 🖥️ Live node monitoring
with extremely simple syntax.
✨ Features
- ⚖️ Smart balancing algorithm
- 🔄 Automatic node failover
- 📡 Reverse proxy support
- 👥 Client analytics
- 📊 Real-time dashboard
- 📈 Live statistics API
- 🔥 Request inspector
- 🧠 Sticky sessions
- 🚀 Multi-node support
- 🔒 Optional SSL support
- ⚡ Performance mode
- 💀 Extreme mode
- 🌐 LAN and WAN ready
- 📁 BetterRapidHost integration
📦 Installation
Install using pip:
pip install RapidBalancer
🚀 Quick Start
Basic Load Balancer
from RapidBalancer import RapidBalancer
RapidBalancer.add(
"127.0.0.1:5000",
"127.0.0.1:5001",
"127.0.0.1:5002",
"127.0.0.1:5003"
)
RapidBalancer.run(
host="0.0.0.0",
port=8080
)
🌐 Access
Main Website
http://IP:8080
Dashboard
http://IP:8080/balancer_panel
Stats API
http://IP:8080/balancer_stats
🧠 Smart Balancing
RapidBalancer automatically chooses the best node based on:
- latency
- active connections
- traffic usage
No manual configuration required.
🔄 Automatic Failover
If a node goes offline:
NODE 5001 DOWN
RapidBalancer automatically removes it from rotation.
Clients continue accessing the application normally.
👥 Client Tracking
RapidBalancer automatically tracks:
- IP address
- request count
- traffic usage
- visited routes
- user-agent
- connection time
📊 Dashboard
Built-in realtime dashboard includes:
- online nodes
- online clients
- total traffic
- requests
- latency
- CPU usage
- RAM usage
- node statistics
- client analytics
📡 Reverse Proxy
RapidBalancer acts as a reverse proxy.
Example architecture:
Client
↓
RapidBalancer :8080
↓
RapidHost :5000
RapidHost :5001
RapidHost :5002
RapidHost :5003
🔥 BetterRapidHost Integration
RapidHost Example
from BetterRapidHost import RapidHost
RapidHost.hostIP("127.0.0.1")
RapidHost.hostPort(5000)
RapidHost.hostSite("index.html")
RapidBalancer Example
from RapidBalancer import RapidBalancer
RapidBalancer.add(
"127.0.0.1:5000"
)
RapidBalancer.run(
host="0.0.0.0",
port=8080
)
Clients access only:
http://IP:8080
Backend nodes remain hidden and protected.
⚡ Performance Mode
RapidBalancer.PerformanceMode()
Optimizations:
- lower latency
- faster refresh rate
- higher request limit
💀 Extreme Mode
RapidBalancer.ExtremeMode()
Extreme optimizations:
- ultra low timeout
- ultra fast health checks
- massive request limit
- aggressive balancing
📈 Statistics
Global Stats
RapidBalancer.stats()
Example:
{
"global": {
"requests": 15281,
"traffic": 9283812,
"errors": 2
}
}
🔍 Node Management
Add Nodes
RapidBalancer.add(
"127.0.0.1:5000",
"127.0.0.1:5001"
)
Remove Node
RapidBalancer.RemoveNode(
"127.0.0.1",
5000
)
Disable Node
RapidBalancer.DisableNode(
"127.0.0.1",
5000
)
Enable Node
RapidBalancer.EnableNode(
"127.0.0.1",
5000
)
🔒 SSL Support
RapidBalancer.enableSSL(
"cert.pem",
"key.pem"
)
🔥 Request Inspector
Get request logs:
RapidBalancer.Requests()
🖥️ System Monitor
RapidBalancer.CPUUsage()
RapidBalancer.RAMUsage()
📁 Recommended Architecture
Internet
↓
RapidBalancer
↓
RapidHost Cluster
⚡ Philosophy
RapidBalancer focuses on:
- simplicity
- realtime monitoring
- scalability
- performance
- minimal syntax
- powerful infrastructure tools
📜 License
MIT License
👨💻 Author
Leonardo Nery
Metadata
Release files for RapidBalancer 0.0.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| rapidbalancer-0.0.9.tar.gz | 13.6 kB | Without provenance | Details for rapidbalancer-0.0.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rapidbalancer-0.0.9-py3-none-any.whl | Python 3 | none | any | Details for rapidbalancer-0.0.9-py3-none-any.whl |
Total release size: 25.5 kB
Release files / rapidbalancer-0.0.9.tar.gz
| Download URL | rapidbalancer-0.0.9.tar.gz |
|---|---|
| Size | 13.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5b75815543c5ffc47b3a463d327622bc869c8d64c4ab4dc8531a6fe9e1dee183
|
|
BLAKE2b-256 checksum How to use checksums |
5238f8dc295943af42ae86676ced927f68c9401b9fcb4391c7a21213c4b18a2a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.0
|
Release files / rapidbalancer-0.0.9-py3-none-any.whl
| Download URL | rapidbalancer-0.0.9-py3-none-any.whl |
|---|---|
| Size | 11.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c5d4caf61c4202a9fe30b95c502e60033675b360e1b6d663598b440dfe846b5d
|
|
BLAKE2b-256 checksum How to use checksums |
88fc08d719d0fb496e959ec57d0d75eaae2169dd85c229094bbd364b89bab886
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.0
|
Security for RapidBalancer 0.0.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.