Towards scalability and efficiency in distributed systems