/author.jpg

What is port sharding in Linux and why should I care

If you’re a sysadmin or a backend engineer, you probably have heard of the term “port sharding” or “socket sharding” before. It’s a technique to allow multiple processes to listen on the same TCP or UDP port at the same time. This is done by enabling a special socket option called SO_REUSEPORT on each socket before binding it to an interface.