Skip to content
Browse files

Add note about Eventmachine with Unicorn.

  • Loading branch information...
1 parent 0001c6f commit 4e7e0c8578ff0d45aa54861594de76d2b04309eb @dzello dzello committed
Showing with 2 additions and 0 deletions.
  1. +2 −0 README.md
View
2 README.md
@@ -68,6 +68,8 @@ thin or goliath you're already doing this. Otherwise, you'll need to start an Ev
The best place for this is in an initializer, or anywhere that runs when your app boots up.
Here's a good blog article that explains more about this approach - [EventMachine and Passenger](http://railstips.org/blog/archives/2011/05/04/eventmachine-and-passenger/).
+And here's a gist that shows an example of [Eventmachine with Unicorn](https://gist.github.com/jonkgrimes/5103321). Thanks to [jonkgrimes](https://github.com/jonkgrimes) for sharing this with us!
+
Now, in your code, replace `publish` with `publish_async`. Bind callbacks if you require them.
http = Keen.publish_async("sign_ups", { :username => "lloyd", :referred_by => "harry" })

0 comments on commit 4e7e0c8

Please sign in to comment.
Something went wrong with that request. Please try again.