1. A computer-implemented method comprising: receiving, at a processor, a query comprising instructions to be executed, the instructions comprising instructions to read from at least one data stream; sending control instructions in a data center to install the received query at a selected one of a plurality of computing entities at the data center; and calculating the selected one of the plurality of computing entities on the basis of both a measure of load balancing between the plurality of computing entities and a measure of communications traffic cost between the at least one data stream and the selected computing entity.