Re: SolrJ with Async Http Client

2018-01-08 Thread Emir Arnautović
Not sure if alilgns with your expectations, but here is something that is declared as “async solr client”: https://github.com/inoio/solrs HTH, Emir -- Monitoring - Log Management - Alerting - Anomaly Detection Solr & Elasticsearch Consulting Support Training - ht

Re: SolrJ with Async Http Client

2018-01-05 Thread Erick Erickson
re: upgrade Jetty: See SOLR-11810 On Fri, Jan 5, 2018 at 2:08 PM, Shawn Heisey wrote: > On 1/5/2018 11:35 AM, Gus Heck wrote: > > IIRC http2 allows for multiple (non blocking) requests over a single > > connection, so this Jira might be relevant: > > https://issues.apache.org/jira/browse/SOLR-7

Re: SolrJ with Async Http Client

2018-01-05 Thread Shawn Heisey
On 1/5/2018 11:35 AM, Gus Heck wrote: > IIRC http2 allows for multiple (non blocking) requests over a single > connection, so this Jira might be relevant: > https://issues.apache.org/jira/browse/SOLR-7442 HTTPClient will have http/2 support in version 5.0 -- but only in the async client, not the c

Re: SolrJ with Async Http Client

2018-01-05 Thread Gus Heck
IIRC http2 allows for multiple (non blocking) requests over a single connection, so this Jira might be relevant: https://issues.apache.org/jira/browse/SOLR-7442 -Gus On Wed, Jan 3, 2018 at 10:22 AM, Walter Underwood wrote: > HTTPClient is non-blocking. Send the request, then the client gets con

Re: SolrJ with Async Http Client

2018-01-03 Thread Walter Underwood
HTTPClient is non-blocking. Send the request, then the client gets control back. It only blocks when you do the read. So one thread can send multiple requests then check for each response. wunder Walter Underwood wun...@wunderwood.org http://observer.wunderwood.org/ (my blog) > On Jan 3, 2018

Re: SolrJ with Async Http Client

2018-01-03 Thread Joel Bernstein
Streaming expressions has an event driven architecture built in. There are two blogs that describe how it works. This describes the message queues: http://joelsolr.blogspot.com/2016/10/solr-63-batch-jobs-parallel-etl-and.html This describes an async model of execution: http://joelsolr.blogspot.

Re: SolrJ with Async Http Client

2018-01-03 Thread RAUNAK AGRAWAL
Yes, I am talking about event driven way of calling solr, so that I can write pure async web service. Does SolrJ provides support for non-blocking calls? On Wed, Jan 3, 2018 at 6:22 PM, Hendrik Haddorp wrote: > There is asynchronous and non-blocking. If I use 100 threads to perform > calls to So

Re: SolrJ with Async Http Client

2018-01-03 Thread Hendrik Haddorp
There is asynchronous and non-blocking. If I use 100 threads to perform calls to Solr using the standard Java HTTP client or SolrJ I block 100 threads even if I don't block my program logic threads by using async calls. However if I perform those HTTP calls using a non-blocking HTTP client, lik

Re: SolrJ with Async Http Client

2018-01-02 Thread Rick Leir
Agrawal There is good reading on the topic at https://wiki.apache.org/solr/IntegratingSolr Cheers -- Rick On January 2, 2018 10:31:28 AM EST, RAUNAK AGRAWAL wrote: >Hi Guys, > >I am trying to write fully async service where solr calls are also >async. >Just wondering did anyone tried calling sol

Re: SolrJ with Async Http Client

2018-01-02 Thread Gus Heck
It's not very clear (to me) what your use case is, but generally speaking, asynchronous requests can be achieved by using threads/executors/futures (java) or ajax (javascript). The link seems to be a scala project, I'm sure scala has analogous facilities. On Tue, Jan 2, 2018 at 10:31 AM, RAUNAK AG

SolrJ with Async Http Client

2018-01-02 Thread RAUNAK AGRAWAL
Hi Guys, I am trying to write fully async service where solr calls are also async. Just wondering did anyone tried calling solr in non-blocking mode or is there is a way to do it? I have come across one such project but wondering is there anything provided by solrj