groupme / em-apn

EventMachine'd Apple Push Notifications
MIT License
48 stars 15 forks source link

Any way to hold persistent connection while perform resque jobs #7

Closed dazuiba closed 12 years ago

dazuiba commented 12 years ago

I come from apn-sender. Apn-sender is not support apn so I want give a try on em-apn

When I walk through em-apn code , find I can use ./script/pusher , to send notifications to apple.

Apn-sender have a worker for resque-jobs. Does em-apn have plan on this kind of feature?

daveyeu commented 12 years ago

Sorry, no, there are no plans to include a Resque worker in em-apn.

I'm not sure that em-apn is suitable for traditional Resque workers, however, since the main benefit of em-apn is the persistent connection to Apple's push notification servers. I get the feeling that the forking model of Resque workers would sever the connection, even if the connection object is memoized. Let me know if you see otherwise.

cmdrkeene commented 12 years ago

You can also try out https://github.com/groupme/pace It's an event machine based resque reactor. It's pretty barebones and not super user friendly, BUT if you write a Message class and a Sender class you can probably pick off jobs and use em-apn. Bundle it up in a script. Step 3. Profit :)