Skip to content
This repository was archived by the owner on Mar 7, 2025. It is now read-only.
robin-thoenePublic archive

About

The git repository to work on the university module BAK01.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

Repository files navigation

bak01

Summary

The git repository to work on the university module BAK01. The repository contains a sample server application to be load balanced, that can be used as HTTP, TCP or UDP server. The second application is the actual load balancer.

Remarks

This project is for education purpose only. It is not meant to and should not be used in production!

Local development

Starting sample backend servers

First you should start as many instances of the sample server as you like:

cargo watch -w example-server -x "run --bin example-server -- --server-type http --port 8080"

NOTE: You can choose a different server type, but make sure all instances use the same type. Furthermore you should provide a different port to each instance.

Starting the load balancer

After you started the backends, you should start the load balancer:

cargo watch -w load-balancer -x "run --bin load-balancer -- --port 3000 --proxy-type tcp --servers 127.0.0.1:8080"

NOTE: Depending on the number of started backends, the --servers argument will be different.

About

The git repository to work on the university module BAK01.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Contributors

Languages