摘要 |
One embodiment of the present invention provides a system that selectively transfers code to a data producer in a networked system. In this system, the data producer generates data and then sends the data to a device. The device receives the data from the data producer, and then uses code on the device to perform a processing operation on the data. Next, the system analyzes characteristics of the data to determine whether performing the processing operation on the data producer can reduce resource usage. If so, the system transfers the code from the device to the data producer, and subsequently executes the code on the data producer. By executing the code on the data producer, the system can optimize resource usage in the networked system.
|