1. A computer-readable medium having instructions stored thereon that, when executed by a processor, cause the processor to perform aggregation, the instructions comprising: receiving an event; creating a new intermediate state of a data partition based on the event; storing the new intermediate state; reducing the new intermediate state into a form suitable for aggregation; and creating an aggregate value by aggregating the new intermediate state with other intermediate states of other data partitions.