These aggregations compute some common statistics in a single request, without having to issue multiple requests. This saves resources on the Elasticsearch side, as well, because the statistics are computed in a single pass, rather than being requested multiple times. The client code also becomes simpler if you are interested in more than one of these statistics. Let's look at stats aggregation first.