1. Use deque to handle connections.