Basically, the proxy server can do the following for you:
- It can restrict access to Elastic Search REST API (defaults to safe operations only).
- You can provide handlers to modify HTTP client request (e.g. you can ensure that
sizeis not too big) and Elastic Search response (e.g. you can remove sensitive data).
- It can round-robin client requests among active HTTP enabled nodes (it periodically refreshes list of active nodes), thus, it can provide a single URL for clients to communicate with Elastic Search cluster.