# Which is better - requests or elasticsearch

**URL:** <https://discuss.elastic.co/t/which-is-better-requests-or-elasticsearch/259974>\
**Category:** Elasticsearch\
**Created:** [December 31, 2020, 4:57pm UTC](https://discuss.elastic.co/t/which-is-better-requests-or-elasticsearch/259974 "2020-12-31T16:57:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![elasticforme](https://avatars.discourse-cdn.com/v4/letter/e/f05b48/32.png) [@elasticforme](https://discuss.elastic.co/u/elasticforme)\
**Post date:** [December 31, 2020, 4:57pm UTC](https://discuss.elastic.co/t/which-is-better-requests-or-elasticsearch/259974/1 "2020-12-31T16:57:30Z")

</div>

Inside python I can use two different method to retrieve the data.

one with requests.get or can use elasticsarch module.

for requests.get I can use sql query. while in elasticsearch I have to use REST code.

which one is better if anyone has use this and have any input I will higley appreciate your view

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [January 4, 2021, 10:35pm UTC](https://discuss.elastic.co/t/which-is-better-requests-or-elasticsearch/259974/2 "2021-01-04T22:35:13Z")

</div>

I would use the Elasticsearch module as it has a bunch of things like bulk helpers and connection pooling built in. The Requests module is a generic HTTP one.

---

<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:** [February 1, 2021, 10:35pm UTC](https://discuss.elastic.co/t/which-is-better-requests-or-elasticsearch/259974/3 "2021-02-01T22:35:20Z")

</div>

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