1. A computer-implemented method, comprising: under the control of one or more computer systems configured with executable instructions, obtaining application source code for a software application to be deployed in a computing environment; identifying a method caller and a called method within the application source code, the method caller being a method from which the called method is called; determining, from the application source code, that the called method, as a result of a call from the method caller, is to execute in accordance with latency criteria; determining an affinity value for the called method based at least in part on the latency criteria; calculating, based at least in part on the affinity value, an affinity score between the method caller and the called method, the affinity score indicating a target proximity between packages deployed in the computing environment; outputting a first package for the method caller and a second package for the called method, the first package including the affinity score between the method caller and the called method; and deploying the first package and the second package in accordance with the affinity score.