What is Megaphone?

What is Megaphone?
The Megaphone project is about enhancing open source chat software. Specifically, the goal is to allow ejabberd to support 1,000,000 simultaneous users. See The Plan page for more details on how I plan to solve this problem. See the About this Blog page for more details on why I created this blog.

Wednesday, February 22, 2012

Yack! Gag! Integration with ejabberd

Previously...
  • I created comments for the megaphone_receiver module.
  • I created comments for the megaphone_sender module.
  • I fixed some stuff and ran out of excuses not to start testing with ejabberd
> Look
> You are in a room with an ejabberd module called "megaphone" and the ejabberd system
> Connect the damn thing 
> I see no "damn thing."
> Connect megaphone to ejabberd 
> Megaphone is now connected to ejabberd 
> Turn on ejabberd 
> ejabberd explodes with a flat "kaboom" which blows up the machine, the room, and the house.  By some miracle you are not killed.  It is now, however, completely dark and you are therefore eaten by a grue.  
You have died.  You have earned 2 out of 768 possible points.  This gives you the rank of rank amateur.

Well...I can't say that I'm surprised that it didn't work, but I am very disappointed.  VERY.  DISAPPOINTED.

Now granted, this is what always happens but certain coworkers, who were somewhat inebriated at the time, assured me that this time everything would work out just fine, given the exhaustive review that they had put my system through before allowing me to throw the switch.

In this particular situation there are two ways that you module can be kicked off: when the system starts up and when the web portion of the system gets a connection.  The part I am trying out is the one that starts up when the system starts up.

Then I need to figure out what API that megaphone needs to implement in order to be notified and how it should respond.

All fun topics that I will be wrestling with for quite some time.

No comments:

Post a Comment