Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dlion/spartimillu
Application Level Load Balancer written in Go
https://github.com/dlion/spartimillu
go golang
Last synced: about 2 months ago
JSON representation
Application Level Load Balancer written in Go
- Host: GitHub
- URL: https://github.com/dlion/spartimillu
- Owner: dlion
- Created: 2024-01-17T17:40:52.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-02-12T10:03:19.000Z (11 months ago)
- Last Synced: 2024-10-13T11:11:01.460Z (3 months ago)
- Topics: go, golang
- Language: Go
- Homepage:
- Size: 18.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Spartimillu
Application Level Load Balancer written in Go
## Author
Domenico Luciani
https://domenicoluciani.com## Spartimillu Server - Load Balancer
It represents the load balancer which is in charge of redirecting requests towards other servers
To run it:
1. Set the address of your server instances into the main
2. Set your healthcheck endpoint
3. Set your healtcheck time frame
4. `go build`
5. `./spartimillu`### Test the load balancer
`curl http://localhost/ --output -`## bg - Dummy background services
This directory contains the folders which will represent 2 services, to start them `cd bg` and into two separates terminal instances:
1. server8080: `python -m http.server 8080 --directory server8080`
2. server8081: `python -m http.server 8081 --directory server8081`## Tests
The project is composed by unit and integration tests, to run all of them: `go test ./...`.
1. unit tests: `server/server_test.go`
2. integration tests: `client/client_test.go`## Idea
This is the implementation of the [WC Coding Challenge](https://codingchallenges.fyi/challenges/challenge-load-balancer) with Go, following those requirements step-by-step.
Any idea or feedback to make it better are always welcomed!