1.

Design a global chat service like Whatsapp or a facebook messenger.

Answer»
  • What are some of the required features?
    • Allow users to chat over the internet.
    • Provide support for one-on-one and group chats.
    • Messages need to be stored for better viewing.
    • Messages need to be encrypted for SECURITY purposes.
  • What are some of the common problems that can be encountered?
    • What would happen to a message if it is sent without an internet connection?
    • Will encrypting and decrypting increase the latency?
    • How are the messages sent and notified to the device?
  • Possible Tips for CONSIDERATION:
    • Split DATABASE schema into multiple tables such as user table, chat table, massage table etc.
    • Make use of WEB sockets for bi-directional communication between the device and the server.
    • Make use of push notifications for notifying the members even if they are ONLINE.


Discussion

No Comment Found