Tinder is very good example of Database Sharding Pattern.
▪ Tinder allows to match and meet other people who use the application near you (around 160km) based on location.
▪ To find people near you very quickly and offer choices that meet the criteria what you set.
▪ How Tinder match peoples who are near to each other ?
▪ Tinder segments users based on their location.
▪ This is called GeoSharding, that is, location-based database sharding.
▪ Sharding by dividing the world map into boxes with their locations and matches them in only into that box locations in the world.
https://medium.com/system-design-concepts/dating-application-system-design-aae411412267