1. A method of generating a sequence of interactions, comprising: defining, by a processor, one or more sequence types, each of the one or more sequence types based on a time frame and associated with one or more customers via a unique customer identifier; receiving, by a distributed computing system comprising a plurality of computing nodes running a distributed database on distributed processors and distributed memory, a batch of interaction data describing interaction events between the one or more customers and an agent, sorting, by the distributed computing system, the received batch of interaction data into groups of interaction events, wherein each group is associated with a corresponding unique customer identifier of the one or more customers; storing the sorted groups of interaction events in a customer history table based on the customer identifier, wherein the customer history table stores historical interaction events for each of the one or more customers; and for each customer identifier in the customer history table: a) for each received interaction event: if the particular received interaction event matches one or more sequence types associated with the current customer identifier, loading a subset of the historical interaction events associated with the current customer identifier that are within the corresponding time frame, b) assigning each loaded subset of historical interaction events and the particular received interaction event to a sequence for the particular customer identifier.