Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Ask HN: Firefox extension for real-time notifications. Where do I start?
2 points by makeee on July 1, 2009 | hide | past | favorite | 1 comment
Hey, thought I'd ask the HN community because this seems like a question others may be interested in.

I'd like to build a Firefox extension for my website that pushes an alert to a user when one of their friends does something on my site.

I imagine the easiest (but less scalable) method would be to have the extension poll my site for updates, but that's going to hurt performance if this thing takes off.

Would it make sense to setup a jabber server for this? Say 1,000 people have this extension installed and are currently online, how resource intensive would this be (would I need a bunch of jabber servers to handle all these connections)?

It would be awesome if there was a real-time notification APIs that would allow me to do something like this without running the jabber network myself.. even if it cost money.

Thanks!



If users are going to have you webpage open in a tab anyway, I might suggest you take a look at Yip.

http://abcdefu.wordpress.com/2009/06/09/introducing-yip-an-u...

Rather than requiring a dedicated plugin, Yip uses the methods already in place for sending updates via Fluid or Prism.

If you want it to live entirely in the browser's chrome, you may need to do a full extension.

I can't speak to the resources needed- It depends on how heavy your backend is.. But if you have 1000 users all updating once few seconds, a single nginx box very well could cover your needs.

Serving static html takes substantially fewer resources than people suspect.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: