摘要 |
<p>Embodiments of the present invention provide a method for routing services and a service network, where the method includes: receiving a service interaction message that includes an address of a destination service and a type of a destination service; routing, according to the address of the destination service and the type of destination service, the service interaction message to an accessing service router of the destination service by using at least one of a sub-network, a global P2P layer, and a service cluster. This method can ensure that services are accessed to the service network according to the homes of services, thus facilitating the management and control of services. In addition, service interactions crossing subnets are routed through the global P2P layer, which ensures the self-organizing ability of the whole service network. Furthermore, the service cluster can establish a shortcut for a same type of service between multiple sub-networks, which reduces the number of routing hops in the interaction between the same type of services, speeds up the service response, and lightens the loads on the global P2P layer.</p> |