1. A computer-implemented method for managing an application bundle for processing a stream of tuples, the method comprising: receiving the stream of tuples to be processed by a plurality of processing elements operating on a set of compute nodes; processing, on a first compute node using the application bundle, the stream of tuples; detecting, by the first compute node, a staleness factor with respect to the application bundle; and maintaining, based on a maintenance criterion related to both the application bundle and the plurality of processing elements, the application bundle on the first compute node.