Skip to content

ashokdey/golang-lb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Golang Load Balancer

A simple load balancer implementation in Golang with support of config files and list of microservices.

Sample YML file

microservices:
  - service:
      properties:
        name: user
        servers: [
          "http://127.0.0.1:4000",
          "http://127.0.0.1:4001",
          "http://127.0.0.1:4002",
          "http://127.0.0.1:4003",
        ]
        version: 1.0
        apiPrefix: users-api
        healthRoute: "/"

  - service:
      properties:
        name: auth
        servers: [
          "http://127.0.0.1:6000",
          "http://127.0.0.1:6001",
        ]
        version: 1.0
        apiPrefix: auth-api
        healthRoute: "/"

Usages

  1. Clone the repo
  2. Run go run ./cmd

Notes

This was inspired from the video by Arjun Mahishi on creating a LB in Golang

About

Simple Load Balancer in Golang

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages