Patent ID: 8296411

Claim:
A method for dispatching a request comprising: identifying, via at least one computing device executing program instructions stored in at least one storage medium, a request dispatch to be executed within a first executable code during execution time, wherein the request dispatch is associated with an identification value, wherein the identification value of the request dispatch identifies a second executable code to be executed; prior to execution of the second executable code, determining, via at least one computing device executing program instructions stored in at least one storage medium, an execution mode to execute the second executable code, wherein the determining action comprises evaluating at least one of a performance metric and a threshold value, wherein the performance metric is collected from each previous execution of the request dispatch, wherein the threshold value is at least one of a user established value and a programmatically established value, wherein the execution mode is an asynchronous execution mode or a synchronous execution mode; and responsive to the determining of the execution mode, executing, via at least one computing device executing program instructions stored in at least one storage medium, the request dispatch based on the execution mode, responsive to the performance metric failing to exceed the threshold value, executing the request dispatch synchronously, wherein the synchronous execution mode results in the first executable code halting and the second executable code initiating and completing, after which the halted first executable code resumes executing, and responsive to the performance metric exceeding the threshold value, executing the request dispatch asynchronously, wherein the asynchronous execution mode results in the first and second executable code to be executed simultaneously.