[ 
https://issues.apache.org/jira/browse/SOLR-8550?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15098459#comment-15098459
 ] 

Joel Bernstein edited comment on SOLR-8550 at 1/14/16 5:41 PM:
---------------------------------------------------------------

The general design is to add a new AsyncStream which will be handled 
differently by the /stream handler. When the /stream handler sees an 
AsyncStream it will open it and just keep it around in a memory. The 
AsyncStream will have a thread that wakes up periodically and opens, reads, and 
closes it's underlying stream. Syntax would look like this:

{code}
async(alert())
{code}

The AlertStream would be a new stream created in a different ticket. 

Parallel async streams should work fine as well, facilitating very large scale 
alerting systems:
{code}
parallel(async(alert()))
{code}

In the parallel example the AsyncStream would be pushed to worker nodes where 
they would live.




was (Author: joel.bernstein):
The general design is to add a new AsyncStream which will be handled 
differently by the /stream handler. When the /stream handler sees an 
AsyncStream it will open it and just keep it around in a memory. The 
AsyncStream will have a thread that wakes up periodically and opens, reads, and 
closes it's underlying stream. Syntax would look like this:

{code}
async(alert())
{code}

The AlertStream would be a new stream created in a different ticket. 

Parallel async streams should work fine as well, facelitating very large scale 
alerting systems:
{code}
parallel(async(alert()))
{code}

In the parallel example the AsyncStream would be pushed to worker nodes where 
they would live.



> Add asynchronous streams to the Streaming API to facilitate alerting
> --------------------------------------------------------------------
>
>                 Key: SOLR-8550
>                 URL: https://issues.apache.org/jira/browse/SOLR-8550
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Joel Bernstein
>
> Currently all streams are are synchronously *pulled* from a client.
> It would be great to add the capability to have Asyncronous streams that live 
> within Solr that can *push* content as well. This would facilite very large 
> scale alerting.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to