CN110113194B - Method and device for client to access available remote service based on PHP - Google Patents

Method and device for client to access available remote service based on PHP Download PDF

Info

Publication number
CN110113194B
CN110113194B CN201910341153.5A CN201910341153A CN110113194B CN 110113194 B CN110113194 B CN 110113194B CN 201910341153 A CN201910341153 A CN 201910341153A CN 110113194 B CN110113194 B CN 110113194B
Authority
CN
China
Prior art keywords
server
service
name
cluster
configuration information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910341153.5A
Other languages
Chinese (zh)
Other versions
CN110113194A (en
Inventor
尹传文
吴峰
郭伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wheel Interconnection Technology Shanghai Co ltd
Original Assignee
Shanghai Yidianshikong Network Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Yidianshikong Network Co Ltd filed Critical Shanghai Yidianshikong Network Co Ltd
Priority to CN201910341153.5A priority Critical patent/CN110113194B/en
Publication of CN110113194A publication Critical patent/CN110113194A/en
Application granted granted Critical
Publication of CN110113194B publication Critical patent/CN110113194B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/63Routing a service request depending on the request content or context

Abstract

The application discloses a method and a device for a client to access available remote services based on PHP, wherein the method comprises the following steps: determining the service name of the cluster service to be called; the service name of each service in the cluster service is set uniquely; judging whether configuration information corresponding to the service name exists or not according to the service name; if the corresponding configuration information exists, acquiring corresponding local server list information according to the corresponding configuration information; and accessing the cluster server according to the local server list information. The client accesses available remote services through a service discovery mechanism, thereby realizing efficient service invocation. The invention is mainly used for the service cluster application in the local area network, and the client accesses the available remote service through the service discovery mechanism, thereby realizing the efficient service invocation.

Description

Method and device for client to access available remote service based on PHP
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for a client to access an available remote service based on a PHP.
Background
A server cluster refers to a collection of servers that together perform the same service, and appears to a client as if there is only one server. The cluster can use a plurality of computers to perform parallel computation so as to obtain high computation speed, and can also use a plurality of computers to perform backup so as to ensure that any one machine damages the whole system or can normally run.
The existing cluster service-based client accesses remote services, and efficient service calling cannot be realized frequently.
In view of the problems in the related art, no effective solution has been proposed.
Disclosure of Invention
The present application mainly aims to provide a method and an apparatus for a client to access an available remote service based on PHP, so as to solve technical problems in the related art.
To achieve the above object, according to one aspect of the present application, there is provided a method for a PHP-based client to access available remote services.
The method for the PHP-based client to access the available remote service comprises the following steps:
determining the service name of the cluster service to be called; the service name of each service in the cluster service is set uniquely;
judging whether configuration information corresponding to the service name exists or not according to the service name;
if the corresponding configuration information exists, acquiring corresponding local server list information according to the corresponding configuration information;
and accessing the cluster server according to the local server list information.
Further, the method for the PHP-based client to access the available remote services as described above further includes:
registering self information of a client to a service discovery center of a cluster server in advance; wherein the self information includes: local area network IP, port information;
regularly detecting the health condition of the cluster server;
if the first server does not exist in the local server list and meets the preset health condition, adding the first server to the local server list; and the number of the first and second groups,
and if the second server exists in the local server list and does not accord with the preset health condition, deleting the second server from the local server list.
Further, as the foregoing method for accessing an available remote service by a client based on a PHP, the accessing a cluster server according to the local server list information specifically includes:
the cluster service is enabled to determine a unique server name of each server in advance; the server name includes: IP, port;
determining a method to be executed;
packing the name space, class name, method name and parameter list of the method into a communication protocol body;
selecting a server name from the local server list; the selection method comprises the following steps: polling selection and random selection;
and sending the communication protocol body to a corresponding server according to the selected server name.
Further, the method for the PHP-based client to access the available remote service as described above, if the corresponding configuration information does not exist, includes:
predetermining a server list corresponding to each service name; wherein each server list comprises one or more servers;
and acquiring the latest complete configuration information of the cluster server and updating the latest complete configuration information to the local.
Further, the method for the PHP-based client to access the available remote service as described above, if the corresponding configuration information does not exist, includes:
monitoring whether the complete configuration information of the cluster server is changed;
and when the cluster server is changed, acquiring the changed complete configuration information of the cluster server and updating the complete configuration information to the local.
To achieve the above object, according to another aspect of the present application, there is provided an apparatus for a PHP-based client to access available remote services.
The device for the PHP-based client to access the available remote service according to the application comprises the following components:
the service name determining unit is used for determining the service name of the cluster service to be called; the service name of each service in the cluster service is set uniquely;
the first judgment unit is used for judging whether configuration information corresponding to the service name exists or not according to the service name;
a first obtaining unit, configured to, when the corresponding configuration information exists, obtain corresponding local server list information according to the corresponding configuration information;
and the access unit is used for accessing the cluster server according to the local server list information.
Further, the apparatus for the PHP-based client to access the available remote service as described above further includes:
the registration unit is used for registering the self information of the client to a service discovery center of the cluster server in advance; wherein the self information includes: local area network IP, port information; and
a first monitoring unit; the first monitoring unit includes:
the first monitoring module is used for regularly detecting the health condition of the cluster server;
the adding module is used for adding the first server into the local server list when the first server does not exist in the local server list and meets a preset health condition; and the number of the first and second groups,
and the deleting module is used for deleting the second server from the local server list when the second server exists in the local server list and does not accord with the preset health condition.
Further, as aforementioned apparatus for accessing available remote services by a client based on PHP, the access unit specifically includes:
the name determining module is used for enabling the cluster service to determine a unique server name of each server in the cluster service in advance; the server name includes: IP, port;
the method determination module is used for determining the method to be executed;
the packaging module is used for packaging the name space, the class name, the method name and the parameter list of the method into a communication protocol body;
a selection module for selecting a server name from the local server list; the selection method comprises the following steps: polling selection and random selection;
and the sending module is used for sending the communication protocol body to the corresponding server according to the selected server name.
Further, the apparatus for the PHP-based client to access the available remote service as described above further includes:
a server list determining unit, configured to determine in advance a server list corresponding to each service name; wherein each server list comprises one or more servers;
and the complete configuration information acquisition unit is used for acquiring the latest complete configuration information of the cluster server and updating the latest complete configuration information to the local area if the corresponding configuration information does not exist.
Further, the apparatus for the PHP-based client to access the available remote service as described above further includes: a changing unit; the changing unit includes:
the monitoring module is used for monitoring whether the complete configuration information of the cluster server is changed;
and the updating module is used for acquiring the complete configuration information after the cluster server is changed and updating the complete configuration information to the local when the cluster server is changed.
In the embodiment of the application, a method and a device for a PHP-based client to access available remote services are adopted, wherein the method comprises the following steps: determining the service name of the cluster service to be called; the service name of each service in the cluster service is set uniquely; judging whether configuration information corresponding to the service name exists or not according to the service name; if the corresponding configuration information exists, acquiring corresponding local server list information according to the corresponding configuration information; and accessing the cluster server according to the local server list information. The client accesses available remote services through a service discovery mechanism, thereby realizing efficient service invocation. The invention is mainly used for the service cluster application in the local area network, and the client accesses the available remote service through the service discovery mechanism, thereby realizing the efficient service invocation.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this application, serve to provide a further understanding of the application and to enable other features, objects, and advantages of the application to be more apparent. The drawings and the description of the exemplary embodiments of the present application are provided for explaining the present application and do not constitute an undue limitation on the present application. In the drawings:
FIG. 1 is a flowchart illustrating a method for a PHP-based client to access available remote services according to one embodiment of the present application; and
fig. 2 is a diagram of an apparatus for a PHP-based client to access available remote services according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the application described herein may be used. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In this application, the terms "upper", "lower", "left", "right", "front", "rear", "top", "bottom", "inner", "outer", "middle", "vertical", "horizontal", "lateral", "longitudinal", and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings. These terms are used primarily to better describe the present application and its embodiments, and are not used to limit the indicated devices, elements or components to a particular orientation or to be constructed and operated in a particular orientation.
Moreover, some of the above terms may be used to indicate other meanings besides the orientation or positional relationship, for example, the term "on" may also be used to indicate some kind of attachment or connection relationship in some cases. The specific meaning of these terms in this application will be understood by those of ordinary skill in the art as appropriate.
Furthermore, the terms "mounted," "disposed," "provided," "connected," and "sleeved" are to be construed broadly. For example, it may be a fixed connection, a removable connection, or a unitary construction; can be a mechanical connection, or an electrical connection; may be directly connected, or indirectly connected through intervening media, or may be in internal communication between two devices, elements or components. The specific meaning of the above terms in the present application can be understood by those of ordinary skill in the art as appropriate.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
To achieve the above object, according to one aspect of the present application, there is provided a method for a PHP-based client to access available remote services. As shown in fig. 1, the method includes steps S1 to S4 as follows:
s1, determining a service name of a cluster service to be called; the service name of each service in the cluster service is set uniquely;
that is, it is first determined what the service needs to be invoked (e.g., registration, access, etc.);
s2, judging whether configuration information corresponding to the service name exists or not according to the service name;
s3, if the corresponding configuration information exists, acquiring corresponding local server list information according to the corresponding configuration information;
and S4, accessing the cluster server according to the local server list information.
That is, when the client performs a service call, the client loads the available server list information according to the service name and the local specified path.
Service high performance: the service is resident in the process, the service starting expense is reduced, the communication link of the intranet is short, and the gateway routing is not needed.
In some embodiments, the method for a PHP-based client to access available remote services as described above further comprises:
registering self information of a client to a service discovery center of a cluster server in advance; wherein the self information includes: local area network IP, port information;
regularly detecting the health condition of the cluster server;
if the first server does not exist in the local server list and meets the preset health condition, adding the first server to the local server list; and the number of the first and second groups,
and if the second server exists in the local server list and does not accord with the preset health condition, deleting the second server from the local server list.
Specifically, a service registration mechanism may be provided according to the method in this embodiment, and service registration is performed in a zookeeper or etcd manner or a cloud configuration manner, so as to provide a service monitoring script and achieve automatic online and offline of a service.
The detailed steps are as follows: the method for realizing the high availability of the service cluster realizes the online and offline management of the servers in the cluster service, ensures that the server lists in the cluster service are all available, can distribute client requests to realize load balance on one hand, and can realize a uniform external high availability service gateway on the other hand. After the server is deployed, information such as local area network ip and ports of the server is registered to a service discovery center through the use of related functions of a third-party service registration and discovery tool (a cloud configuration center built by the server can be used for storing related information of cluster services) such as zookeeper or etcd.
And then customizing a service monitoring script, regularly detecting the health condition of the cluster server, if the target server meets the health condition, putting the service on line, otherwise, putting the service off line. The term "service" means "adding or removing a target server from a specified cluster service.
In some embodiments, as the foregoing method for accessing an available remote service by a client based on a PHP, the accessing a cluster server according to the local server list information specifically includes:
the cluster service is enabled to determine a unique server name of each server in advance; the server name includes: IP, port;
determining a method to be executed;
packing the name space, class name, method name and parameter list of the method into a communication protocol body;
selecting a server name from the local server list; the selection method comprises the following steps: polling selection and random selection;
and sending the communication protocol body to a corresponding server according to the selected server name.
Specifically, a service discovery mechanism may be provided according to the method in this embodiment, when a client performs service invocation, first load available server list information on a local specified path according to a service name, and if the local path does not have the configuration information, obtain latest service configuration information from a service registrar and store the latest service configuration information in the local specified path.
For cluster management, service registration and service discovery work in concert. After the service is registered, the client initiates a request to the service discovery center to obtain an available server ip and port (namely, a server in an online state), and then connects to a target server to initiate an RPC call.
In order to improve the efficiency of acquiring available services, a unique name is defined for each service, then the list information of the available servers corresponding to the service is stored under a local specified directory, the configuration file (such as data/configuration/service _ user. conf) is named by the name of the service, and the client preferentially reads the list of the available remote servers from the configuration file for RPC calling.
Thus, each function can be split into separate services, with little interaction between the services. Furthermore, service is highly available: each function can provide a group of service clusters, cluster services are selected automatically, and horizontal expansion is simple. The service has fusing degradation function, and self service capability is guaranteed.
In some embodiments, the method for the PHP-based client to access the available remote service as described above, if the corresponding configuration information does not exist, includes:
predetermining a server list corresponding to each service name; wherein each server list comprises one or more servers;
and acquiring the latest complete configuration information of the cluster server and updating the latest complete configuration information to the local.
If the configuration file does not exist, the latest service configuration information is obtained from the service registrant and is saved to a local specified path. Since the configuration file is guaranteed to be up-to-date, the service discovery center can obtain the up-to-date configuration and update the configuration to the local area when the cluster server starts or shuts down the service.
In some embodiments, the method for the PHP-based client to access the available remote service as described above, if the corresponding configuration information does not exist, includes:
monitoring whether the complete configuration information of the cluster server is changed;
and when the cluster server is changed, acquiring the changed complete configuration information of the cluster server and updating the complete configuration information to the local.
When the relevant configuration of the service discovery center is changed, the latest configuration information is actively issued to the corresponding configuration file of each service machine (the specific issuing implementation method can be that an agent service is installed on each service machine, the agent services are in long connection with the service discovery center, and the service center can send any instruction to each agent service, including commands of reading and writing local configuration files and the like).
It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowcharts, in some cases, the steps illustrated or described may be performed in an order different than presented herein.
According to an embodiment of the present invention, there is also provided an apparatus for a PHP-based client to access available remote services, implementing the above method for the PHP-based client to access available remote services, as shown in fig. 2, the apparatus includes:
a service name determining unit 1, configured to determine a service name of a cluster service to be called; the service name of each service in the cluster service is set uniquely;
a first judging unit 2, configured to judge whether configuration information corresponding to the service name exists according to the service name;
a first obtaining unit 3, configured to, when the corresponding configuration information exists, obtain corresponding local server list information according to the corresponding configuration information;
and the access unit 4 is used for accessing the cluster server according to the local server list information.
Specifically, the specific process of implementing the functions of each module in the apparatus according to the embodiment of the present invention may refer to the related description in the method embodiment, and is not described herein again.
In some embodiments, the apparatus for a PHP-based client to access available remote services as described above further comprises:
the registration unit is used for registering the self information of the client to a service discovery center of the cluster server in advance; wherein the self information includes: local area network IP, port information; and
a first monitoring unit; the first monitoring unit includes:
the first monitoring module is used for regularly detecting the health condition of the cluster server;
the adding module is used for adding the first server into the local server list when the first server does not exist in the local server list and meets a preset health condition; and (c) a second step of,
and the deleting module is used for deleting the second server from the local server list when the second server exists in the local server list and does not accord with the preset health condition.
Specifically, the specific process of implementing the functions of each module in the apparatus according to the embodiment of the present invention may refer to the related description in the method embodiment, and is not described herein again.
In some embodiments, the PHP-based client accesses an available remote service device as described above, where the access unit specifically includes:
the name determining module is used for enabling the cluster service to determine a unique server name of each server in the cluster service in advance; the server name includes: IP, port;
the method determination module is used for determining the method to be executed;
the packaging module is used for packaging the name space, the class name, the method name and the parameter list of the method into a communication protocol body;
a selection module for selecting a server name from the local server list; the selection method comprises the following steps: polling selection and random selection;
and the sending module is used for sending the communication protocol body to the corresponding server according to the selected server name.
Specifically, the specific process of implementing the functions of each module in the apparatus according to the embodiment of the present invention may refer to the related description in the method embodiment, and is not described herein again.
In some embodiments, the apparatus for a PHP-based client to access available remote services as described above further comprises:
a server list determining unit, configured to determine in advance a server list corresponding to each service name; wherein each server list comprises one or more servers;
and the complete configuration information acquisition unit is used for acquiring the latest complete configuration information of the cluster server and updating the latest complete configuration information to the local area if the corresponding configuration information does not exist.
Specifically, the specific process of implementing the functions of each module in the apparatus according to the embodiment of the present invention may refer to the related description in the method embodiment, and is not described herein again.
In some embodiments, the apparatus for a PHP-based client to access available remote services as described above further comprises: a changing unit; the changing unit includes:
the monitoring module is used for monitoring whether the complete configuration information of the cluster server is changed;
and the updating module is used for acquiring the complete configuration information after the cluster server is changed and updating the complete configuration information to the local when the cluster server is changed.
Specifically, the specific process of implementing the functions of each module in the apparatus according to the embodiment of the present invention may refer to the related description in the method embodiment, and is not described herein again.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and they may alternatively be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, or fabricated separately as individual integrated circuit modules, or fabricated as a single integrated circuit module from multiple modules or steps. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (8)

1. A method for a PHP-based client to access available remote services, comprising:
determining the service name of the cluster service to be called; wherein the service name of each service in the cluster service is uniquely set;
judging whether configuration information corresponding to the service name exists or not according to the service name;
if the corresponding configuration information exists, acquiring corresponding local server list information according to the corresponding configuration information;
accessing the cluster server according to the local server list information;
the accessing the cluster server according to the local server list information specifically includes:
the cluster service is enabled to determine a unique server name of each server in advance; the server name includes: IP, port;
determining a method to be executed;
packing the name space, class name, method name and parameter list of the method into a communication protocol body;
selecting a server name from the local server list; the selection method comprises the following steps: polling selection and random selection;
sending the communication protocol body to a corresponding server according to the selected server name;
the method further comprises the following steps: registering self information of a client to a service discovery center of a cluster server in advance; wherein the self information includes: local area network IP, port information;
regularly detecting the health condition of the cluster server;
if the first server does not exist in the local server list and meets the preset health condition, the first server is added to the local server list.
2. The method for a PHP-based client to access available remote services as claimed in claim 1, further comprising:
and if the second server exists in the local server list and does not accord with the preset health condition, deleting the second server from the local server list.
3. The method of claim 2, wherein if the corresponding configuration information does not exist, the method further comprises:
predetermining a server list corresponding to each service name; wherein each server list comprises one or more servers;
and acquiring the latest complete configuration information of the cluster server and updating the latest complete configuration information to the local.
4. The method of claim 3, wherein if the corresponding configuration information does not exist, the method further comprises:
monitoring whether the complete configuration information of the cluster server is changed;
and when the cluster server is changed, acquiring the changed complete configuration information of the cluster server and updating the complete configuration information to the local.
5. An apparatus for a PHP-based client to access available remote services, comprising:
the service name determining unit is used for determining the service name of the cluster service to be called; wherein the service name of each service in the cluster service is uniquely set;
the first judgment unit is used for judging whether configuration information corresponding to the service name exists or not according to the service name;
a first obtaining unit, configured to, when the corresponding configuration information exists, obtain corresponding local server list information according to the corresponding configuration information;
the access unit is used for accessing the cluster server according to the local server list information;
further comprising:
the registration unit is used for registering the self information of the client to a service discovery center of the cluster server in advance; wherein the self information includes: local area network IP, port information; and
a first monitoring unit; the first monitoring unit includes:
the first monitoring module is used for regularly detecting the health condition of the cluster server;
the adding module is used for adding the first server into the local server list when the first server does not exist in the local server list and meets a preset health condition;
the access unit specifically includes:
the name determining module is used for enabling the cluster service to determine a unique server name of each server in the cluster service in advance; the server name includes: IP, port;
the method determination module is used for determining the method to be executed;
the packaging module is used for packaging the name space, the class name, the method name and the parameter list of the method into a communication protocol body;
a selection module for selecting a server name from the local server list; the selection method comprises the following steps: polling selection and random selection;
and the sending module is used for sending the communication protocol body to the corresponding server according to the selected server name.
6. The apparatus of claim 5, further comprising:
the first monitoring unit includes:
and the deleting module is used for deleting the second server from the local server list when the second server exists in the local server list and does not accord with the preset health condition.
7. The apparatus of claim 6, further comprising:
a server list determining unit, configured to determine in advance a server list corresponding to each service name; each server list comprises one or more servers;
and the complete configuration information acquisition unit is used for acquiring the latest complete configuration information of the cluster server and updating the latest complete configuration information to the local area if the corresponding configuration information does not exist.
8. The apparatus for PHP-based client access to available remote services as claimed in claim 7, further comprising: a changing unit; the changing unit includes:
the monitoring module is used for monitoring whether the complete configuration information of the cluster server is changed;
and the updating module is used for acquiring the complete configuration information after the cluster server is changed and updating the complete configuration information to the local when the cluster server is changed.
CN201910341153.5A 2019-04-25 2019-04-25 Method and device for client to access available remote service based on PHP Active CN110113194B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910341153.5A CN110113194B (en) 2019-04-25 2019-04-25 Method and device for client to access available remote service based on PHP

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910341153.5A CN110113194B (en) 2019-04-25 2019-04-25 Method and device for client to access available remote service based on PHP

Publications (2)

Publication Number Publication Date
CN110113194A CN110113194A (en) 2019-08-09
CN110113194B true CN110113194B (en) 2022-06-07

Family

ID=67486844

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910341153.5A Active CN110113194B (en) 2019-04-25 2019-04-25 Method and device for client to access available remote service based on PHP

Country Status (1)

Country Link
CN (1) CN110113194B (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9774709B2 (en) * 2013-11-18 2017-09-26 Cable Television Laboratories, Inc. Service discovery
CN105933444B (en) * 2016-06-27 2017-06-09 焦点科技股份有限公司 Based on the service discovery method that registration center and caching mechanism are cooperateed with
CN108696551A (en) * 2017-04-06 2018-10-23 中兴通讯股份有限公司 The method and apparatus that addressing is asked between system process
CN109104483B (en) * 2018-08-10 2021-07-30 望海康信(北京)科技股份公司 Micro-service dynamic load balancing method and device based on event notification

Also Published As

Publication number Publication date
CN110113194A (en) 2019-08-09

Similar Documents

Publication Publication Date Title
CN112087312B (en) Method, device and equipment for providing edge service
CN110381163B (en) Method for forwarding service request by gateway node and gateway node
CN112532675B (en) Method, device and medium for establishing network edge computing system
CN110990047B (en) Fusion method and device for multiple microservice architectures
CN113225214B (en) Method and device for cooperative management of edge CDN node and computer readable medium
CN107341044A (en) A kind of distributive data center unified monitoring framework and method
CN106850759A (en) MySQL database clustering methods and its processing system
CN111182089B (en) Container cluster system, method and device for accessing big data assembly and server
CN108965461A (en) Service administering method, device and dubbo service system
CN113645304B (en) Data service processing method and related equipment
CN110381131B (en) Method for realizing MEC node identification, mobile terminal, server and storage medium
CN112333017B (en) Service configuration method, device, equipment and storage medium
US20110153826A1 (en) Fault tolerant and scalable load distribution of resources
CN110113194B (en) Method and device for client to access available remote service based on PHP
EP3685567B1 (en) Load shedding of traffic based on current load state of target capacity
CN114048028A (en) Service calling method and device, storage medium and electronic equipment
CN114356456A (en) Service processing method, device, storage medium and electronic equipment
CN214202379U (en) Distributed shared file system
CN111970358B (en) Decentralized cloud computing platform, service deployment method and service access method and service deployment and service access assembly
CN115562757A (en) Data processing method, configuration center system, electronic device, and storage medium
CN109040309B (en) Load balancing method based on XMPP communication processing server
GB2361155A (en) Discovery and display of network phones on a network topology map
US6912206B1 (en) Discovery of phones on a network, such as a LAN
KR101648568B1 (en) Method for using distributed objects by clustering them and system using the same
WO2018229153A1 (en) Cross-cluster service provision

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 200125, Room 325, 3rd Floor, Unit 2, No. 231, Shibocun Road, China (Shanghai) Pilot Free Trade Zone, Pudong New Area, Shanghai

Patentee after: Wheel interconnection technology (Shanghai) Co.,Ltd.

Address before: 200125 Room 501, 5 / F, building 3, 3601 Dongfang Road, Pudong New Area, Shanghai

Patentee before: SHANGHAI YIDIAN SPACE NETWORK Co.,Ltd.