title: How to find a pair of the opposite type of connection?
body: <p>Clients connect to the server. Clients are divided into two types, for example: Male, Female. The type is determined at the time of connection. When a client sends a message that he is ready, we need to find him a pair of the opposite sex. Plus, the woman can refuse such a pair, and then the search continues for both of them.</p>
  
  <p>How to implement this architecture?</p>