The active contracts service returns a stream of
GetActiveContractsResponse each of which containing a list of
CreatedEvents. However, afaik neither the process for batching creates into individual
GetActiveContractsResponse stream elements is documented nor ordering within a batch or across batches.
Based on experiments, it seems to be the case that events are currently ordered by ledger offset. I couldn’t actually come up with a case where things get batched.
Is that correct? If so, is this a guarantee we make and should document and are there other guarantees? Or should users always treat the ACS endpoint as an unordered set of created events that are batched purely for performance reasons with no guarantees on order or batching process?