Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save Noitidart/1ecb87219a83cd198de9dcb3d76ed5c8 to your computer and use it in GitHub Desktop.

Select an option

Save Noitidart/1ecb87219a83cd198de9dcb3d76ed5c8 to your computer and use it in GitHub Desktop.
// client -> loadbalancer -> server -> machine

class Server {
    private HashMap<Integer, Machine> machineByPersonId;    
}

class Machine{
    private int id;
    private HashMap<Integer, Person> personById;    
}

class Person {
    private int id;
    private List<Person> friends;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment