CN110113194A - Client based on PHP accesses the method and device of available remote service - Google Patents
Client based on PHP accesses the method and device of available remote service Download PDFInfo
- Publication number
- CN110113194A CN110113194A CN201910341153.5A CN201910341153A CN110113194A CN 110113194 A CN110113194 A CN 110113194A CN 201910341153 A CN201910341153 A CN 201910341153A CN 110113194 A CN110113194 A CN 110113194A
- Authority
- CN
- China
- Prior art keywords
- service
- server
- cluster
- name
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/0813—Configuration setting characterised by the conditions triggering a change of settings
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
- H04L67/025—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1097—Protocols 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]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/51—Discovery or management thereof, e.g. service location protocol [SLP] or web services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling 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/63—Routing a service request depending on the request content or context
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer And Data Communications (AREA)
Abstract
This application discloses the method and device that a kind of client based on PHP accesses available remote service, the service name for the cluster service called needed for wherein method comprises determining that;Wherein, the service name of each service is unique setting in the cluster service;Configuration information corresponding with the service name is judged whether there is according to the service name;If there is the corresponding configuration information, then corresponding local server list information is obtained according to the corresponding configuration information;It is accessed according to the local server list information to cluster server.Client accesses available remote service by service discovery mechanisms, to realize efficient service call.Present invention is mainly used for the service cluster application in local area network, client accesses available remote service by service discovery mechanisms, to realize efficient service call.
Description
Technical field
This application involves fields of communication technology, available long-range in particular to a kind of client access based on PHP
The method and device of service.
Background technique
Server cluster just refers to get up many server centereds carries out same service together, In the view of client just
It seem only one server.Cluster can use multiple computers and carry out parallel computations to obtain very high calculating speed,
It can also be backuped with multiple computers, so that any one machine is broken whole system and still can operate normally.
The existing access based on the client of cluster service to remote service, often cannot achieve efficient service call.
For problem present in the relevant technologies, currently no effective solution has been proposed.
Summary of the invention
The main purpose of the application be to provide a kind of client based on PHP access available remote service method and
Device, to solve technical problem present in the relevant technologies.
To achieve the goals above, according to the one aspect of the application, providing a kind of client access based on PHP can
The method of remote service.
Include: according to the method that the client based on PHP of the application accesses available remote service
The service name for the cluster service called needed for determining;Wherein, in the cluster service each service service
Entitled unique setting;
Configuration information corresponding with the service name is judged whether there is according to the service name;
If there is the corresponding configuration information, then corresponding local service is obtained according to the corresponding configuration information
Device list information;
It is accessed according to the local server list information to cluster server.
Further, the method that the client based on PHP accesses available remote service as the aforementioned, further includes:
The self information of client is registered to the service discovery center of cluster server in advance;Wherein, itself letter
Breath includes: LAN IP, port information;
The health status of cluster server is detected in timing;
It, will be if first server is not present in the local server list and meets preset healthiness condition
The first server is added in the local server list;And
If second server is present in local server list and does not meet preset healthiness condition, by described second
Server is deleted from the local server list.
Further, the method that the client based on PHP accesses available remote service as the aforementioned, it is described according to
Local server list information accesses to cluster server, specifically includes:
The cluster service is set to determine the unique server title of wherein each server in advance;The server name packet
It includes: IP, port;
Determine the method needed to be implemented;
The NameSpace of the method, class name, method name and parameter list are bundled in communication protocol body;
A server name is selected from the local server list;Wherein, selection method include: poll selection,
Random selection;
The communication protocol body is sent to corresponding server according to the server name of selection.
Further, the method that the client based on PHP accesses available remote service as the aforementioned, if there is no institute
State corresponding configuration information, comprising:
Predefine server list corresponding to each service name;Wherein, include in each server list
One or more servers;
It obtains the newest complete configuration information of the cluster server and updates to local.
Further, the method that the client based on PHP accesses available remote service as the aforementioned, if there is no institute
State corresponding configuration information, comprising:
Whether the complete configuration information for monitoring the cluster server changes;
When changing, the complete configuration information and update after obtaining the cluster server change are to locally.
To achieve the goals above, according to the another aspect of the application, providing a kind of client access based on PHP can
The device of remote service.
Include: according to the device that the client based on PHP of the application accesses available remote service
Service name determination unit, the service name of the cluster service for being called needed for determining;Wherein, the cluster clothes
The service name of each service is unique setting in business;
First judging unit, for judging whether there is configuration corresponding with the service name according to the service name
Information;
First acquisition unit, for when there are the corresponding configuration information, then according to the corresponding configuration information
Obtain corresponding local server list information;
Access unit, for being accessed according to the local server list information to cluster server.
Further, the client based on PHP accesses the device of available remote service as the aforementioned, further includes:
Registering unit, for the self information of client to be registered to the service discovery center of cluster server in advance;Its
In, the self information includes: LAN IP, port information;And
First monitoring unit;First monitoring unit includes:
First monitoring modular, for periodically detecting the health status of cluster server;
Adding module, for being not present in the local server list in first server and meeting preset health
When condition, then the first server will be added in the local server list;And
Removing module, for being present in local server list in second server and not meeting preset healthiness condition
When, the second server is deleted from the local server list.
Further, the client based on PHP accesses the device of available remote service as the aforementioned, and the access is single
Member specifically includes:
Title determining module, for making the cluster service determine the unique server name of wherein each server in advance
Claim;The server name includes: IP, port;
Method determining module, for determining the method needed to be implemented;
Packetization module, for the NameSpace of the method, class name, method name and parameter list to be bundled to communication protocol
In body;
Selecting module, for selecting a server name from the local server list;Wherein, selection method packet
It includes: poll selection, random selection;
Sending module, for the communication protocol body to be sent to corresponding server according to the server name of selection.
Further, the client based on PHP accesses the device of available remote service as the aforementioned, further includes:
Server list determination unit, for predefining server list corresponding to each service name;Wherein, often
It include one or more servers in a server list;
Complete configuration information acquisition unit, for obtaining the cluster if there is no the corresponding configuration information
The newest complete configuration information of server is simultaneously updated to local.
Further, the client based on PHP accesses the device of available remote service as the aforementioned, further includes: change
Unit;The changing unit includes:
Whether monitoring modular, the complete configuration information for monitoring the cluster server change;
Update module, for when changing, obtaining the complete configuration information after cluster server change and more
It is new to arrive locally.
In the embodiment of the present application, the method and dress of available remote service are accessed using a kind of client based on PHP
The mode set, the service name for the cluster service called needed for wherein method comprises determining that;Wherein, every in the cluster service
The service name of a service is unique setting;It is judged whether there is according to the service name corresponding with the service name
Configuration information;If there is the corresponding configuration information, then corresponding local clothes are obtained according to the corresponding configuration information
Business device list information;It is accessed according to the local server list information to cluster server.Client passes through service hair
Existing mechanism accesses available remote service, to realize efficient service call.Present invention is mainly used for the services in local area network
Cluster application, client access available remote service by service discovery mechanisms, to realize efficient service call.
Detailed description of the invention
The attached drawing constituted part of this application is used to provide further understanding of the present application, so that the application's is other
Feature, objects and advantages become more apparent upon.The illustrative examples attached drawing and its explanation of the application is for explaining the application, not
Constitute the improper restriction to the application.In the accompanying drawings:
Fig. 1 is the method stream that available remote service is accessed according to a kind of client based on PHP of embodiment of the application
Journey schematic diagram;And
Fig. 2 is the device knot that available remote service is accessed according to a kind of client based on PHP of embodiment of the application
Composition.
Specific embodiment
In order to make those skilled in the art more fully understand application scheme, below in conjunction in the embodiment of the present application
Attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is only
The embodiment of the application a part, instead of all the embodiments.Based on the embodiment in the application, ordinary skill people
Member's every other embodiment obtained without making creative work, all should belong to the model of the application protection
It encloses.
It should be noted that the description and claims of this application and term " first " in above-mentioned attached drawing, "
Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way
Data be interchangeable under appropriate circumstances, so as to embodiments herein described herein.In addition, term " includes " and " tool
Have " and their any deformation, it is intended that cover it is non-exclusive include, for example, containing a series of steps or units
Process, method, system, product or equipment those of are not necessarily limited to be clearly listed step or unit, but may include without clear
Other step or units listing to Chu or intrinsic for these process, methods, product or equipment.
In this application, term " on ", "lower", "left", "right", "front", "rear", "top", "bottom", "inner", "outside",
" in ", "vertical", "horizontal", " transverse direction ", the orientation or positional relationship of the instructions such as " longitudinal direction " be orientation based on the figure or
Positional relationship.These terms are not intended to limit indicated dress primarily to better describe the application and embodiment
Set, element or component must have particular orientation, or constructed and operated with particular orientation.
Also, above-mentioned part term is other than it can be used to indicate that orientation or positional relationship, it is also possible to for indicating it
His meaning, such as term " on " also are likely used for indicating certain relations of dependence or connection relationship in some cases.For ability
For the those of ordinary skill of domain, the concrete meaning of these terms in this application can be understood as the case may be.
In addition, term " installation ", " setting ", " being equipped with ", " connection ", " connected ", " socket " shall be understood in a broad sense.For example,
It may be a fixed connection, be detachably connected or monolithic construction;It can be mechanical connection, or electrical connection;It can be direct phase
It even, or indirectly connected through an intermediary, or is two connections internal between device, element or component.
For those of ordinary skills, the concrete meaning of above-mentioned term in this application can be understood as the case may be.
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase
Mutually combination.The application is described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
To achieve the goals above, according to the one aspect of the application, providing a kind of client access based on PHP can
The method of remote service.As shown in Figure 1, this method includes the following steps, namely S1 to step S4:
S1. the service name for the cluster service called needed for determining;Wherein, in the cluster service each service clothes
It is engaged in entitled unique setting;
That is, first determine need the service called what is (such as: registration, access etc.);
S2. configuration information corresponding with the service name is judged whether there is according to the service name;
S3. if there is the corresponding configuration information, then corresponding local is obtained according to the corresponding configuration information
Server list information;
S4. it is accessed according to the local server list information to cluster server.
That is, client when carrying out service call, first goes to locally specified path to load according to service name
Available server list information.
Service high-performance: service Resident Process reduces service Start-up costs, and Intranet communication chain is short out, does not need away gateway
Routing.
In some embodiments, the method that the client based on PHP accesses available remote service as the aforementioned, is also wrapped
It includes:
The self information of client is registered to the service discovery center of cluster server in advance;Wherein, itself letter
Breath includes: LAN IP, port information;
The health status of cluster server is detected in timing;
It, will be if first server is not present in the local server list and meets preset healthiness condition
The first server is added in the local server list;And
If second server is present in local server list and does not meet preset healthiness condition, by described second
Server is deleted from the local server list.
Specifically, can according to the present embodiment in method propose a kind of service registration mechanism, by zookeeper or
Etcd or the mode of cloud configuration carry out service registration, provide service monitoring script, realize service automatic wire charging and offline.
Detailed step: provided herein is that a kind of service cluster high availability implementation method, realizes the service in cluster service
The online lower wire management of device is guaranteed that the server list in cluster service is all available, on the one hand can be requested with distribution customer terminal
It realizes load balancing, unified external High Availabitity gateway on the other hand may be implemented.After server disposition is good, by making
It (also can be used in the cloud configuration oneself built with the registration of the third party's services such as zookeeper or etcd, discovering tool
The heart, the relevant information of storage cluster service) correlation function, by the information registerings such as the local area network ip of itself, port to service discovery
Center.
Then a customized service monitoring script, the health status of cluster server is detected in timing, if destination service
Device meets healthiness condition, then the service is online, otherwise that the service is offline.Here the offline meaning is exactly in service,
Destination server is added or is extractd from specified cluster service.
In some embodiments, the method that the client based on PHP accesses available remote service as the aforementioned, described
It accesses, specifically includes to cluster server according to the local server list information:
The cluster service is set to determine the unique server title of wherein each server in advance;The server name packet
It includes: IP, port;
Determine the method needed to be implemented;
The NameSpace of the method, class name, method name and parameter list are bundled in communication protocol body;
A server name is selected from the local server list;Wherein, selection method include: poll selection,
Random selection;
The communication protocol body is sent to corresponding server according to the server name of selection.
Specifically, can according to the present embodiment in method a kind of service discovery mechanisms are provided, client is being serviced
When calling, first locally specified path is gone to load available server list information according to service name, if local path
There is no the configuration informations, then obtain latest services configuration information from service registration side, and be saved in locally specified path.
For cluster management, service registration and service are the discovery that collaborative work.After service registration is good, client
It initiates to request to service discovery center first, obtains available server-side ip, port (being in the server of online state), so
Linking objective server-side afterwards is initiated RPC and is called.
In order to promote the efficiency for obtaining available service, we are one unique title of each service definition, then this
It services corresponding available server list information and is stored in local specified directory in the following, naming this configuration with service name
File (such as :/data/config/service_user.conf), client first reads available from the configuration file
Remote server list is called for RPC.
Thus, each function can be split into independent service, influence each other between service little.In addition, service
High Availabitity: each function can provide one group of service cluster, cluster service automatic election, and horizontal extension is simple.Service is included
Fuse degradation function, ensures own serving capabilities.
In some embodiments, the method that the client based on PHP accesses available remote service as the aforementioned, if not
There are the corresponding configuration informations, comprising:
Predefine server list corresponding to each service name;Wherein, include in each server list
One or more servers;
It obtains the newest complete configuration information of the cluster server and updates to local.
If this configuration file is not present, latest services configuration information is obtained from service registration side, and be saved in this
Ground specified path.Due to this configuration file to be ensured of it is newest, usually can cluster server start or close service
When, it goes to service discovery center to obtain newest configuration and updates to local.
In some embodiments, the method that the client based on PHP accesses available remote service as the aforementioned, if not
There are the corresponding configuration informations, comprising:
Whether the complete configuration information for monitoring the cluster server changes;
When changing, the complete configuration information and update after obtaining the cluster server change are to locally.
When relevant configuration changes when service discovery center, newest configuration information is actively issued to each industry
Business the corresponding configuration file of machine in go (specifically issue implementation method may is that on every business machine install one agency
Service, these agency services keep long connection with service discovery center, and service centre can send any to each agency service
The orders such as instruction, including read-write local profile).
It should be noted that step shown in the flowchart of the accompanying drawings can be in such as a group of computer-executable instructions
It is executed in computer system, although also, logical order is shown in flow charts, and it in some cases, can be with not
The sequence being same as herein executes shown or described step.
According to embodiments of the present invention, it additionally provides a kind of available remote for implementing the above-mentioned client access based on PHP
The client based on PHP of the method for journey service accesses the device of available remote service, as shown in Fig. 2, the device includes:
Service name determination unit 1, the service name of the cluster service for being called needed for determining;Wherein, the cluster
The service name of each service is unique setting in service;
First judging unit 2, for judging whether there is match corresponding with the service name according to the service name
Confidence breath;
First acquisition unit 3, for when there are the corresponding configuration information, then according to the corresponding configuration information
Obtain corresponding local server list information;
Access unit 4, for being accessed according to the local server list information to cluster server.
Specifically, each module realizes that the detailed process of its function can be found in embodiment of the method in the device of the embodiment of the present invention
In associated description, details are not described herein again.
In some embodiments, the client based on PHP accesses the device of available remote service as the aforementioned, also wraps
It includes:
Registering unit, for the self information of client to be registered to the service discovery center of cluster server in advance;Its
In, the self information includes: LAN IP, port information;And
First monitoring unit;First monitoring unit includes:
First monitoring modular, for periodically detecting the health status of cluster server;
Adding module, for being not present in the local server list in first server and meeting preset health
When condition, then the first server will be added in the local server list;And
Removing module, for being present in local server list in second server and not meeting preset healthiness condition
When, the second server is deleted from the local server list.
Specifically, each module realizes that the detailed process of its function can be found in embodiment of the method in the device of the embodiment of the present invention
In associated description, details are not described herein again.
In some embodiments, the client based on PHP accesses the device of available remote service, the visit as the aforementioned
It asks unit, specifically includes:
Title determining module, for making the cluster service determine the unique server name of wherein each server in advance
Claim;The server name includes: IP, port;
Method determining module, for determining the method needed to be implemented;
Packetization module, for the NameSpace of the method, class name, method name and parameter list to be bundled to communication protocol
In body;
Selecting module, for selecting a server name from the local server list;Wherein, selection method packet
It includes: poll selection, random selection;
Sending module, for the communication protocol body to be sent to corresponding server according to the server name of selection.
Specifically, each module realizes that the detailed process of its function can be found in embodiment of the method in the device of the embodiment of the present invention
In associated description, details are not described herein again.
In some embodiments, the client based on PHP accesses the device of available remote service as the aforementioned, also wraps
It includes:
Server list determination unit, for predefining server list corresponding to each service name;Wherein, often
It include one or more servers in a server list;
Complete configuration information acquisition unit, for obtaining the cluster if there is no the corresponding configuration information
The newest complete configuration information of server is simultaneously updated to local.
Specifically, each module realizes that the detailed process of its function can be found in embodiment of the method in the device of the embodiment of the present invention
In associated description, details are not described herein again.
In some embodiments, the client based on PHP accesses the device of available remote service as the aforementioned, also wraps
It includes: changing unit;The changing unit includes:
Whether monitoring modular, the complete configuration information for monitoring the cluster server change;
Update module, for when changing, obtaining the complete configuration information after cluster server change and more
It is new to arrive locally.
Specifically, each module realizes that the detailed process of its function can be found in embodiment of the method in the device of the embodiment of the present invention
In associated description, details are not described herein again.
Obviously, those skilled in the art should be understood that each module of the above invention or each step can be with general
Computing device realize that they can be concentrated on a single computing device, or be distributed in multiple computing devices and formed
Network on, optionally, they can be realized with the program code that computing device can perform, it is thus possible to which they are stored
Be performed by computing device in the storage device, perhaps they are fabricated to each integrated circuit modules or by they
In multiple modules or step be fabricated to single integrated circuit module to realize.In this way, the present invention is not limited to any specific
Hardware and software combines.
The foregoing is merely preferred embodiment of the present application, are not intended to limit this application, for the skill of this field
For art personnel, various changes and changes are possible in this application.Within the spirit and principles of this application, made any to repair
Change, equivalent replacement, improvement etc., should be included within the scope of protection of this application.
Claims (10)
1. a kind of method that the client based on PHP accesses available remote service characterized by comprising
The service name for the cluster service called needed for determining;Wherein, in the cluster service each service service name
To be uniquely arranged;
Configuration information corresponding with the service name is judged whether there is according to the service name;
If there is the corresponding configuration information, then corresponding local server is obtained according to the corresponding configuration information and arranged
Table information;
It is accessed according to the local server list information to cluster server.
2. the method that the client according to claim 1 based on PHP accesses available remote service, which is characterized in that
Further include:
The self information of client is registered to the service discovery center of cluster server in advance;Wherein, the self information packet
It includes: LAN IP, port information;
The health status of cluster server is detected in timing;
If first server is not present in the local server list and meets preset healthiness condition, will be described
First server is added in the local server list;And
If second server is present in local server list and does not meet preset healthiness condition, by the second service
Device is deleted from the local server list.
3. the method that the client according to claim 1 based on PHP accesses available remote service, which is characterized in that
It is described to be accessed according to the local server list information to cluster server, it specifically includes:
The cluster service is set to determine the unique server title of wherein each server in advance;The server name includes:
IP, port;
Determine the method needed to be implemented;
The NameSpace of the method, class name, method name and parameter list are bundled in communication protocol body;
A server name is selected from the local server list;Wherein, selection method includes: that poll selects, is random
Selection;
The communication protocol body is sent to corresponding server according to the server name of selection.
4. the method that the client according to claim 2 based on PHP accesses available remote service, which is characterized in that
If there is no the corresponding configuration information, comprising:
Predefine server list corresponding to each service name;It wherein, include one in each server list
Or multiple servers;
It obtains the newest complete configuration information of the cluster server and updates to local.
5. the method that the client according to claim 4 based on PHP accesses available remote service, which is characterized in that
If there is no the corresponding configuration information, comprising:
Whether the complete configuration information for monitoring the cluster server changes;
When changing, the complete configuration information and update after obtaining the cluster server change are to locally.
6. the device that a kind of client based on PHP accesses available remote service characterized by comprising
Service name determination unit, the service name of the cluster service for being called needed for determining;Wherein, in the cluster service
The service name of each service is unique setting;
First judging unit, it is corresponding with the service name with confidence for being judged whether there is according to the service name
Breath;
First acquisition unit, for when there are the corresponding configuration information, then being obtained according to the corresponding configuration information
Corresponding local server list information;
Access unit, for being accessed according to the local server list information to cluster server.
7. the device that the client according to claim 6 based on PHP accesses available remote service, which is characterized in that
Further include:
Registering unit, for the self information of client to be registered to the service discovery center of cluster server in advance;Wherein, institute
Stating self information includes: LAN IP, port information;And
First monitoring unit;First monitoring unit includes:
First monitoring modular, for periodically detecting the health status of cluster server;
Adding module, for being not present in the local server list in first server and meeting preset healthiness condition
When, then the first server will be added in the local server list;And
Removing module, for when second server is present in local server list and does not meet preset healthiness condition,
The second server is deleted from the local server list.
8. the device that the client according to claim 6 based on PHP accesses available remote service, which is characterized in that
The access unit, specifically includes:
Title determining module, for making the cluster service determine the unique server title of wherein each server in advance;Institute
Stating server name includes: IP, port;
Method determining module, for determining the method needed to be implemented;
Packetization module, for the NameSpace of the method, class name, method name and parameter list to be bundled to communication protocol body
In;
Selecting module, for selecting a server name from the local server list;Wherein, selection method includes:
Poll selection, random selection;
Sending module, for the communication protocol body to be sent to corresponding server according to the server name of selection.
9. the device that the client according to claim 7 based on PHP accesses available remote service, which is characterized in that
Further include:
Server list determination unit, for predefining server list corresponding to each service name;Wherein, Mei Gesuo
Stating in server list includes one or more servers;
Complete configuration information acquisition unit, for obtaining the cluster service if there is no the corresponding configuration information
The newest complete configuration information of device is simultaneously updated to local.
10. the device that the client according to claim 9 based on PHP accesses available remote service, which is characterized in that
Further include: changing unit;The changing unit includes:
Whether monitoring modular, the complete configuration information for monitoring the cluster server change;
Update module is arrived for when changing, obtaining the complete configuration information after the cluster server changes and updating
It is local.
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 true CN110113194A (en) | 2019-08-09 |
CN110113194B 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) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150142968A1 (en) * | 2013-11-18 | 2015-05-21 | Cable Television Laboratories, Inc. | Service Discovery |
CN105933444A (en) * | 2016-06-27 | 2016-09-07 | 焦点科技股份有限公司 | Service discovering method based on cooperation of registration center and caching mechanism |
CN108696551A (en) * | 2017-04-06 | 2018-10-23 | 中兴通讯股份有限公司 | The method and apparatus that addressing is asked between system process |
CN109104483A (en) * | 2018-08-10 | 2018-12-28 | 北京东软望海科技有限公司 | A kind of method and device of the micro services dynamic load leveling based on event notice |
-
2019
- 2019-04-25 CN CN201910341153.5A patent/CN110113194B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150142968A1 (en) * | 2013-11-18 | 2015-05-21 | Cable Television Laboratories, Inc. | Service Discovery |
CN105933444A (en) * | 2016-06-27 | 2016-09-07 | 焦点科技股份有限公司 | Service discovering method based on cooperation of registration center and caching mechanism |
CN108696551A (en) * | 2017-04-06 | 2018-10-23 | 中兴通讯股份有限公司 | The method and apparatus that addressing is asked between system process |
CN109104483A (en) * | 2018-08-10 | 2018-12-28 | 北京东软望海科技有限公司 | A kind of method and device of the micro services dynamic load leveling based on event notice |
Also Published As
Publication number | Publication date |
---|---|
CN110113194B (en) | 2022-06-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102045252B (en) | Self adaptation multiplex roles for content networking uses | |
CN113225214B (en) | Method and device for cooperative management of edge CDN node and computer readable medium | |
CN107852430A (en) | The wide-area services of Internet of Things are found | |
EP1034641B1 (en) | A routing functionality application in a data communications network with a number of hierarchical nodes | |
CN107431726A (en) | Messaging bus service catalogue | |
US20090175285A1 (en) | Selecting a data path | |
CN105229993B (en) | For executing method, system and the computer-readable medium of the service routing of enhancing | |
CN105262615A (en) | Physical path determination for virtual network packet flows | |
WO2003079216A1 (en) | System and method for adapting preferences based on device location or network topology | |
CN106953945A (en) | Domain name intelligently parsing method and device, server based on SDN realizations | |
CN107113892A (en) | A kind of method and device of gateway device automatic network-building | |
CN110601994A (en) | Load balancing method for micro-service chain perception in cloud environment | |
CN109474713A (en) | Message forwarding method and device | |
JP2000003322A (en) | Transmission device/method in communication network | |
CN106603435A (en) | Method and device for distributing port block resource | |
CN112134744B (en) | Management method of nodes in distributed management system | |
CN110113194A (en) | Client based on PHP accesses the method and device of available remote service | |
JP2003152783A (en) | Server load distributing device | |
CN1666488B (en) | Communication network comprising communication components having client and server functionalities and search functions | |
CN114172965A (en) | User service request and processing method, device and medium | |
US20140181307A1 (en) | Routing apparatus and method | |
CN115622900B (en) | Data processing method, device, equipment and storage medium | |
US12120022B1 (en) | Traffic filtering based on destination address and incoming interface of a network device | |
EP4440070A1 (en) | Data structure associated with an interface of a network device | |
WO2005039106A1 (en) | Method and apparatus for performing routing operations in communications network |
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. |