Elasticsearch provides a simple way to execute all kinds of complex aggregations. Often, the result of those aggregations contains a large number of buckets, so it would be good to paginate those buckets efficiently. That's where Composite aggregation comes in handy. Composite aggregation Composite aggregation provides a way to stream all buckets…