kauefraga / anubis

A powerful and configurable load balancer, built in Go.
MIT License
7 stars 1 forks source link

Use mutexes to fix race conditions #1

Closed kauefraga closed 2 months ago

kauefraga commented 2 months ago

When the load balancer handle many requests (concurrent/parallel), all executions write and read from the same source. Use goroutines and sync.Mutex to lock algorithm data while it's being used and unlock when the algorithm finish.

Reference: Go mutex

kauefraga commented 2 months ago

94a05f7 closes this