EventMachine Introductions
As you may know, we use EventMachine a lot at work. I’ve had a bit more time to get familiar with EventMachine then some of the other guys here and was asked to do a presentation to get everyone on the same page.
Not knowing where to start, I started from, what I think is, the start. So, if you’re interested, you can check out the EventMachine Presentation or the EventMachine Introduction I wrote to support the presentation. (Note, it looks like Evince doesn’t draw the background correctly in the presentation so it might look a little strange but readable).
There is a lot more stuff I could add to the introduction, I’ve just run into time constraints at this point. Hopefully, I’ll be able to expand the introduction and get into some of the non-core EM software like EM-HTTP-Request and the EM AMQP library.
Let me know if you have any questions or comments.
I appreciate your efforts.. your introduction got me past the curve. Thanks.
Really enjoyed reading your introduction. It would be very interesting to here/see how you guys are using this at AideRss….any chance of a future post on that? :)
Thanks Dan, your presentation helped me immensely wrapping my head around EM & async programming.
Thank you for that, it’s really hard to find good material on eventmachine!
Great tutorial Dan. I’ve been looking at EM for a while now and I like it a lot but I’m having trouble with the testing part. I’m curious to see how you test you EM apps. There are very few examples out there and all very trivial. I’ve used em-spec but my tests keep hanging when I try to test more that one #defer call at a time.
For the most part I ignore the EM parts or mock them out. I usually try to break the code down into small enough chunks that I can test around EM. Sometimes, I’ll end up stubbing out things like EM::run but that always feels a bit dirty.
All in all, I haven’t found a good way to do it myself yet. Still a matter of tweaking and playing.