Ilya Brin - Software Engineer

History is written by its contributors

Consistent Hashing: The Math Behind Load Balancing

Hey there! 👋

Imagine: you have 1000 servers and millions of requests. How do you distribute load evenly so that adding a new server doesn’t require rehashing everything?

Regular hash(key) % servers becomes a disaster when scaling. Add one server and 90% of data needs to be moved!

But there’s an elegant solution: Consistent Hashing. The mathematics that saves you from chaos in distributed systems.

Let’s dive into the algorithm used by Amazon DynamoDB, Cassandra, and Redis Cluster 🚀

Continue reading

Linear Regression in Go: From Zero to Production

2025-04-28 8 min read Golang Machine-Learning Ilya Brin

Hey Go developer!

📊 Think machine learning is only for Python developers? Want to add predictive analytics to your Go service but afraid of math?

While others import sklearn, you’ll learn how to implement linear regression in Go from scratch and take it to production-ready solution.


1. What is Linear Regression and Why Does a Go Developer Need It?

In simple terms

Linear regression is a way to find a straight line that best describes the relationship between variables. Like stretching a thread through a cloud of points on a graph.

Continue reading