I am working on asp.net application which is created on .net framework 4.0, now I want to implement Chat functionlity for specific group of logged in users in asp.net application.
So how can we implement i, is there any ready tool or opensource code available to achieve this?
Thanks,
Amit
My Tech Blogs MCPD Enterprise and Web Application
MCTS Web, Window and Enterprise Application
I have exploped this examples and after that my question,
How can we store chat message data in server to access by all connected client.
There are various option is there. like
1. Application variable
2. Database
3. Maintain xml in server side.
So what is the preferable solution for this because I dont think above solution are good for best practice so please suggest how can I store in server.
Thanks,
Amit
My Tech Blogs MCPD Enterprise and Web Application
MCTS Web, Window and Enterprise Application
it is depend on requirement of your chat app... if it will be used by moderate number of people, then in memory xml schema is good option (application variable or session)
did u review possibility of using SignalR? it will broadcast incoming message to all connected client... hence, u dont even have to store it on server anytime...
it is depend on requirement of your chat app... if it will be used by moderate number of people, then in memory xml schema is good option (application variable or session)
Here where can we store memory xml schema? In my case at time 5-6 persons are chat on the system when some session going on, and there would be daily 7-8 session avaiable per day.
So what is the good option for this?
Thanks,
Amit
My Tech Blogs MCPD Enterprise and Web Application
MCTS Web, Window and Enterprise Application
in process option like session variable would be fast in terms of data retrival... but, this is not scalable option...
the few couple of more users and sessions with prolonge chat communication would keep increasing RAM utilisation and impact overall application
you can use the session or application variable but then u have to implment logic such that, one the message is seen by all users involved in current communication then that message gets removed from session variable (to avoid too much data stored in session)
or... go for database approch.. there u wont have to think about space... but optimise connection mechanism, implement connection pooling such that, it wont create new conenction on every interval to look for new chat message...
hope this helps...
Cheers!
KK
Please mark as Answer if post helps in resolving your issue
My Site
or... go for database approch.. there u wont have to think about space... but optimise connection mechanism, implement connection pooling such that, it wont create new conenction on every interval to look for new chat message...
Thanks for your response.
Is there any other option is there to store chat data?
My Tech Blogs MCPD Enterprise and Web Application
MCTS Web, Window and Enterprise Application
Using SignalR would be the best way to go i think. I have seen that being discussed a lot but i have not tried that myself. If you want to use a ready tool then you can try out Mango Chat
http://www.mangochat.net. Its a commercial product but its ready to use so you can integrate it fairly quickly.
No I can no go with any commercial product, I want to create my own custom web chat tool but need input from team about different possible ways to store chat.
My Tech Blogs MCPD Enterprise and Web Application
MCTS Web, Window and Enterprise Application
amitpatel.it
Star
7918 Points
1861 Posts
Implement Live chat functionality in asp.net application
Apr 13, 2012 11:33 AM|LINK
Hi all,
I am working on asp.net application which is created on .net framework 4.0, now I want to implement Chat functionlity for specific group of logged in users in asp.net application.
So how can we implement i, is there any ready tool or opensource code available to achieve this?
Thanks,
Amit
MCPD Enterprise and Web Application
MCTS Web, Window and Enterprise Application
kedarrkulkar...
All-Star
34177 Points
5490 Posts
Re: Implement Live chat functionality in asp.net application
Apr 13, 2012 11:38 AM|LINK
in web application... chat functionality is normally created using polling web server continously after certain interval...
these posts contains extensive discussion about the same
http://forums.asp.net/p/1540414/3752121.aspx
http://forums.asp.net/p/1541803/4101566.aspx
but, u can now use SignalR (and prefferred way) component... which uses long polling, websockets etc. to broadcast messages...
see this to know how u can easily use SignalR to create chat system
http://www.hanselman.com/blog/AsynchronousScalableWebApplicationsWithRealtimePersistentLongrunningConnectionsWithSignalR.aspx
hope this helps...
KK
Please mark as Answer if post helps in resolving your issue
My Site
amitpatel.it
Star
7918 Points
1861 Posts
Re: Implement Live chat functionality in asp.net application
Apr 23, 2012 06:34 AM|LINK
I have exploped this examples and after that my question,
How can we store chat message data in server to access by all connected client.
There are various option is there. like
1. Application variable
2. Database
3. Maintain xml in server side.
So what is the preferable solution for this because I dont think above solution are good for best practice so please suggest how can I store in server.
Thanks,
Amit
MCPD Enterprise and Web Application
MCTS Web, Window and Enterprise Application
kedarrkulkar...
All-Star
34177 Points
5490 Posts
Re: Implement Live chat functionality in asp.net application
Apr 23, 2012 08:58 AM|LINK
it is depend on requirement of your chat app... if it will be used by moderate number of people, then in memory xml schema is good option (application variable or session)
did u review possibility of using SignalR? it will broadcast incoming message to all connected client... hence, u dont even have to store it on server anytime...
check this
http://jabbr.net/
hope this helps...
KK
Please mark as Answer if post helps in resolving your issue
My Site
amitpatel.it
Star
7918 Points
1861 Posts
Re: Implement Live chat functionality in asp.net application
Apr 23, 2012 09:27 AM|LINK
Thanks for your response.
Here where can we store memory xml schema? In my case at time 5-6 persons are chat on the system when some session going on, and there would be daily 7-8 session avaiable per day.
So what is the good option for this?
Thanks,
Amit
MCPD Enterprise and Web Application
MCTS Web, Window and Enterprise Application
kedarrkulkar...
All-Star
34177 Points
5490 Posts
Re: Implement Live chat functionality in asp.net application
Apr 23, 2012 10:16 AM|LINK
in process option like session variable would be fast in terms of data retrival... but, this is not scalable option...
the few couple of more users and sessions with prolonge chat communication would keep increasing RAM utilisation and impact overall application
you can use the session or application variable but then u have to implment logic such that, one the message is seen by all users involved in current communication then that message gets removed from session variable (to avoid too much data stored in session)
or... go for database approch.. there u wont have to think about space... but optimise connection mechanism, implement connection pooling such that, it wont create new conenction on every interval to look for new chat message...
hope this helps...
KK
Please mark as Answer if post helps in resolving your issue
My Site
chetan.sarod...
All-Star
65719 Points
11133 Posts
Re: Implement Live chat functionality in asp.net application
Apr 23, 2012 10:19 AM|LINK
Hi, Please refer this
http://www.codeproject.com/Articles/8307/Simple-Chat-Application-in-ASP-NET
http://www.codeproject.com/Articles/27384/Build-a-Web-Chat-Application-using-ASP-Net-3-5-LIN
Senior Software Engineer,
Approva Systems Pvt Ltd, Pune, India.
amitpatel.it
Star
7918 Points
1861 Posts
Re: Implement Live chat functionality in asp.net application
Apr 23, 2012 10:20 AM|LINK
Thanks for your response.
Is there any other option is there to store chat data?
MCPD Enterprise and Web Application
MCTS Web, Window and Enterprise Application
mnagaria
Member
126 Points
34 Posts
Re: Implement Live chat functionality in asp.net application
Apr 23, 2012 11:04 AM|LINK
Hello Amit
Using SignalR would be the best way to go i think. I have seen that being discussed a lot but i have not tried that myself. If you want to use a ready tool then you can try out Mango Chat http://www.mangochat.net. Its a commercial product but its ready to use so you can integrate it fairly quickly.
http://www.mangochat.net
amitpatel.it
Star
7918 Points
1861 Posts
Re: Implement Live chat functionality in asp.net application
Apr 23, 2012 11:17 AM|LINK
No I can no go with any commercial product, I want to create my own custom web chat tool but need input from team about different possible ways to store chat.
MCPD Enterprise and Web Application
MCTS Web, Window and Enterprise Application