balancer
Version, currently 0.33 versions
- 0.3latestApr 10, 2021
- 0.2not indexedApr 10, 2021
- 0.1not indexedApr 10, 2021
github.com/kostya/balancer
Simple Tcp Balancer
9 stars
0 dependents
License: MIT
Installation
# Add this to your shard.yml
dependencies:
balancer:
github: kostya/balancer
version: ~> 0.3Then run:
shards installshard.yml
- Crystal
>= 0.22.0- License
- MIT
- Author
- Konstantin Makarchev <kostya27@gmail.com>
Dependencies
This version declares no dependencies.
README
# balancer
Simple Tcp Balancer (when nginx or haproxy too heavy for your tasks)
## Installation
Add this to your application's `shard.yml`:
```yaml
dependencies:
balancer:
github: kostya/balancer
```
## Usage
```crystal
require "balancer"
# run balancer listen on 0.0.0.0:3000
# and proxing all connections to 127.0.0.1:3001..3010
balancer = Balancer.new("0.0.0.0", 3000, "127.0.0.1", 3001..3010, Balancer::Method::RoundRobin)
balancer.run
```
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
0.3- Tagged
- Apr 10, 2021
- Commit
6cd21d6d9de5- Crystal
>= 0.22.0- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/kostya/balancer
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 12, 2026
- Synced
- Aug 12, 2026
- Versions
- 3