Elasticsearch API vs CURL calls

Hi first post so excuse my lack of knowledge,

I currently have a php script pushing data to elasticsearch via a curl call, and was thinking about changing this to use the API and have 2 questions :slight_smile:

  • Is the API client provided faster than a standard curl call?

  • What protocol does the API use to communicate with an Elastic module ?

  1. i don’t think there is a difference
  2. HTTP

The clients tend to use persistent connections, as this is best practice, so might be a bit faster than curl, which I believe will create and tear down a connection for each request.

1 Like

Perfect thanks for the reply's , think ill implement it and see if it ends up making life easier.

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