Construct a scalable backend for a real-time chat application. This project will focus on enabling instant messaging capabilities, supporting both one-on-one private chats and group conversations. Key features include user registration, secure authentication, message persistence, and efficient handling of concurrent connections to ensure a smooth user experience.