Search code examples
httplotus-noteslotus-dominolong-polling

Domino HTTP Task and long polling


I have a web application running on Domino HTTP, which queries data from the user mail databases.

I would like to implement Long Polling, Direct Push, WebSockets or any similar technique into that application to get changes from the server instantly or with low delay (and without user interaction). Is this possible, and if so, how?

Right now, to get the data, I am using Notes agents which are called via HTTP, but of these there can only be finitely many at the same time (3 by default?), so I would have to find a non-blocking alternative.


Solution

  • Assuming you have access to make changes to the mailfiles/mailserver you could one of few things.

    • You could explore using Triggerhappy which is a low level event trigger mechanism that needs server side setup
    • You can run the agent within the mailfile and trigger it on before/after new mail event. You would need to set this up on each mailin
    • The simplest way might be to poll. Setup Data access services and keep polling the api over http
    • Last resort, you can setup an agent in the mail.box