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 6375573
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T01:37:57+00:00 2026-05-25T01:37:57+00:00

I am building a chat feature in an asp.net mvc website ,something like stackoverflow

  • 0

I am building a chat feature in an asp.net mvc website ,something like stackoverflow chat.

I have a table in the db for users and chat groups.

My question is where to save these info:

  • Chat history ‘which needs to be cleared every 3 days’.

  • users status ‘went online, offline or away’.

  • A user is currently writing a message…

And some more info like these which change very fast while many users are chatting .
Is it fine to keep all these data in the same website db? Or should I create different tables away from the users table ? Or should I go with XML files?
If XML files is your choice, can you tell me a hint about how to organize the created XML files and how they will look like.

  • 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-25T01:37:58+00:00Added an answer on May 25, 2026 at 1:37 am

    I would stay away from files, mainly because it is very hard to manage file concurrency when dealing with multiple updaters (which you may have if you have, say, load-balanced web servers).

    A database is a good idea, depending on your scale (relational databases on good hardware scale to hundreds if not thousands of simultaneous updaters, but often fall off a cliff after that). If you are not expecting to have hundreds of simultaneous users, a database with clients using AJAX polling or Comet connections is probably the right way to go. And don’t discount the fact that almost every programmer you might hire knows how to work with a database.

    Other options you might look at are message queues, whereby each client has a server-side message queue that is periodically checked, again using using AJAX polling or Comet connections. Queues are nice because you don’t need to keep track of which messages the client already saw- you just take whatever is there off of the queue. Queues with topic support also make a nice way to build a stateful online/offline status.

    Finally, some NoSQL databases (CouchDB, MongoDB) provide very good scaling by sharding across multiple machines, and they store hierarchical data like an XML file would (they actually use JSON to store their data), so a conversation thread would be a natural fit there.

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

Sidebar

Related Questions

I am building a chat feature inside a website, something like stackoverflow chat but
I'm building a simple chat server in java , where users can have private
I was thinking of building a chat application in ASP .NET. I was thinking
I'm building a chat server with .NET. I have tried opening about 2000 client
I have a site built in ASP.NET MVC and uses heavy jQuery client interaction
We have a website, and want to allow users on the site to chat
I have a small application that I am building a Chat application into, so
Building a website that has English & Japanese speaking users, with the Japanese users
I'm building a custom web chat application, and while I have the basics worked
i building an chat app and i have a little problem, build cellforrowatindexpath: -

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.