开发者

How to create a chat function (like facebook or gmail) in asp.net? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot开发者_如何学JAVA be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 11 years ago.

I have searched through stackoverflow on the key words of "facebook chat in asp.net", just come out of some profounded suggestions. But I have some detail questions need to be cleared.

  1. Do people use database to store each message? Do they have to be saved in database?
  2. Do people use session to send/receive message?
  3. Is jQuery useful here?

Please give me a direction on how to develop chat function in asp.net


  1. Yes, most likely. Assuming they need to be saved somewhere the best answer is usually a database. What kind, SQL or NOSQL depends on scale and the skill set of the developers.
  2. There are lots of techniques for fetching new messages. Some Google keywords might be "long polling", ajax, etc.
  3. jQuery is a JavaScript library for handling common client side scripting tasks. You can do without, but if you know jQuery or some other JavaScript library it will save you from a lot of coding. Regardless if you are writing a chat system or something else.

As a side note. Don't look at the implementation of gmail or facebook. There are lots of descriptions out there on how they build their stuff. They build for immense scale. You don't. They use a nail gun because they need too, you just need a hammer.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜