Methods and systems are described for selecting a resource based on a measure of a processing cost. Resource information is received identifying a first resource and a second resource for processing by a program component. One or more of a first measure of a specified processing cost for the processing of the first resource and a second measure of the processing cost for the processing of the second resource is determined. One of the first resource and the second resource is selected based on at least one of the first measure and the second measure. The selected one of the first resource and the second resource is identified to the program component for processing.