Click here to Skip to main content
15,914,222 members
Please Sign up or sign in to vote.
4.00/5 (2 votes)
See more:
Hello everyone,
I am trying to make a chat room in c#. A codeproject article adviced me to store the chats in ArrayList temporarily. My question is that wouldn't making an ArrayList for every 2 client slow down the responding speed of my server? Will there be any special requirement that my server config must fulfill like ram must be of that size and above? Or what must I use to store the chats of 2 users if I don't need them in future?
Any suggestion would be highly appreciated.
Thanks,
Akky





@Humayun : Yes, I want it to somewhat like hipchat as I want to store it first temporarily and then send to user if he/she demands but this feature of getting chat is available till the time user exits the application.
Thanks,
Akky
Posted
Updated 3-Mar-14 1:58am
v2

Even though many of the articles can be found on this topic i.e. chat rooms in asp.net.

But the following has helped me a lot in creation of a chat application.

the following link implements your desired logic, by storing messages in a SQL table only untill the receiver receives it.

For further detail and implementation download the zip project and read the complete article.

Chat-Application-in-ASP-NET-Using-AJAX-Pop-up

NOTE: the application is in VB but can be converted in C# by any online converter.


Hope it will help you. :)
 
Share this answer
 
Comments
[no name] 4-Mar-14 0:24am    
this one is a good solution with example. :)
VICK 4-Mar-14 0:25am    
Thanks @Humayun Rashed
Its depends on what type of chat room you want to build. Because there are many way to store your message. Like yahoo store their message on their server. they don't store any message on session or array. On hipchat they send the message to the member and if member offline then message go to the email. So, First decide what type of chat room you want to build.
thanks!
 
Share this answer
 
Comments
Akkywadhwa 3-Mar-14 7:59am    
Please consider the improved question.
Thanks for your answer,
Akky
VICK 3-Mar-14 23:49pm    
Kindly have a look at the solution posted by me. which implements your desired logic at stored procedure(SQL End).. :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900