+ Reply to Thread
Results 1 to 5 of 5

Thread: How to create a chat system in my x10hosting website?

  1. #1
    divinemamgai70's Avatar
    divinemamgai70 is offline x10Hosting Member divinemamgai70 is an unknown quantity at this point
    Join Date
    Jun 2011
    Location
    India
    Posts
    2

    How to create a chat system in my x10hosting website?

    Does anyone have any ideas about how to create a chat system that can handle almost 1000 users at once and it should not be powered by simple Ajax because it takes user's bandwidth which I don't want to. So is there a way to use ajax push in my free x10hosting account?

  2. #2
    cybrax's Avatar
    cybrax is offline x10 Elder cybrax is on a distinguished road
    Join Date
    Aug 2009
    Location
    UK
    Posts
    699

    Re: How to create a chat system in my x10hosting website?

    Using ajax push is never going to reduce a users incoming bandwidth because all the messages have to be delivered and of course the server has to send them. This outgoing bandwidth consumption by the server being the true problem of running a busy chatroom.

    Implenting 'push' at the users browser would help prevent the chat server being flooded with polling requests for the common data source and that should help scalability to some extent but it is not really a solution.

    I do have a couple of ideas that may allow a super massive chatroom to exist inside a free account but will need a few days to bash some code and see wether an existing chatroom could be modified or it needs to built completely from scratch.
    The code must flow.
    Project 157: Latest UK Jobs direct to your mobile phone
    New Domain under construction: Lovelogic.net
    home for some new projects that we can't keep here ;)


  3. #3
    Skizzerz's Avatar
    Skizzerz is offline Contributors Skizzerz will become famous soon enough
    Join Date
    Nov 2007
    Location
    Texas
    Posts
    2,153

    Re: How to create a chat system in my x10hosting website?

    Keep in mind that you likely will not be able to support a 1000 user chat on your free hosting account due to our limitations on CPU usage, you'd likely find your site taken offline temporarily for hitting the resource usage limit.
    Ryan Schmidt | Level 2 Support
    █ 888-X10-9668 - ryan[@]x10hosting.com
    x10Hosting - Giving Away Hosting Since 2004
    Premium Hosting | VPS Services

  4. #4
    ChatIndia's Avatar
    ChatIndia is offline Community Advocate ChatIndia is on a distinguished road
    Join Date
    Sep 2009
    Location
    Exam Time. I won't tell you
    Posts
    1,320

    Re: How to create a chat system in my x10hosting website?

    hi divinemamgai70,

    I am also from India. I also have a chat site. I have researched a lot on chat scripts and found that script built in php aren't able to handle high loads, at least they are not able to handle your 1000 connections load.

    You have to use scripts hosted on others server. There are some scripts available for free like parachat, nestchat, yeechat etc etc.

    alternatively you can use my script on your website. If you use my script you won't have to start with 0 users. We have users from India and China. Our Chinese users are very decent and would be beneficial for your website.

    Code:
    http://chatindia.co.in:35555/123flashchat.swf?init_room=&init_listroom=&init_skin=blue
    Try the above code. If you like then you can use it. If you don't like then try the links below to check other services

    Yeechat --- www.yeechat.com

    Parachat --- www.parachat.com
    Last edited by ChatIndia; 11-23-2011 at 03:37 AM.
    Your appreciation is extremely Important. Click on the button at the bottom left corner of my post.

  5. #5
    essellar's Avatar
    essellar is offline Community Advocate essellar has a spectacular aura about
    Join Date
    Feb 2010
    Location
    Toronto, Ontario, CA
    Posts
    1,153

    Re: How to create a chat system in my x10hosting website?

    Just in case it occurs to anybody to try this here:

    Server push means a continuous socket connection. That means that the browser needs to support WebSockets, and that the server needs a WebSocket server (a daemon, which can be a continuously-running PHP script).

    The requirement for WebSockets pretty much brings the browser choices down to current versions of Firefox and Chrome. (Opera and Safari support an older, insecure version of the protocol; IE doesn't support WebSockets to date.) The requirement to run a daemon -- a script that runs continuously -- means that you won't be able to run the server side of the socket on either a Free Hosting account or a Premium account (although you should be good to go on a VPS if you don't mind burning your fair share cycles to run the daemon). There's no way to do push without a daemon -- the server needs to monitor the chat data, and it needs an open connection to the browser to send the data. Each browser that's using chat needs its own socket, and that means clock cycles, memory and connection-maintaining chatter over the TCP connection. It is far more intensive to implement than client-pull. (And that's why Skype is partially peer-to-peer routing -- it takes a lot of load off of the server.)
    “Beware of bugs in the above code; I have only proved it correct, not tried it.” --Donald Knuth
    "It was as if its architects were given a perfectly good hammer and gleefully replied, 'neat! With this hammer, we can build a tool that can pound in nails.'" -- Alex Papadimoulis (on TheDailyWTF.com)

+ Reply to Thread

Similar Threads

  1. I want to create my website at x10hosting.
    By manishdwibedy in forum Free Hosting
    Replies: 1
    Last Post: 09-09-2011, 02:59 AM
  2. Suspension Reason 2sichat subfolder has a mysql based chat system.
    By photography.yoh99 in forum Free Hosting
    Replies: 1
    Last Post: 10-03-2010, 11:02 PM
  3. a simple chat system
    By renejimsoler96 in forum Programming Help
    Replies: 4
    Last Post: 09-21-2010, 06:31 PM
  4. One update on our chat system.. (IRC)
    By Russ in forum Free Hosting
    Replies: 9
    Last Post: 02-20-2008, 05:54 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers