主权项 |
1. A computer-implemented method for routing a service request to an appropriate web service, the method comprising computer-implemented operations for:
routing a first service request from a first web service to a second web service, wherein the first web service consumes the second web service; monitoring routing factors associated with the second web service; determining whether the routing factors indicate that the second web service is no longer appropriate for handling service requests; in response to determining that the routing factors indicate that the second web service is no longer appropriate for handling service requests, routing a second service request from the first web service to a third web service, the first web service, the second web service, and the third web service in a composite service, wherein the second web service consumes the third web service; monitoring additional routing factors associated with the third web service; determining whether the additional routing factors indicate that the third web service is no longer appropriate for handling service requests; and in response to determining that the additional routing factors indicate that the third web service is no longer appropriate for handling service requests, routing a third service request from the first web service to a fourth web service, the fourth web service in the composite service, wherein the second web service consumes the fourth web service. |