Moodle

Ajax Chat Module

Details

  • Type: Sub-task Sub-task
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 2.0
  • Fix Version/s: 2.0
  • Component/s: Chat
  • Labels:
    None
  • Environment:
    Ubuntu, apache2, php5
  • Affected Branches:
    MOODLE_20_STABLE
  • Fixed Branches:
    MOODLE_20_STABLE
  1. chat.1.1.1.tar.bz2
    17/Jun/08 1:38 PM
    59 kB
    Dongsheng Cai
  2. chat.1.1.tar.bz2
    16/Jun/08 4:46 PM
    61 kB
    Dongsheng Cai
  1. bubble-chat.png
    60 kB
    14/Sep/09 4:47 PM
  2. Screenshot.png
    53 kB
    07/Sep/09 4:15 PM

Issue Links

Activity

Hide
Dongsheng Cai added a comment - - edited

I created a new chat module GUI, which is using ajax to update messages.

The GUI is pretty rough currently, I will continue to optimize it.
And to improve performance, table structure changed, see MDL-11899.

Show
Dongsheng Cai added a comment - - edited I created a new chat module GUI, which is using ajax to update messages. The GUI is pretty rough currently, I will continue to optimize it. And to improve performance, table structure changed, see MDL-11899.
Hide
Dongsheng Cai added a comment -

See Attachment.

Show
Dongsheng Cai added a comment - See Attachment.
Hide
Dongsheng Cai added a comment -

UI changed.

Please do *disable* firebug when you are using it, because too many ajax connection may crash firefox.

Show
Dongsheng Cai added a comment - UI changed. Please do *disable* firebug when you are using it, because too many ajax connection may crash firefox.
Hide
Dongsheng Cai added a comment - - edited

I am planning to add cache to chat module to improve performance, this is the plan:

Before insert the new chat message into database, push the message into a cache file (/dev/shm, which can hold 100 messages), when user request the lastest messages, we compare the oldest messsage's timestamp $a with user's timestamp $b, if $a<$b, directly response messages in cache, otherwise, fetch the messages from database.

Any advice?

Show
Dongsheng Cai added a comment - - edited I am planning to add cache to chat module to improve performance, this is the plan: Before insert the new chat message into database, push the message into a cache file (/dev/shm, which can hold 100 messages), when user request the lastest messages, we compare the oldest messsage's timestamp $a with user's timestamp $b, if $a<$b, directly response messages in cache, otherwise, fetch the messages from database. Any advice?
Hide
Dongsheng Cai added a comment -

1. Improve GUI
2. Use /dev/shm to cache users list (UNIX) only, this can improve performance (I will cache latest user messages later)

Show
Dongsheng Cai added a comment - 1. Improve GUI 2. Use /dev/shm to cache users list (UNIX) only, this can improve performance (I will cache latest user messages later)
Hide
Dongsheng Cai added a comment -

Please give me some feedbacks to help me improve it. Thanks

Show
Dongsheng Cai added a comment - Please give me some feedbacks to help me improve it. Thanks
Hide
Martin Dougiamas added a comment -

Will this fall back to alternative methods on Windows servers?

Show
Martin Dougiamas added a comment - Will this fall back to alternative methods on Windows servers?
Hide
Dongsheng Cai added a comment -

improve chat UI

Show
Dongsheng Cai added a comment - improve chat UI
Hide
Dongsheng Cai added a comment -

ichat like interface

Show
Dongsheng Cai added a comment - ichat like interface

People

Vote (0)
Watch (3)

Dates

  • Created:
    Updated:
    Resolved: