# Near Real Time Analytics With Elasticsearch.js

**URL:** <https://discuss.elastic.co/t/near-real-time-analytics-with-elasticsearch-js/168891>\
**Category:** Elasticsearch\
**Created:** [February 18, 2019, 7:30pm UTC](https://discuss.elastic.co/t/near-real-time-analytics-with-elasticsearch-js/168891 "2019-02-18T19:30:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![moreauap96](https://avatars.discourse-cdn.com/v4/letter/m/e495f1/32.png) [@moreauap96](https://discuss.elastic.co/u/moreauap96)\
**Post date:** [February 18, 2019, 7:30pm UTC](https://discuss.elastic.co/t/near-real-time-analytics-with-elasticsearch-js/168891/1 "2019-02-18T19:30:32Z")

</div>

Good afternoon,

I am hoping to find a way to leverage elasticsearch.js (running in the browser) to pull records continuously to support a real time Analytics application I am developing. I can pull data but I was hitting the timeout issue then I ran into insufficient resource issues. I have the client.search running in a loop such that it pulls down the last 3 seconds every 3 seconds. Is there a preferred API for near real time streaming and if not is there a way to prevent time out and clear the returned results after each run?

Thanks,  
Andrew Moreau

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 18, 2019, 7:30pm UTC](https://discuss.elastic.co/t/near-real-time-analytics-with-elasticsearch-js/168891/2 "2019-03-18T19:30:36Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
