What is an efficient way to load balance (or in a sense shard) users of a Django app by their username? I want to flag certain users of the Django app and have them go to a different web server once they are logged in.
If you want to have specific users on a specific server: Create multiple subdomains (www.example.com, www1.example.com, www2.example.com etc). Once a user is logged in, check if the user is on the correct domain/server. If not, do a redirect to the users subdomain.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With