You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Joel Bernstein (JIRA)" <ji...@apache.org> on 2016/01/14 18:28:39 UTC
[jira] [Commented] (SOLR-8550) Add asynchronous streams to the
Streaming API to facilitate alerting
[ https://issues.apache.org/jira/browse/SOLR-8550?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15098459#comment-15098459 ]
Joel Bernstein commented on SOLR-8550:
--------------------------------------
The general design is to add a new AsyncStream which will be handled differently by the /stream handler. When the /stream handler sees a 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-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org