Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

A pattern that I like to use in toy projects is to have an events endpoint and just send the newest event cursor through a notification channel (e.g. webhooks) when a new event occurs. You get new event quickly, you don't have to keep connections open for long-polling, and you can keep polling with a low period in case the event channel stops working for some reason.


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

Search: