Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Simple Go Load Balancer

The Simple Go Load Balancer is a basic load balancing application written in Go. It uses a round-robin algorithm to distribute incoming requests across multiple backend servers.

Features

  • Round-robin load balancing
  • Customizable backend servers
  • Basic health checks

Getting Started

Prerequisites

  • Go installed on your machine

Installation

  1. Clone the repository:

    git clone https://github.com/newlinedeveloper/loadbalancer.git
  2. Change into the project directory:

    cd loadbalancer
  3. Build the project:

    go build

Running the Load Balancer

  1. Start the load balancer:

    ./loadbalancer
  2. The load balancer will be running on localhost:8000.

Configuration

You can customize the load balancer by modifying the main.go file. You can add or remove backend servers and adjust weights as needed.

// Example of adding a new backend server
servers := []Server{
    newSimpleServer("https://www.example.com"),
    // Add more servers as needed
}

Contributing

Contributions are welcome! If you find any issues or have improvements, feel free to open a GitHub issue or submit a pull request.

About

Loadbalancer service developed by using Golang

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages