Which is better - requests or elasticsearch

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

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.

1 Like

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