CN110351350A - Client request processing method, system and electronic equipment based on multiserver docking - Google Patents
Client request processing method, system and electronic equipment based on multiserver docking Download PDFInfo
- Publication number
- CN110351350A CN110351350A CN201910578932.7A CN201910578932A CN110351350A CN 110351350 A CN110351350 A CN 110351350A CN 201910578932 A CN201910578932 A CN 201910578932A CN 110351350 A CN110351350 A CN 110351350A
- Authority
- CN
- China
- Prior art keywords
- request
- service
- server
- client
- module
- 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
- 238000003032 molecular docking Methods 0.000 title claims abstract description 19
- 238000003672 processing method Methods 0.000 title claims abstract description 14
- 238000000034 method Methods 0.000 claims abstract description 84
- 230000008569 process Effects 0.000 claims abstract description 11
- 238000012545 processing Methods 0.000 claims description 22
- 238000004590 computer program Methods 0.000 claims description 9
- 230000015572 biosynthetic process Effects 0.000 claims description 3
- 238000003786 synthesis reaction Methods 0.000 claims description 3
- 230000032258 transport Effects 0.000 claims 1
- 238000011161 development Methods 0.000 abstract description 5
- 238000010586 diagram Methods 0.000 description 7
- 230000005540 biological transmission Effects 0.000 description 5
- 235000014510 cooky Nutrition 0.000 description 5
- 230000000694 effects Effects 0.000 description 5
- 238000004891 communication Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 4
- 230000008859 change Effects 0.000 description 3
- 230000005611 electricity Effects 0.000 description 3
- 235000013399 edible fruits Nutrition 0.000 description 2
- 238000005538 encapsulation Methods 0.000 description 2
- 230000005291 magnetic effect Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 239000013589 supplement Substances 0.000 description 2
- 241001062009 Indigofera Species 0.000 description 1
- 230000001133 acceleration Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 210000004027 cell Anatomy 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 239000000284 extract Substances 0.000 description 1
- 230000014509 gene expression Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000010365 information processing Effects 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 238000010606 normalization Methods 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000011112 process operation Methods 0.000 description 1
- 238000012216 screening Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 210000000352 storage cell Anatomy 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- 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
-
- 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
-
- 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/14—Session management
- H04L67/146—Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Stored Programmes (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a kind of client request processing method, system, electronic equipment and computer-readable mediums based on multiserver docking.The process employs can customize different service ID by client to handle the request of corresponding server, the method for automatically generating corresponding server.So that user, according to the variety classes of server, transmits the request to specific server and is handled after client receives request.Therefore the present invention can be realized, and request addresses its corresponding server and post-processed, and facilitate later period transplanting and Development of Modular.
Description
Technical field
The present invention relates to computer information processing fields, in particular to a kind of client based on multiserver docking
Hold request processing method, system, electronic equipment and computer-readable medium.
Background technique
In client/server Technical Architecture, usually multiple client receives multiple requests, then multiple request warps
It crosses network and is sent to a server or multiple servers.Request can be a variety of different, and server is also possible to various
Different.The mode of the management of this request random transmission or server, will lead to transmission confusion, the unfavorable shadow such as code redundancy
It rings.In particular, developer is not very square if it is desired to Development of Modular or later period transplanting when server is multiple and different functions
Just.
In order to solve above-mentioned the problems of the prior art, the invention discloses a kind of clients based on multiserver docking
Request processing method, system, electronic equipment and computer-readable medium.It can be applied to multiple client and access multiple services
Device or a client access the application scenarios of multiple servers.
Summary of the invention
Present invention seek to address that in the prior art, user is transmit a request to multiple using single client or multiple client
The application scenarios of server.There is provided it is a kind of based on multiserver docking client request processing method, system, electronic equipment and
Computer-readable medium.So that user, according to the variety classes of server, transmits the request to spy after client receives request
Fixed server is handled.This method facilitates Development of Modular or later period to transplant, and code is terse clear, significantly promotes letter
Breath receives horizontal with the efficiency of access and user experience.
In order to solve the above-mentioned technical problem, first aspect present invention proposes that a kind of client based on multiserver docking is asked
Seek processing method, comprising: pass through basic network module and receive the request that client is sent, wherein the request is according to asking
It asks agreement to send and includes service ID;Service ID is realized by factory method, to create different server respective files;It is based on
Different server respective files is distributed request to different servers by the basic network module;Server process
The request.
A classification chart is arranged in the basic network module, according to institute in a preferred embodiment of the invention
Classification chart is stated, by the requests classification of the transmission of client each time at the service ID of different classifications.
A preferred embodiment of the invention, it is described to realize that service ID further includes implementing specifically by factory method
Network request, the service ID is marked in the network request.
A preferred embodiment of the invention, it is described to be distributed request to difference by the basic network module
Server include: to find corresponding server module automatically by service ID, realize decoupling.
A preferred embodiment of the invention, the classification chart define by the following method: by the visitor
The request that family end is sent is normalized into standard request;Standard request is defined as addressing corresponding server module.
A preferred embodiment of the invention, standard request are defined as addressing unique corresponding server mould
Block.
A preferred embodiment of the invention, the factory method realize service ID, including service ID is parsed,
Coding, the process synthesized.
In order to solve the above-mentioned technical problem, second aspect of the present invention proposes that a kind of client based on multiserver docking is asked
Seek processing system, comprising:
Basic network module receives the request that client is sent, wherein the request sends according to request protocol and includes
ID is serviced, and based on different server respective files, is distributed request to different servers by the network module
Factory method realizes module, service ID is realized by factory method, to create different server respective files;
At least one server, for handling the request.
A classification chart is arranged in the basic network module, according to institute in a preferred embodiment of the invention
Classification chart is stated, by the requests classification of the transmission of client each time at the service ID of different classifications.
A preferred embodiment of the invention, factory method realize module, further include implementing specific network to ask
It asks, the service ID is marked in the request.
A preferred embodiment of the invention, the basic network module find corresponding clothes automatically by service ID
Business device, realizes decoupling.
A preferred embodiment of the invention, the classification chart define by the following method: by the visitor
The request that family end is sent is normalized into standard request, and standard request is defined as addressing corresponding server module.
A preferred embodiment of the invention, standard request are defined as addressing unique corresponding server.
A preferred embodiment of the invention, the factory method realize service ID, including service ID is parsed,
Coding, the process synthesized.
In order to solve the above-mentioned technical problem, third aspect present invention proposes a kind of electronic equipment, including memory, processor
And it is stored in the computer program that can be run on the memory and on the processor, which is characterized in that the processor is held
When row described program, the above method is realized.
In order to solve the above-mentioned technical problem, fourth aspect present invention provides a kind of computer readable storage medium, deposits thereon
Computer program is contained, which can be executed by processor to realize the above method.
Present invention employs that can customize different service ID by client to handle the request of corresponding server, automatically
The method for generating corresponding server.So that after client receives request, according to the variety classes of server, request is sent out by user
Specific server is sent to be handled.Period passes through classification chart standardized requests, factory method present invention employs unique
Service ID is realized to create different service respective files, network module finds corresponding with service automatically by ID, realizes decoupling
Method.Therefore the present invention can be realized, and request addresses its corresponding server and post-processed, and facilitate later period transplanting and module
Melt hair.
Detailed description of the invention
In order to keep technical problem solved by the invention, the technological means of use and the technical effect of acquirement clearer,
Detailed description of the present invention specific embodiment below with reference to accompanying drawings.But it need to state, drawings discussed below is only this
The attached drawing of the exemplary embodiment of invention, to those skilled in the art, without creative efforts,
The attached drawing of other embodiments can be obtained according to these attached drawings.
Fig. 1 is to show a kind of client request processing method based on multiserver docking according to an embodiment of the present invention
Flow chart;
Fig. 2 is to show a kind of client request processing system based on multiserver docking according to an embodiment of the present invention
Schematic diagram;
Fig. 3 is the structural block diagram of the exemplary embodiment of a kind of electronic equipment according to the present invention;
Fig. 4 is a kind of client request processing method operation stream based on multiserver docking according to an embodiment of the present invention
Cheng Tu;
Fig. 5 is the schematic diagram of a computer-readable medium embodiment of the invention.
Specific embodiment
Exemplary embodiment of the present invention is more fully described with reference to the drawings, although each exemplary embodiment
Can by it is a variety of it is specific in a manner of implement, but be not understood that the invention be limited to embodiment set forth herein.On the contrary, providing this
A little exemplary embodiments are easily facilitated inventive concept being comprehensively communicated to ability to keep the contents of the present invention more complete
The technical staff in domain.
Under the premise of meeting technical concept of the invention, the properity described in some specific embodiment, effect
Fruit or other features can be integrated in any suitable manner in one or more other embodiments.
During the introduction for specific embodiment, the datail description to properity, effect or other features is
In order to enable those skilled in the art to fully understand embodiment.But, it is not excluded that those skilled in the art can be
Under specific condition, implement the present invention not contain the technical solution of above structure, performance, effect or other features.
Flow chart in attached drawing is only a kind of illustrative process demonstration, and not representing must include stream in the solution of the present invention
All contents, operation and step in journey figure, also not representing must execute according to sequence shown in figure.For example, process
Operation/the step having in figure can decompose, and some operation/steps can merge or part merges, etc., not depart from the present invention
Inventive concept in the case where, the execution that shows in flow chart sequence can change according to the actual situation.
What the block diagram in attached drawing typicallyed represent is functional entity, might not be necessarily opposite with physically separate entity
It answers.I.e., it is possible to realize these functional entitys using software form, or in one or more hardware modules or integrated circuit in fact
These existing functional entitys, or these functions reality is realized in heterogeneous networks and/or processor device and/or microcontroller device
Body.
Respectively the same reference numbers in the drawings refer to same or similar element, component or parts, thus hereinafter may
It is omitted to same or similar element, component or partial repeated description.Although should also be understood that may use the herein
One, the attribute of the expressions such as second, third number describes various devices, element, component or part, but these devices, element,
Component or part should not be limited by these attributes.That is, these attributes are intended merely to distinguish one and another one.Example
Such as, the first device is also referred to as the second device, but without departing from the technical solution of essence of the invention.In addition, term "and/or",
" and/or " refer to all combinations including any one or more in listed project.
Fig. 1 shows a kind of client request processing method based on multiserver docking according to an embodiment of the present invention
Flow chart.This method comprises:
S1, the request that client is sent is received by a basic network module, wherein the request is according to request protocol
It sends and includes service ID;S2, service ID is realized by factory method, to create different server respective files;S3, it is based on
Different server respective files is distributed request to different servers by the basic network module;At S4, server
Manage the request.
Specifically, request protocol is defined first, realizes the request protocol.The request protocol is association associated with request
View.The request protocol can be agreement customary in the art, for example, associated request protocol may include web service interface,
Business application programming interface (BAPI) or remote functionality are called one or more in (RFC) interface.In particular,
XAFAPIBaseManager, XAFAPIManagerParamSourceDelegate, XAFAPIManager etc..It is asked by definition
Agreement is sought, realizes the request protocol, enhances the safety of network and access.
Then, client transmit a request to basic network module, wherein the client has customized a variety of different service ID
(serviceID), which is attached to the request protocol.Client sends the request received in basic network module, to
Transmission.
Following example is described in detail how client customizes a variety of different service ID.
The request received is defined as with unique device ID by client, can recognize which is by means of unique device ID
One request, such as by means of the URL (uniform resource locator) in internet.Each service ID of customization is used in particular for pair
Should be in one or more servers, i.e., request specific data services in this sense.In particular, service ID can also for
ID list is serviced, which is guided by service ID accordingly.In particular, service ID determines the attribute for receiving request.Service ID
Customization or definition be addressed to server so as to the subsequent requests classification that will be received, carry out processing or operation.
In particular, the method for customizing of service ID, can slip into cookie module in basic network module, by using
Cookie or other modes allow in the first request that client receives and carry first service ID value, and then allow basic network module
The demand of user can be readily determined by reading first service ID value, and since cookie is really by basic network mould
Block is sent to user equipment end after generating, and cookie is the low-volume information no more than 4kb, this allows for basic network module and exists
During carrying out multiple business service for user, only need to transmit a small amount of information can provide diversified service for user, into
And effectively the user experience is improved.
Likewise, carrying second service ID value by cookie in received second request of client.First request and the
Two requests are different.Wherein, first service ID value can be identical as second service ID value.Or first service ID value can be with second
It is different to service ID value.Similar, client also receives third request, the 4th request ..., and corresponding service ID value can be with
Have identical, can also have different.
Optionally, a classification chart is set in the basic network module, according to the classification chart, client will sends each time
Requests classification at different classifications service ID.Classification chart is also possible to tabulation, and the received request of client is carried out
Classification.The method of classification will be carried out according to rear end equipment, the i.e. classification of back-end server.
Following example be described in detail how defining classification table.
Classification chart includes a kind of tabulation, wherein having classification code, classification indicators, the data such as dimension code.It will be attached
Dimension code, classification code, classification indicators are resolved into request with service ID information.By above-mentioned dimension code, classification code,
Classification indicators are combined, and form index dimensional relationships, are formed index dimensional relationships table according to the index dimensional relationships, that is, are divided
Class list.More specifically, according to relevance defining classification code, according to priority defining classification index, according to use habit
Dimension code is defined, these above-mentioned elements can both be from developer's definition or design.It extracts and classifies generation in the tabulation
Code and classification indicators combination, are respectively mapped in associated dimension code, obtain index dimensional relationships, and form index dimension
Relation table, i.e. tabulation.
Optionally, which defines by the following method, including, the request that the client is sent normalizes
At standard request, standard request is defined as addressing corresponding server module.It is unique corresponding that standard request is defined as addressing
Server module.
Following example is the method for being normalized to standard request.
Using min-max standardized model, the normalized of various different requests is realized.According to the number after normalization
According to addressing corresponding server module.More accurately by different requests, to be transferred to destination server, and the target takes
Business device is the server for being most suitable for handling the request.
Next, service ID is realized by factory method, to create different server respective files.In particular, factory
Method is XAFServiceFactory.Different services is created by ID can be newServiceWithIdentifier
To realize.
Further include implementing specific network request, service ID is marked in the request.
The factory method realizes service ID, including to service ID parsing, coding, the process of synthesis.It can be by various differences
Request, by identification, mark, accurately with service module or server matches, docking, carry out subsequent processing information.
Factory method is described in detail in following example.
Factory method (factory method), factory method pattern be equivalent to creation instance objects new, system or
The developer of running gear often will generate instance objects according to class Class, and such as Aa=new A (), factory method pattern is also
For creating instance objects, bigger scalability and modification amount few as far as possible can be brought to system.Factory mode can move
Which class state decision instantiates, it is not necessary to is known in advance per which class of secondary instantiation.The present invention using factory method come pair
Request is handled, and be may be implemented to sort out, and bigger scalability may be implemented, is facilitated Development of Modular.When needs are selected
It is simple clear when out or splitting certain one kind request and corresponding service module.
Common, factory method pattern has following several forms:
1. simple factory method pattern: also known as static factory method pattern.
2. factory method pattern: also known as polymorphism factory mode.
3. abstract factory method mode: also known as tool box mode.
Use the advantage of factory method pattern: the initial work done when if creating some example be not simply as
Assignment, it may be possible to which very long one section of code, if be also written in constructed fuction, that code is just and unreasonable.Initial work is such as
Fruit is very long one section of code, illustrates that there are many work to be done, will much work and be fitted into a method, this is also to be against Java
Developer is told in the principle of object-oriented, the encapsulation (Encapsulation) and assignment (Delegation) of object-oriented, to the greatest extent
Long code assignment " cutting " at every section, every section " is encapsulated " again and (reduces and be coupled contiguity between section and section) by amount, this
Sample, will be by scattered risks, later if necessary to modify, as long as every section of change.At this moment developer just needs Factory factory
Method mode is to generate object.
In particular, factory method uses following constructed fuction:
Using the factory method, by different requests, realize that service ID, corresponding different service module are not only accurate right
It answers, fast reaction, and is conducive to Development of Modular and later period transplanting, facilitate inquiry, screening and arrangement.
Then, based on different server respective files, request is distributed to different servers by network module.Clothes
Business device can be for example Fund Industry business service module, wealth business service module etc..
Network module finds corresponding server module automatically by service ID, realizes decoupling.
It is requested described in last server process.Server is rear end equipment, can be configured as and executes software systems or clothes
Business.The service can be accessed to execute various processing requests, and can return for requestor associated with processing request
Return the result of processing.
It will be understood by those skilled in the art that realizing that all or part of the steps of above-described embodiment is implemented as by data
Manage the program that equipment (including computer) executes, i.e. computer program.It is performed in the computer program, this hair may be implemented
The above method of bright offer.Moreover, the computer program can store in computer readable storage medium, which is situated between
Matter can be the readable storage medium storing program for executing such as disk, CD, ROM, RAM, be also possible to the storage array of multiple storage medium compositions, example
Such as disk or tape storage array.The storage medium is not limited to centralised storage, is also possible to distributed storage, such as
Cloud storage based on cloud computing.
System embodiment of the invention is described below, which can be used for executing embodiment of the method for the invention.For
Details described in present system embodiment should be regarded as the supplement for above method embodiment;For in present system
Undisclosed details in embodiment is referred to above method embodiment to realize.
Fig. 2 shows a kind of client request processing systems based on multiserver docking according to an embodiment of the present invention
Schematic diagram.The system includes:
Basic network module receives the request that client is sent, wherein the request sends according to request protocol and includes
ID is serviced, and based on different server respective files, is distributed request to different servers by the network module;
Factory method realizes module, service ID is realized by factory method, to create different server respective files;
At least one server, for handling the request.
Optionally, a classification chart is set in the basic network module, according to the classification chart, client will sends each time
Requests classification at different classifications service ID.
Optionally, factory method realizes module, further includes implementing specific network request, the clothes are marked in the request
Be engaged in ID.
Optionally, which finds corresponding server module automatically by service ID, realizes decoupling.
Optionally, which defines by the following method: the request that the client is sent is normalized into standard
Request;Standard request is defined as addressing corresponding server module.
Optionally, standard request is defined as addressing unique corresponding server module.
Optionally, which realizes service ID, including to service ID parsing, coding, the process of synthesis.
The client request processing system that the present embodiment is docked based on multiserver is based on by using the realization of above-mentioned module
Realization principle and technical effect and the above-mentioned related method embodiment of the client request processing method of multiserver docking
Realize it is identical, in detail can refer to above-mentioned related method embodiment record, details are not described herein.
It will be understood by those skilled in the art that each module in the above system embodiment can be distributed in system according to description
In, corresponding change can also be carried out, is distributed in one or more systems different from above-described embodiment.The mould of above-described embodiment
Block can be merged into a module, can also be further split into multiple submodule.
Electronic equipment embodiment of the invention is described below, which can be considered as the method for aforementioned present invention
With the embodiment of the entity form of system embodiment.For details described in electronic equipment embodiment of the present invention, should be regarded as
For the supplement of the above method or system embodiment;It, can be with for the undisclosed details in electronic equipment embodiment of the present invention
It is realized referring to the above method or system embodiment.
Fig. 3 is the structural block diagram of the exemplary embodiment of a kind of electronic equipment according to the present invention.The electronics that Fig. 3 is shown is set
A standby only example, should not function to the embodiment of the present invention and use scope bring any restrictions.
As shown in figure 3, the electronic equipment 310 of the exemplary embodiment is showed in the form of communications data processing unit.Electricity
The component of sub- equipment 310 can include but is not limited to: at least one processing unit 311, at least one storage unit 312, connection
The buses 316 of different system components (including storage unit 312 and processing unit 311), display unit 313 etc..
Wherein, the storage unit 312 is stored with computer-readable program, can be source program or all reader
Code.Described program can be executed with unit 311 processed, so that the processing unit 210 executes the various embodiments of the present invention
The step of.For example, the processing unit 311 can execute step as shown in Figure 1.
The storage unit 312 may include the readable medium of volatile memory cell form, such as random access memory
Unit (RAM) 3121 and/or cache memory unit 3122 can further include read-only memory unit (ROM) 3123.
The storage unit 312 can also include program/utility 3124 with one group of (at least one) program module 3125, this
The program module 3125 of sample includes but is not limited to: operating system, one or more application program, other program modules and journey
It may include the realization of network environment in ordinal number evidence, each of these examples or certain combination.
Bus 316 can be to indicate one of a few class bus structures or a variety of, including storage unit bus or storage
Cell controller, peripheral bus, graphics acceleration port, processing unit use any bus structures in a variety of bus structures
Local bus.
Electronic equipment 310 can also be with one or more external equipments 320 (such as keyboard, display, the network equipment, indigo plant
Tooth equipment etc.) communication, it enables a user to interact via these external equipments 320 with the electronic equipment 320, and/or make the electricity
Sub- equipment 310 can be communicated with one or more of the other data processing equipment (such as router, modem etc.).This
Kind communication can be carried out by input/output (I/O) interface 314, can also pass through network adapter 315 and one or more
Network (such as local area network (LAN), wide area network (WAN) and/or public network, such as internet) carry out.Network adapter 315 can
To be communicated by bus 316 with other modules of electronic equipment 320.It should be understood that although not shown in the drawings, electronic equipment 310
In other hardware and/or software module can be used, including but not limited to: microcode, device driver, redundant processing unit, outer
Portion's disk drive array, RAID system, tape drive and data backup storage system etc..
Fig. 4 is a kind of client request processing method operation stream based on multiserver docking according to an embodiment of the present invention
Cheng Tu.Server is with fund business service, for financial affair work service module, schematically illustrates and assists from definition
View receives request, sends request, request processing, to the overall process of server.
Fig. 5 is the schematic diagram of a computer-readable medium embodiment of the invention.As shown in figure 5, the computer journey
Sequence can store on one or more computer-readable mediums.Computer-readable medium can be readable signal medium or can
Read storage medium.Readable storage medium storing program for executing for example can be but be not limited to the system of electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor,
Device or device, or any above combination.The more specific example (non exhaustive list) of readable storage medium storing program for executing includes: tool
Have the electrical connections of one or more conducting wires, portable disc, hard disk, random access memory (RAM), read-only memory (ROM), can
Erasing programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read only memory (CD-ROM), optical storage
Device, magnetic memory device or above-mentioned any appropriate combination.When the computer program is by one or more data processings
When equipment executes, so that the computer-readable medium can be realized the above method of the invention, it may be assumed that provide a kind of based on more services
Client request processing method, system, electronic equipment and the computer-readable medium of device docking.So that user receives in client
After request, according to the variety classes of server, transmits the request to specific server and handled.This method facilitates modularization
Exploitation or later period transplanting, code is terse clear, and significantly the reception of promotion information and the efficiency and user experience consulted are horizontal.
Through the above description of the embodiments, those skilled in the art it can be readily appreciated that the present invention describe it is exemplary
Embodiment can also be realized by software realization in such a way that software is in conjunction with necessary hardware.Therefore, according to this hair
The technical solution of bright embodiment can be embodied in the form of software products, which can store calculates at one
In the readable storage medium of machine (can be CD-ROM, USB flash disk, mobile hard disk etc.) or on network, including some instructions are so that one
Platform data processing equipment (can be personal computer, server or network equipment etc.) executes above-mentioned side according to the present invention
Method.
The computer readable storage medium may include in a base band or the data as the propagation of carrier wave a part are believed
Number, wherein carrying readable program code.The data-signal of this propagation can take various forms, including but not limited to electromagnetism
Signal, optical signal or above-mentioned any appropriate combination.Readable storage medium storing program for executing can also be any other than readable storage medium storing program for executing
Readable medium, the readable medium can send, propagate or transmit for by instruction execution system, device or device use or
Person's program in connection.The program code for including on readable storage medium storing program for executing can transmit with any suitable medium, packet
Include but be not limited to wireless, wired, optical cable, RF etc. or above-mentioned any appropriate combination.
The program for executing operation of the present invention can be write with any combination of one or more programming languages
Code, described program design language include object oriented program language-Java, C++ etc., further include conventional
Procedural programming language-such as " C " language or similar programming language.Program code can be fully in user
It calculates and executes in equipment, partly executes on a user device, being executed as an independent software package, partially in user's calculating
Upper side point is executed on a remote computing or is executed in remote computing device or server completely.It is being related to far
Journey calculates in the situation of equipment, and remote computing device can pass through the network of any kind, including local area network (LAN) or wide area network
(WAN), it is connected to user calculating equipment, or, it may be connected to external computing device (such as utilize ISP
To be connected by internet).
In conclusion the present invention can execute method, system, electronic equipment or the computer-readable medium of computer program
To realize.The communications data processing units such as microprocessor or digital signal processor (DSP) can be used in practice to come in fact
Existing some or all functions of the invention.
Particular embodiments described above has carried out further in detail the purpose of the present invention, technical scheme and beneficial effects
It describes in detail bright, it should be understood that the present invention is not inherently related to any certain computer, virtual bench or electronic equipment, various
The present invention also may be implemented in fexible unit.The above is only a specific embodiment of the present invention, is not limited to this hair
Bright, all within the spirits and principles of the present invention, any modification, equivalent substitution, improvement and etc. done should be included in the present invention
Protection scope within.
Claims (10)
1. a kind of client request processing method based on multiserver docking, comprising:
The request that client is sent is received by a basic network module, wherein the request is sent simultaneously according to request protocol
Comprising servicing ID;
Service ID is realized by factory method, to create different server respective files;
Based on different server respective files, request is distributed to different servers by the basic network module;
It is requested described in server process.
2. according to the method described in claim 1, it is characterized by:
A classification chart is set in the basic network module, according to the classification chart, the request that client each time is sent
It is categorized into the service ID of different classifications.
3. -2 described in any item methods according to claim 1, it is characterised in that:
It is described to realize that service ID further includes implementing specific network request by factory method, institute is marked in the network request
State service ID.
4. method according to claim 1-3, it is characterised in that:
Described by the basic network module includes: to find pair automatically by service ID by request distribution to different server
Server module is answered, realizes decoupling.
5. method according to claim 1-4, it is characterised in that:
The classification chart defines by the following method:
The request that the client is sent is normalized into standard request;
Standard request is defined as addressing corresponding server module.
6. according to the method described in claim 5, it is characterized by:
Standard request is defined as addressing unique corresponding server module.
7. method according to claim 1-6, it is characterised in that:
The factory method realizes service ID, including parsing, encoding, the process of synthesis to service ID.
8. a kind of client request processing system based on multiserver docking, comprising:
Basic network module receives the request that client is sent, wherein the request sends according to request protocol and includes service
ID, and based on different server respective files, request is distributed to different servers by the network module;
Factory method realizes module, service ID is realized by factory method, to create different server respective files;
At least one server, for handling the request.
9. a kind of electronic equipment, including memory, processor and it is stored on the memory and can transports on the processor
Capable computer program, which is characterized in that when the processor executes described program, realize such as any one of claims 1 to 7
The method.
10. a kind of computer readable storage medium, is stored thereon with computer program, which, which can be executed by processor, comes in fact
The now method as described in any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910578932.7A CN110351350B (en) | 2019-06-28 | 2019-06-28 | Client request processing method and system based on multi-server docking and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910578932.7A CN110351350B (en) | 2019-06-28 | 2019-06-28 | Client request processing method and system based on multi-server docking and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110351350A true CN110351350A (en) | 2019-10-18 |
CN110351350B CN110351350B (en) | 2022-09-06 |
Family
ID=68177218
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910578932.7A Expired - Fee Related CN110351350B (en) | 2019-06-28 | 2019-06-28 | Client request processing method and system based on multi-server docking and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110351350B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111273999A (en) * | 2020-01-20 | 2020-06-12 | 北京字节跳动网络技术有限公司 | Data processing method and device, electronic equipment and storage medium |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7092399B1 (en) * | 2001-10-16 | 2006-08-15 | Cisco Technology, Inc. | Redirecting multiple requests received over a connection to multiple servers and merging the responses over the connection |
CN105607951A (en) * | 2015-12-17 | 2016-05-25 | 北京奇虎科技有限公司 | Method and device for processing data request and obtaining server information |
CN106843895A (en) * | 2017-02-07 | 2017-06-13 | 上海网易小额贷款有限公司 | Method, system and readable storage medium storing program for executing for processing request |
CN106856434A (en) * | 2015-12-08 | 2017-06-16 | 阿里巴巴集团控股有限公司 | The method and apparatus of access request conversion |
CN107426304A (en) * | 2017-07-06 | 2017-12-01 | 努比亚技术有限公司 | Method, system and the proxy server of interactive media resource |
CN108052615A (en) * | 2017-12-15 | 2018-05-18 | 泰康保险集团股份有限公司 | Processing method, device, medium and the electronic equipment of access request |
US20180255144A1 (en) * | 2017-03-04 | 2018-09-06 | Wipro Limited | Method and system for providing spatial distribution of content to a user in real time |
CN109246222A (en) * | 2018-09-21 | 2019-01-18 | 郑州云海信息技术有限公司 | service request processing method, device, system and computer readable storage medium |
-
2019
- 2019-06-28 CN CN201910578932.7A patent/CN110351350B/en not_active Expired - Fee Related
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7092399B1 (en) * | 2001-10-16 | 2006-08-15 | Cisco Technology, Inc. | Redirecting multiple requests received over a connection to multiple servers and merging the responses over the connection |
CN106856434A (en) * | 2015-12-08 | 2017-06-16 | 阿里巴巴集团控股有限公司 | The method and apparatus of access request conversion |
CN105607951A (en) * | 2015-12-17 | 2016-05-25 | 北京奇虎科技有限公司 | Method and device for processing data request and obtaining server information |
CN106843895A (en) * | 2017-02-07 | 2017-06-13 | 上海网易小额贷款有限公司 | Method, system and readable storage medium storing program for executing for processing request |
US20180255144A1 (en) * | 2017-03-04 | 2018-09-06 | Wipro Limited | Method and system for providing spatial distribution of content to a user in real time |
CN107426304A (en) * | 2017-07-06 | 2017-12-01 | 努比亚技术有限公司 | Method, system and the proxy server of interactive media resource |
CN108052615A (en) * | 2017-12-15 | 2018-05-18 | 泰康保险集团股份有限公司 | Processing method, device, medium and the electronic equipment of access request |
CN109246222A (en) * | 2018-09-21 | 2019-01-18 | 郑州云海信息技术有限公司 | service request processing method, device, system and computer readable storage medium |
Non-Patent Citations (1)
Title |
---|
一个博客ID: "简单工厂模式", 《HTTP://BLOG.SINA.COM.CN/S/BLOG_185268E880102XXVR.HTML》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111273999A (en) * | 2020-01-20 | 2020-06-12 | 北京字节跳动网络技术有限公司 | Data processing method and device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN110351350B (en) | 2022-09-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8704821B2 (en) | System and method for managing virtual world environments based upon existing physical environments | |
CN108140007A (en) | Across deployed position safely disposing application program | |
Kale | Guide to cloud computing for business and technology managers: from distributed computing to cloudware applications | |
CN108510082A (en) | The method and device that machine learning model is handled | |
CN108519967A (en) | Chart method for visualizing, device, terminal and storage medium | |
US20200285508A1 (en) | Method and Apparatus for Assigning Computing Task | |
CN108255614A (en) | A kind of interface calling system and method based on micro services framework | |
US20060167665A1 (en) | Automated system and method for service and cost architectural modeling of enterprise systems | |
CN1625179B (en) | Send by reference in a customizable, tag-based protocol | |
CN109791592A (en) | The sensitive data in application program is handled using external treatment | |
CN111026931A (en) | Data query method, device, equipment and medium | |
US20230086783A1 (en) | Gateway configuration language for use in api environments | |
CN110334545A (en) | A kind of authority control method based on SQL, device and electronic equipment | |
US20200302350A1 (en) | Natural language processing based business domain modeling | |
CN110647316A (en) | Method and device for generating universal business object, computer equipment and storage medium | |
CN110351673A (en) | Note transmission method, device, system and electronic equipment based on label model | |
CN110070394A (en) | Data processing method, system, medium and calculating equipment | |
JP2022521887A (en) | Native code generation for cloud services | |
Naqvi et al. | A concurrence study on interoperability issues in iot and decision making based model on data and services being used during inter-operability | |
WO2024179597A1 (en) | Network topological graph processing method and apparatus | |
CN110362404A (en) | A kind of resource allocation methods based on SQL, device and electronic equipment | |
CN110351350A (en) | Client request processing method, system and electronic equipment based on multiserver docking | |
US8555239B1 (en) | Mainframe-based web service development accelerator | |
CN116991929A (en) | Micro-service system based on big hospital data | |
CN108989406A (en) | Software shelf realization method and system based on micro services |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20220906 |
|
CF01 | Termination of patent right due to non-payment of annual fee |