Sessions and Matchmaking,like game Hero League,how to do

Sessions and Matchmaking,like game Hero League,how to do

I would like to implement amatchmaking systemsimilar to how Dota2/CS