Method and device for PHP-based client to access available remote service

Yin Chuanwen,Wu Feng,Guo Wei
2019-01-01
Abstract:The invention discloses a method and a device for a PHP-based client to access an available remote service. The method comprises the steps of determining a service name of a cluster service needing tobe called, wherein the service name of each service in the cluster service is unique; judging whether configuration information corresponding to the service name exists or not according to the service name; if the corresponding configuration information exists, obtaining corresponding local server list information according to the corresponding configuration information; and accessing the clusterserver according to the local server list information. The client accesses the available remote service through the service discovery mechanism, so that efficient service calling is realized. The method and the system are mainly used for service cluster application in a local area network, and a client accesses available remote services through a service discovery mechanism, so that efficient service calling is realized.
What problem does this paper attempt to address?