Round robin is probably the most common algorithm to load balance stateless services.
The consistent hashing algorithm is used by popular services such as Discord for sticky sessions without running into scaling issues. The simple hash algorithm cannot handle dynamic changes in server instances.
Round robin is probably the most common algorithm to load balance stateless services.
The consistent hashing algorithm is used by popular services such as Discord for sticky sessions without running into scaling issues. The simple hash algorithm cannot handle dynamic changes in server instances.
- We can use other attributes for hashing algorithms. For example, HTTP header, request type, client type, etc. What attributes have you used?
Clint type (HTTP Header User-Agent) can be used to segregate mobile and desktop client traffic.
The HTTP request payload (user-id, session-id, or thing-id) can be used for routing traffic to the same service instance.
- Which algorithm is most popular?
Round robin is probably the most common algorithm to load balance stateless services.
The consistent hashing algorithm is used by popular services such as Discord for sticky sessions without running into scaling issues. The simple hash algorithm cannot handle dynamic changes in server instances.
- We can use other attributes for hashing algorithms. For example, HTTP header, request type, client type, etc. What attributes have you used?
Clint type (HTTP Header User-Agent) can be used to segregate mobile and desktop client traffic.
The HTTP request payload (user-id, session-id, or thing-id) can be used for routing traffic to the same service instance.