# While executing a Search Request Synchronous or Asynchronous Execution, which should we follow?

**URL:** <https://discuss.elastic.co/t/while-executing-a-search-request-synchronous-or-asynchronous-execution-which-should-we-follow/175713>\
**Category:** Elasticsearch\
**Created:** [April 7, 2019, 12:15pm UTC](https://discuss.elastic.co/t/while-executing-a-search-request-synchronous-or-asynchronous-execution-which-should-we-follow/175713 "2019-04-07T12:15:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aswini\_Kumar\_Rout](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aswini_kumar_rout/32/42165_2.png) [@Aswini\_Kumar\_Rout](https://discuss.elastic.co/u/Aswini_Kumar_Rout)\
**Post date:** [April 7, 2019, 12:15pm UTC](https://discuss.elastic.co/t/while-executing-a-search-request-synchronous-or-asynchronous-execution-which-should-we-follow/175713/1 "2019-04-07T12:15:54Z")

</div>

1.In which case we will get the Response quickly?

Ex-Like if 500 people making request at the same time

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [April 7, 2019, 12:31pm UTC](https://discuss.elastic.co/t/while-executing-a-search-request-synchronous-or-asynchronous-execution-which-should-we-follow/175713/2 "2019-04-07T12:31:21Z")

</div>

That will be the same.

---

<div class="post-metadata">

**Author:** ![Aswini\_Kumar\_Rout](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aswini_kumar_rout/32/42165_2.png) [@Aswini\_Kumar\_Rout](https://discuss.elastic.co/u/Aswini_Kumar_Rout)\
**Post date:** [April 15, 2019, 12:03pm UTC](https://discuss.elastic.co/t/while-executing-a-search-request-synchronous-or-asynchronous-execution-which-should-we-follow/175713/3 "2019-04-15T12:03:35Z")

</div>

But when I perform a load test on my service (500 or 100 requests at a time).sometimes the service failed with 80,250 etc times But not all the times (sometimes it gives 100% result).

Can I do anything for this?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [April 15, 2019, 1:43pm UTC](https://discuss.elastic.co/t/while-executing-a-search-request-synchronous-or-asynchronous-execution-which-should-we-follow/175713/4 "2019-04-15T13:43:09Z")

</div>

I don't know. Not sure I understood the problem though. Specifically without any logs it's hard to answer.

Anyway maybe someone else can help.

---

<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:** [May 13, 2019, 1:43pm UTC](https://discuss.elastic.co/t/while-executing-a-search-request-synchronous-or-asynchronous-execution-which-should-we-follow/175713/5 "2019-05-13T13:43:13Z")

</div>

Closed on May 13, 2019, 1:43pm UTC

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