Jump to content

Chat application performance, mysql or socket server


eutu9

Recommended Posts

Hi guys!

 

I have to develop a chat application (the client application has to be flash), and I can see 2 methods of doing it:

1.) using mysql database and PHP files to insert and read data (XML output)

2.) creating a socket server, that listens on a specified port and keeps a connection alive

 

I think the Mysql database approach would using up a lot of resources, in this case I have to make at least one query per second per user (and this is a lot when are hundreds/thousands of users online).

 

The socket server approach is more elegant and since the server keeps a continuous connection and I would not have to check every second for new text, I can just push it to the client. The problem is that my deadline is coming soon and there is way more work to do with this solution.

 

The mysql server/socket server will be hosted on a dedicated host.

 

 

Can you help me decide?

Will the mysql based solution work well on a dedicated server? Is the socket server based solution better?

 

Thank you in advance!

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.