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.

Saturday, December 24, 2011

Lies, Damn Lies and Statistics

Previously...
  • I discovered that my new plan would not work
  • I decided to use a new, new plan.
  • I analyzed the function handle_http_put in the existing code.
I was going to detail send_outpacket and http_put, but I tried analyzing send_outpacket and found it quite difficult to understand.  At this point, I don't think the benefit from the analysis would justify the effort involved.  So for right now, I am going to skip send_outpacket and http_put and go right to the stuff that pertains to megaphone.

So the next steps are now to code up mod_megaphone so that it:
  • Launches a new process when a request comes in.  
  • The process then invokes ejabberd_http_bind:process_request.
  • The process waits for the reply
  • The process takes the reply and formats a valid HTTP response from it.
  • The process sends the reply using the megaphone protocol back to ECM.

No comments:

Post a Comment