Ballast client-side load-balancing framework
Project description
Framework for client-side load-balancing for inter-process communication between cloud services.
It is inspired in large part by Netflix’s Ribbon for java.
How to Use
In its most basic form, you can create a ballast.Service with a static list of servers:
>>> import ballast
>>> my_service = ballast.Service(['127.0.0.1', '127.0.0.2'])
Now, just use it as you would use the requests package:
>>> response = my_service.get('/v1/path/to/resource')
<Response[200]>
NOTE: at this point in time, only the basic api features from the requests package are supported.
For advanced usage, checkout the docs
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ballast-0.4.0.tar.gz
(18.6 kB
view hashes)
Built Distribution
Close
Hashes for ballast-0.4.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 20c4d8a7831dffa8a6f7e924dc7132660df46ac80fd1de26f5ff597d2aa4ee6d |
|
MD5 | 867a2feb07aff04a7989f4537f92f08e |
|
BLAKE2b-256 | 2b463f7ce2584a8a76205925c22c382a733096af89ee1773bffab0eb00db11d9 |