Search code examples
javaserverwidgetchatmessenger

Developing a messenger


So I’m developing a chat messenger app like WhatsApp but I’m trying to decide the best way to get the messages between phones. A lecturer of mine mentioned using a router but I couldn’t understand how that would work. Any ideas ?


Solution

  • I feel like the best way would to build a server to handle receiving, storing and sending the messages between users. When a user (user1) wants to send a message to another user (user2), they post the message to your server, your server stores the message in some form of database and user2 will receive whatever messages are stored in the db for them. There is an infinite number of ways you could actually architect this.

    Edit - not sure if this is actually what you where looking for. let me know if you want me to elaborate.