@byteandbit (bog) posted a new topic, subject "Most performant API client". It read:

   Hello,  
    Which API client is most performant to access Elasticsearch?  
    Thanks

After which, @Christian_Dahlqvist (Christian Dahlqvist) added

    All client libraries are HTTP based apart from the Java Transport client, which is being deprecated. I am not sure the client has a huge impact on performance as most of the request processing time is likely to be used within Elasticsearch.

So @rugenl (Len Rugen) replied

    I use python, but rewrote a pretty simple api task in Powershell for another team's use. Powershell was much slower. I added timers to measure the call time vs. the code time, it was the code. This was a scroll api call, so there were many calls retrieving a block of events at a time, powershell seemed slow iterating over the returned items.

After which, @Christian_Dahlqvist (Christian Dahlqvist) added

    Most of the available client libraries use connection pools with persistent connections which removed the need to constantly recreate connections. As far as I know there is no client library for powershell which will make it slower.

@system (system) replied

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


{'source': 'discourse', 'url': 'https://discuss.elastic.co/t/most-performant-api-client/223441', 'title': 'Most performant API client', 'views': 328, 'has_accepted_answer': False, 'word_count': 171, 'like_count': 0, 'reply_count': 1, 'participant_count': 3, 'posts': 5, 'tags': 'language-clients', 'author': '@byteandbit (bog)', 'participants': '@byteandbit (bog), @Christian_Dahlqvist (Christian Dahlqvist), @rugenl (Len Rugen), @system (system)', 'image_url': [None], 'created_at': '2020-03-13T03:55:32.669Z', 'last_posted_at': '2020-04-12T06:45:43.232Z'}