Patent attributes
Systems and methods are described for implementing multiple virtual tasks, or task copies, in an on-demand code execution system or other distributed code execution environment, each virtual task or task copy corresponding to a common parent task and sharing executable code. Virtual tasks or task copies may be handled independently at the on-demand code execution system, enabling separated queuing, throttling, or logging, in a manner similar to two unrelated tasks. However, the on-demand code execution system may process calls to execute a first virtual task using knowledge of executions of other, related virtual tasks, in order to reduce or eliminate data duplication between executions of the first virtual task and the related virtual tasks. In this manner, the computational resources required to implement virtual tasks can be minimized or eliminated.