Hey guys,
So I want to create a desktop application for instant messaging.
I've read the typical way of doing it (and did it back in my VB days) of creating a server and a client, with the server always needing to be running and such.
But my question is what if I took a php/mysql approach.
Heres how I envisioned it working:
- Layer 1 is one backend of the application. This part sends the inputed text to the MySQL database.
- Layer 2 pings the MySQL database and looks for new content. If there is no new content for that specific user, nothing occurs.
- Layer 3 displays the new content that is found in Layer 2. So basically this is the GUI.
Here are the issues I see: would it be to costly/straining for the database and server to constantly check it? And, well, what else?
The reason I was thinking about this method is because A. it is going to be much easier for me to make and B. it does not need to be real time. Think of it like text messaging. Or if any of you have a blackberry, just like blackberry messenger.
I look forward to hearing all of your thoughts and opinions.
So I want to create a desktop application for instant messaging.
I've read the typical way of doing it (and did it back in my VB days) of creating a server and a client, with the server always needing to be running and such.
But my question is what if I took a php/mysql approach.
Heres how I envisioned it working:
- Layer 1 is one backend of the application. This part sends the inputed text to the MySQL database.
- Layer 2 pings the MySQL database and looks for new content. If there is no new content for that specific user, nothing occurs.
- Layer 3 displays the new content that is found in Layer 2. So basically this is the GUI.
Here are the issues I see: would it be to costly/straining for the database and server to constantly check it? And, well, what else?
The reason I was thinking about this method is because A. it is going to be much easier for me to make and B. it does not need to be real time. Think of it like text messaging. Or if any of you have a blackberry, just like blackberry messenger.
I look forward to hearing all of your thoughts and opinions.