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

There are lots of questions on how to improve communication between teams. One way
One way to have interprocess communication is through a (named) pipe between the processes.
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
How would one facilitate communication between devices based upon proximity given a particular app?
Attempting to perform sockets communication between Android and C# I seem to be stuck.
I need to have two way communication between threads in Tcl and all I
What are the different ways of communication between asp.net page and a popup page?
We are using axis for webservice communication between different system in house. Every once

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.