Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Noitidart/1ecb87219a83cd198de9dcb3d76ed5c8 to your computer and use it in GitHub Desktop.
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