Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5991763
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T23:26:03+00:00 2026-05-22T23:26:03+00:00

The communication between Facebook users seem to be stored in one long conversation. So,

  • 0

The communication between Facebook users seem to be stored in one long “conversation.” So, emails sent and private chat messages exchanged all seem to be part of one long ongoing conversation.

I think this implementation works well for users (at least it does for me). I assume the table design for this part could be implemented this way:

TABLE: message
 - message_id
 - timestamp
 - from_user_id
 - to_user_id
 - message

What if I wanted to support group chat? Would I do something like this:

TABLE: message
 - message_id
 - timestamp
 - from_user_id
 - message

TABLE: message_recipient

 - message_recipient_id
 - message_id
 - to_user_id

I think it’ll work. However, I’m wondering if it would make sense to the user if I displayed every single things that user has ever messaged anyone in one long conversation. It probably wont. Imagine a conversation with Person A mixed with group conversation with Person A, B, C, D mixed with conversation with Person E and so on ….

Any suggestion on what would be a usable concept to implement?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T23:26:04+00:00Added an answer on May 22, 2026 at 11:26 pm

    I believe a message should be an entity, regardless of platform or sender/receiver, with id,message,timestamp fields, and a message relation table – like you suggested – with id,message_id,from_id,to_id.
    Then, if you are showing a single user to user conversation, you can show every message between them.
    For group chats, you should have a table with id,title,timestamp that holds the group chat main record, and another table that holds the users that are part of that group chat, with id,group_chat_id,user_id fields.

    Just my opinion and how I would implement it.

    Edit: Maybe it would make sense to have from_id on the message entity itself, as a message has to have a singular sender id.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to debug TCP communication between two embedded devices, only one of
I am trying to implement a P2P communication between two Android phones (one of
I am trying to make a WCF communication between two machines in which one
I have a requirment to have communication between two processes using message queues. One
Attempting to perform sockets communication between Android and C# I seem to be stuck.
My site enables communication between both registered and non-registered users. I'm trying to determine
I am using queue for communication between two threads ( one just producing instance
I want to make one demo application regarding the IPC communication .(Communication between Service).
How would one facilitate communication between devices based upon proximity given a particular app?
I need a socket communication between my own written java server and C# client,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.