Re: [PHP] web based chat app



On Tuesday 29 April 2008 06:48:38 paragasu wrote:
i am planning to integrate chat application on my website.
the idea is to make online user on my website to chat to each other.
it is using PHP5+jQuery, i want it to be as light as possible. I am not
sure about the database to use, but i have 3 options.. file based, sqlite3
or mysql5.

i am thinking to use sqlite3 because it is fast but afraid it cannot handle
many user
request (i remember reading it is not so good for multiple user). It is
also possible to use
memory based storage /dev/shm (in debian based, i read somewhere - never
tried yet)

another issue is how to make it light.The chat script should refresh
every 200ms to get the best result or even 1 second still bring quite a
load to the web server.
anyone ever run a web based application?

or any chat based api i can use out there to save server resource?

You want light outta it? use the jabber2 server as a backend. It'll be done
serving while you try to access the database. No need to do a square wheel,
when a round one is invented



--
---
Børge Holen
http://www.arivene.net
.



Relevant Pages

  • Re: Thread Practices
    ... Web Server, has a different, legacy Chat Application on it, amongst ... Are you using asynchronous I/O (i.e. BeginRead / BeginReceive / ...
    (microsoft.public.dotnet.framework.clr)
  • [ISecAuditors Advisories] Arbitrary remote file creation in 123flashchat server
    ... Arbitrary remote file creation in 123flashchat server. ... 123 Flash Chat is a full featured java chat server and flash chat ... By default it is enabled and anybody can create a chat account. ...
    (Bugtraq)
  • The November 11th, 2006, Opera House Chat
    ... For several years there has been a weekly Saturday opera chat ... We use IRC as the venue for our chats. ... please enter through a server ...
    (rec.music.opera)
  • Re: Proxy pattern: remote chat proxy and interfaces
    ... Receive messages from the server and translate those into an MVC ... From the GUI itself, the locally logged in user can issue commands ... What I did was to create a simple chat interface modeling one command ... No. That's why a proxy comes in handy. ...
    (comp.object)
  • Re: Mirc
    ... I would recommend some other server than Undernet. ... Mirc is a program name for a irc program, ... MIRC is another chat service with a shitload of rooms (probabaly way more ...
    (alt.support.chronic-pain)