Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ibudasov/loadbalancer-model
https://github.com/ibudasov/loadbalancer-model
Last synced: 2 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/ibudasov/loadbalancer-model
- Owner: ibudasov
- Created: 2021-01-07T13:38:18.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-01-11T15:13:36.000Z (almost 4 years ago)
- Last Synced: 2025-01-01T20:03:04.333Z (5 days ago)
- Language: Kotlin
- Size: 85 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Load Balancer
It's a programmatic model of a load balancer, which simulates real life load balancer which:
- holds up to 10 providers
- has 2 algorithms of getting these providers: `InvocationAlgorithmRandom` and `InvocationAlgorithmRoundRobin`
- supports manual inclusion and exclusion of providers
- checks heart bit of providers, to make sure they are able to serve the requests
- providers also support recovery when possible
- the load balancer will not process more requests then it can process## Todo
- Abstract away randomness out of `InvocationAlgorithmRandom` to improve testability (currently one test is falling with
some probability)
- Create a simple CLI application which would nicely demonstrate how it works