Save Chat Room Data In Application Variable Or DB?
Nov 4, 2010
My application is Web App Chat Room , it supports following features:
1.Create/Join/Close room
2.Send message in room (just live message, offline message might be supported in future)
I have done logic for application, but I'm considering where to save chat room data (message,room information, and users in room) ? I see there are 2 options:
1. Application variable
2. Using file or database
-What if I saved in Application variable: In case of there are 2000 rooms and 10000 users online, mean I have to persistence in Application variable (actually in RAM memory) information of 2000 rooms, more than 10000 message (text), these numbers might be increased by second if there are more users online in real time. and what's next ? I don't know what will happen to server, crash ? or my web app will be terminated ? whatever I don't want both results!
-What if I saved in file or DB (i.e: SQL Server DB) Because of web application, clients have to send request every 1 second to fetch data (messages and user list in room). So in case of there are 2000 rooms and 10000 users online, means they will make 10000 requests every 1 second to DB. I don't know what will happen to DB, there are a lot of connections and in EVERY 1 second, can DB still be alive to serve request ?
I don't know where saving is good now because both seem are bad solution :(. What is your opinion ?
My application is MVC Web App Chat Room , it supports following features:1.Create/Join/Close room 2.Send message in room (just live message, offline message might be supported in future)I have done logic for application, but I'm considering where to save chat room data (message,room information, and users in room) ? I see there are 2 options:1. Application variable2. Using file or database-What if I saved in Application variable:In case of there are 2000 rooms and 10000 users online, mean I have to persistence in Application variable (actually in RAM memory) information of 2000 rooms, more than 10000 message (text), these numbers might be increased by second if there are more users online in real time. and what's next ? I don't know what will happen to server, crash ? or my web app will be terminated ? whatever I don't want both results !
-What if I saved in file or DB (i.e: SQL Server DB) Because of web application, clients have to send request every 1 second to fetch data (messages and user list in room). So in case of there are 2000 rooms and 10000 users online, means they will make 10000 requests every 1 second to DB. I don't know what will happen to DB, there are a lot of connections and in EVERY 1 second, can DB still be alive to serve request ?I don't know where saving is good now because both seem are bad solution
I'm developing chat application on asp.net mvc, in my app, user can create room and invite other join to chat, but don't need to save chat room information.So, I designed to save all chat message ,room information and user info in Session and clear it when owner close the room.I'm worry about stressing server when I save alot of data (include room info, user info, and message) in Session if there are up to 5000 rooms created and alot of messages transfered in that room.Is my solution good enough ? is it ok to save in Session ?
I have done some research on creating a chat room for my website. i found one on the following site: [URL] But it is in C#, i tried converting it to VB version but it gives me different errors. I dont know much about it.
Just looking for recommendations, we have a need to supply a chat-room for our customers. It will be small-mid scale usage, has anyone purchased any products recently that they recommend? Open to bundled, open-source, or SaaS implementations.
I had create an application to allow user to register new project.Manager will chat with user base on the project ID(chat room id = Project ID) and store this conversation to database.
Example: User A register project A, other user cannot join the chat room A.
I have a requirement for building an instant messenger application for the selected user.
I have googled for the solution but without any sucess.My requirement is once a user initiates a chat with another user,the another user needs to get a popup of the chat window,where the two users can start chatting.
i am developing chat application using vb.net and asp.net where i am having a div tag inside which i am displaying the messages posted by the online users what my problem is when the messages are more and exceeds the height of the div tag then i am not comfortable to view the previous messages because i have set the scroll bar position to always to be pointed to bottom.
I need to implement a chat application in my asp.net C# used Web Application. I am looking a 1 to 1 chat . Here i am users and i need to chat those users with other ones.
I am creating a chatting application, where I want to show typing notifications in private chat.i.e If two users are chatting, when the user is typing message I want to show in chat window of other user that "userName is typing" in the status bar
I am developing an application in asp.net mvc where i need to have Chat application intergrated in the web page. The chat application should be able to support group chat, private chat, simple file transfer and user should be able to create their own rooms. where i can buy a simple chat application with above functionalities. I need it immediately.or how to create my own application. The technology to use or just any idea to start, buying asp.net chat application with above functionalities is the best option.and most important i should be able to integrate chat application in my existing MVC project. We are using ASP.NET MVC, Microsoft SQL Server 2005, Linq To Sql as database interaction tech and C#.
"We should also have an option under the contacts tab, for a chat option .The idea behind it is that if a user is looking to communicate with a staff person they should be able to open a chat session and start a typing their questions and/or concerns. While building the chat option, the chats should be logged for certain period of time and there should be an option of retrieving particular chat sessions as needed."
What is the best way to implement this ? I prefer jquery plugin for implementing the above task () ? I am using asp.net 2.0.Is there any need to update to 3.5 to achieve the above task ?
I found the tutorial below to build a chat application for asp.net which fulfilled most of my requirements, i.e. written in vb and made use of database, however the second part is missing. [URL]
I was hoping someone may be able to point me in the direction the original author intended to extend this to cover multi rooms and hopefully multi users?
So I am trying to create and application that combines a website to a chat program.
Essentially what I want is this
Users to be able to go to the website and look at data
if they want to add data they can do that on the website
based on this data, a message pops up on the appropriate agents PC
the agent can then forward the request or accept the request and type in a message/data in that same pop up window and send it to the website which would update the website.
I have too many options to choose from and I am very confused.I believe for the agent side(chat) WCF would be good, but not sure about the website side.Should i use dynamic data webpage orwcf data services?
I am developing a chat application. What Ii need is... I have to display user name and status(iam taking an image).. It should be as in gtalk in a single row i have to get name and that image. I need like wat i have to take in view page like div/table and how can we bind them in jQuery..