CN109542645A - A kind of method, apparatus, electronic equipment and storage medium calling service - Google Patents

A kind of method, apparatus, electronic equipment and storage medium calling service Download PDF

Info

Publication number
CN109542645A
CN109542645A CN201811384383.1A CN201811384383A CN109542645A CN 109542645 A CN109542645 A CN 109542645A CN 201811384383 A CN201811384383 A CN 201811384383A CN 109542645 A CN109542645 A CN 109542645A
Authority
CN
China
Prior art keywords
calling
service
destination service
destination
service example
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.)
Pending
Application number
CN201811384383.1A
Other languages
Chinese (zh)
Inventor
张志远
王生玉
宋世俊
石志中
张俊杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qinghai Public Security Bureau
Beijing Ruian Technology Co Ltd
Original Assignee
Qinghai Public Security Bureau
Beijing Ruian Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qinghai Public Security Bureau, Beijing Ruian Technology Co Ltd filed Critical Qinghai Public Security Bureau
Priority to CN201811384383.1A priority Critical patent/CN109542645A/en
Publication of CN109542645A publication Critical patent/CN109542645A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/547Remote procedure calls [RPC]; Web services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3006Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system is distributed, e.g. networked systems, clusters, multiprocessor systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3051Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs

Abstract

The embodiment of the invention discloses a kind of method, apparatus, electronic equipment and storage mediums for calling service, this method comprises: in response to the call request of destination service, destination service example corresponding with the destination service is determined from internal address mapping table, wherein, recording status is the Service Instance of non-faulting in the internal address mapping table, and according to the malfunction real-time update of Service Instance;It calls and accesses the destination service example.The technical solution of the embodiment of the present invention avoids the problem of repetition calls failed services example that service call is caused to fail, meanwhile, it solves the problems, such as to be easy to impact entire application program ecology after the service of being called is broken down in the prior art.

Description

A kind of method, apparatus, electronic equipment and storage medium calling service
Technical field
The present invention relates to Internet technical field more particularly to a kind of method, apparatus for calling service, electronic equipment and deposit Storage media.
Background technique
It in the operation of system, for some reason, causes system out of service, breaks down, especially distributed system System, such as can be to caused by entire application program ecology after the service of being slowly called of called service operation is broken down It influences.
The failure occurred in system is usually solved with building elastic system, but this mode is absorbed in using journey Each layer building redundancy of sequence, is separated using the load balancing such as between cluster key server, service and by infrastructure To the technology of multiple positions, these technologies it is relatively very complicated and only take into account infrastructure or key service thoroughly occur therefore Barrier.
Summary of the invention
The present invention provides a kind of method, apparatus, electronic equipment and storage medium for calling service, solves in the prior art Called service is easy the problem of impacting to entire application program ecology after breaking down.
In a first aspect, the embodiment of the invention provides a kind of methods for calling service, comprising:
In response to the call request of destination service, mesh corresponding with the destination service is determined from internal address mapping table Mark Service Instance, wherein recording status is the Service Instance of non-faulting in the internal address mapping table, and real according to service The malfunction real-time update of example;
It calls and accesses the destination service example.
Second aspect, the embodiment of the invention also provides a kind of devices for calling service, comprising:
Service Instance selecting module, it is tactful from interior according to preset return for the call request in response to destination service A destination service example corresponding with the destination service is determined in net address mapping table, wherein the internal address mapping Table is the internal address mapping table after the Service Instance that newest deletion state is failure;
Service Instance calling module, for calling and accessing the destination service example.
The third aspect, the embodiment of the invention also provides a kind of electronic equipment, the electronic equipment includes:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processing The method that device realizes a kind of calling service as described in any embodiment of that present invention.
Fourth aspect, it is described the embodiment of the invention also provides a kind of storage medium comprising computer executable instructions Computer executable instructions as computer processor when being executed for executing a kind of tune as described in any embodiment of that present invention With the method for service.
The technical solution of the embodiment of the present invention, by the call request in response to destination service, from internal address mapping table Middle determination destination service example corresponding with the destination service is called and accesses the destination service example.Wherein, in described Recording status is the Service Instance of non-faulting in net address mapping table, and according to the malfunction real-time update of Service Instance, It is possible thereby to confirm that the Service Instance in internal address mapping table is available, avoids repetition and calls failed services example, And lead to the problem of calling resource to be in blocked state.It especially solves in distributed system, each service degradation or thorough Failure collapse causes service caller to be waited in the case where being not timed-out strategy, and available calling service is in Blocked state, and the problem of cause the entire application program ecosystem to be affected.
Detailed description of the invention
Fig. 1 is the flow chart for the method that one of embodiment of the present invention one calls service.
Fig. 2 is the flow chart for the method that one of embodiment of the present invention two calls service.
Fig. 3 is the structural schematic diagram for the device that one of embodiment of the present invention three calls service.
Fig. 4 is the structural schematic diagram of one of the embodiment of the present invention four electronic equipment.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining the present invention rather than limiting the invention.It also should be noted that in order to just Only the parts related to the present invention are shown in description, attached drawing rather than entire infrastructure.
Embodiment one
Fig. 1 is a kind of flow chart of the method for calling service that the embodiment of the present invention one provides, and the present embodiment is applicable to The case where service call, this method can be executed by calling the device of service, which can be real using hardware and/or software Existing, which can be configured in electronic equipment, and this method specifically includes:
S110, the call request in response to destination service, the determining and destination service pair from internal address mapping table The destination service example answered.
Wherein, in the internal address mapping table recording status be non-faulting Service Instance, and according to Service Instance Malfunction real-time update.It, can be by the module specially safeguarded to internal address mapping table during specific implementation It is managed, for example service discovery proxy module can go detection service example according to specific heartbeat mechanism or other methods State, it is determined whether it is faulty or whether can be used, when called Service Instance determines that state is failure, by the example from interior entoilage The internal address mapping table that timely updates is removed in the mapping table of location, so that the Service Instance in internal address mapping table is available 's.It avoids in service call, service call accesses faulty Service Instance, leads to malloc failure malloc and poor user experience Problem.Wherein, client can cache the physical location that internal address mapping table gets Service Instance by rule.When there is clothes When generation is called in business, position, that is, destination service example position of a Service Instance is returned in internal address mapping table, specifically The selection of destination service example can be selected by scheduled strategy, for example can be training in rotation, weight or other are customized Strategy.
S120, calling simultaneously access the destination service example.
It is above-mentioned destination service example has been determined on the basis of, client can call directly the service, call access Corresponding destination service example.
Optionally, it calls and accesses the destination service example, comprising:
Monitor the calling process of the destination service example;
When the allocating time exceeds preset time, then the calling of the destination service example is interrupted.
During calling and accessing the destination service example, the calling process of object instance can be monitored in real time, Include the case where the connection of establishing for monitoring it with destination service example, such as the time called when remote object Service Instance. It is more than preset time when the time of calling process, then can interrupts the calling, for example, when the calling of a destination service example When time exceeds 5s, illustrate that the remote service called at this time may excessively be adjusted at once without being capable of calling due to failure or processing task With success, therefore the calling of the destination service example can be interrupted.Wherein, preset time can with according to specific business need into Row setting.Such interrupt strategy can be constantly in calling state, shadow to avoid when some remote service calls unsuccessful The calling for ringing subsequent other remote services, the problem of causing remote service resource to be constantly in blocked state.
Optionally, it calls and accesses the destination service example, comprising:
It calls the number being interrupted beyond preset times when described, then the destination service example is marked, so as to The calling of the destination service example is used in the calling process serviced later according to the label and avoids regulative strategy.
In the specific implementation process, the interruption times for being interrupted the Service Instance of calling can be recorded in real time, will be called It is interrupted number in journey to be marked beyond the destination service examples of preset times, to be serviced later according to the label To the calling of the destination service example using avoidance regulative strategy in calling process.Wherein, preset times can be according to specific Client and the performance of server-side determine.Avoiding regulative strategy can be the rule taken the Service Instance and avoid calling Then.For example the number being interrupted when destination service example can then be labeled it, such as beyond 5 times to the Service Instance Domain name mark.When recognizing the Service Instance with the mark, then the Service Instance can be never called, that is, avoiding should Service Instance is selected as destination service example, avoids next time in service invocation procedure, another calls the destination service Example and it is unsuccessful, influence user experience.
Optionally, it calls and accesses the destination service example, further includes:
After calling and accessing destination service example failure, then preset standby strategy is executed.
Wherein, call and can be allocating time the case where accessing destination service example failure more than preset duration and When being interrupted.After the failure of client call remote service, preset standby strategy can be executed.Wherein, standby strategy is used for Preset prompt information is shown after calling the Service Instance failure and/or calls other clothes relevant to the destination service Pragmatic example.For example, the prompt informations such as display " now due to calling service number more, please being operated again later ";And/or it adjusts With other Service Instances relevant to destination service, for example, if one malloc failure malloc of Service Instance, and Service Instance two can also be with Reach client to the calling and access of destination service, then it is real can to call directly service after one malloc failure malloc of Service Instance Example two or trial execute operation by other means.
Optionally, it calls and accesses the destination service example, further includes:
When call and access the destination service example failure after, by the destination service example of the malloc failure malloc store to In task list;And/or
It sends and shows the relevant information with the destination service example malloc failure malloc.
After the failure of invocation target Service Instance, the call request of destination service can be added in task list and be carried out Record, that is to say, that may include the destination service of malloc failure malloc in the task list;It is returned it is also possible to upstream call One signal notifies upstream, and the call request of destination service will be satisfied in evening later, to give some instructions of client, Improve experience effect.
The technical solution of the present embodiment, by the call request in response to destination service, from internal address mapping table really Fixed destination service example corresponding with the destination service, then calls and accesses the destination service example.Wherein, in described Recording status is the Service Instance of non-faulting in net address mapping table, and according to the malfunction real-time update of Service Instance; Recording status is the Service Instance of non-faulting i.e. in internal address mapping table, and in real time more according to the malfunction of Service Instance Newly, it is possible thereby to confirm that the Service Instance in internal address mapping table is available, avoids repetition and calls failed services real Example, especially solves in distributed system the problem of causing service call to fail, each service degradation or the collapse of thorough failure Cause service caller in the case where being not timed-out strategy in waiting, and the service of available calling is in blocked state, with And lead to the problem of influencing the entire application program ecosystem.Meanwhile after destination service malloc failure malloc, other can be executed Standby strategy or other operations become so that service call client and being equivalent among tune server-side and being added to elastic layer Protection buffer area between service consumer and server, improves the experience effect of user.
Embodiment two
Fig. 2 is a kind of flow chart of method for calling service provided by Embodiment 2 of the present invention, in the base of above-described embodiment On plinth, optionally, further optimization is done to step S120, as shown in Fig. 2, this method specifically includes:
S210, the call request in response to destination service, the determining and destination service pair from internal address mapping table The destination service example answered.
If S220, the destination service example include the interaction with multiple remote service resources, is calling and accessing Before the destination service example, the calling task of the different remote resources is assigned to different thread pools and is called and is appointed The starting of business.
Thread pool is a kind of multiple threads form, and calling task is added to queue in treatment process, is then being created Automatically start these calling tasks after thread.Per thread can use the storehouse size of default, be transported with the priority of default Row, and in multiple thread units.If some thread is idle in Managed Code, for example is waiting some event, then line Cheng Chi will be inserted into another worker thread to make all processors keep busy.If all thread pool threads all remain numerous It is busy, but comprising the work hung up in queue, then thread pool will create the number of another worker thread but thread over time Mesh is never more than maximum value.Thread more than maximum value can be lined up, but they will be until just opening after the completion of other threads It is dynamic.
It in the present embodiment, then will be different if necessary to be interacted with multiple remote service resources in a service call The calling task of remote resource is assigned in different thread pools, the starting of the remote service resource in each destination service example It is all mutually isolated, if a remote service low-response, the thread pool being in is called corresponding to the remote service It will gradually be saturated, and may stop handling subsequent calls request.Since different calling tasks is distributed in different threads Chi Zhong, calling corresponding to other remote services in good condition will not then be affected by this, can reduce due to some in this way The calling process of remote resource slowly wears entire the application program even risk of application program ecology down.Therefore, different remote Journey service money distribution is called the starting of task into different thread pools, can avoid the occurrence of the failure of a remote resource The problem of will affect the work of entire application program improves the efficiency of service call.
S230, calling simultaneously access the destination service example.
The technical solution of the present embodiment is carried out by the way that the calling task of different remote resources is assigned to different thread pools The problem of starting of calling task, can avoid the occurrence of the failure of a remote resource influences the work of entire application program, from And improve the efficiency of client service calling.
Embodiment three
Fig. 3 is a kind of structural schematic diagram of the device for calling service that the embodiment of the present invention six provides, as shown in figure 3, institute Stating device includes:
Service Instance selecting module 310, for the call request in response to destination service, according to preset return strategy from A destination service example corresponding with the destination service is determined in internal address mapping table, wherein the internal address reflects Firing table is the internal address mapping table after the Service Instance that newest deletion state is failure.
Service Instance calling module 320, for calling and accessing the destination service example.
Optionally, the Service Instance calling module 320, specifically for monitoring the calling of the destination service example Journey;When the allocating time exceeds preset time, then the calling of the destination service example is interrupted.
Optionally, the Service Instance calling module 320 is also used to call the number being interrupted beyond default time when described Number, then be marked the destination service example, to be marked in the calling process serviced later according to described to described The calling of destination service example is using avoidance regulative strategy.
Optionally, the Service Instance calling module 320 is also used to when calling and accesses the destination service example failure Afterwards, then preset standby strategy is executed;Wherein, the standby strategy is used to after calling the Service Instance failure show default Prompt information and/or call relevant to the destination service other Service Instances.
Optionally, the Service Instance calling module 320, is also used to:
After calling and accessing Service Instance failure, the destination service example of the malloc failure malloc is stored to task In list;And/or
It sends and shows the relevant information with the destination service example malloc failure malloc.
Optionally, if the destination service example includes the interaction with multiple remote service resources, described device is also Include:
Task allocating module, for before calling and accessing the destination service example, by the different remote resources Calling task be assigned to the starting that different thread pools is called task.
The device that service is called provided by the embodiment of the present invention, can be performed calling provided by any embodiment of the invention The method of service has the corresponding functional module of execution method and beneficial effect.The not technology of detailed description in the present embodiment Details, reference can be made to a kind of method for calling service that any embodiment of that present invention provides.
Example IV
Referring to fig. 4, a kind of electronic equipment 400 is present embodiments provided comprising: one or more processors 420;Storage Device 410, for storing one or more programs, when one or more of programs are by one or more of processors 420 It executes, so that one or more of processors 420 realize a kind of method for calling service, packet provided by the embodiment of the present invention It includes:
In response to the call request of destination service, mesh corresponding with the destination service is determined from internal address mapping table Mark Service Instance, wherein recording status is the Service Instance of non-faulting in the internal address mapping table, and real according to service The malfunction real-time update of example;
It calls and accesses the destination service example.
Certainly, it will be understood by those skilled in the art that processor 720 can also realize that any embodiment of that present invention is provided A kind of calling service method technical solution.
The electronic equipment 400 that Fig. 4 is shown is only an example, should not function and use scope to the embodiment of the present invention Bring any restrictions.
As shown in figure 4, electronic equipment 400 is showed in the form of universal computing device.The component of electronic equipment 400 can wrap Include but be not limited to: one or more processor 420, storage device 410 connect different system components (including storage device 410 With processor 420) bus 450.
Bus 450 indicates one of a few class bus structures or a variety of, including memory bus or Memory Controller, Peripheral bus, graphics acceleration port, processor or the local bus using any bus structures in a variety of bus structures.It lifts For example, these architectures include but is not limited to industry standard architecture (ISA) bus, microchannel architecture (MAC) Bus, enhanced isa bus, Video Electronics Standards Association (VESA) local bus and peripheral component interconnection (PCI) bus.
Electronic equipment 400 typically comprises a variety of computer system readable media.These media can be it is any can be by The usable medium that electronic equipment 400 accesses, including volatile and non-volatile media, moveable and immovable medium.
Storage device 410 may include the computer system readable media of form of volatile memory, such as arbitrary access Memory (RAM) 411 and/or cache memory 412.Electronic equipment 400 may further include it is other it is removable/can not Mobile, volatile/non-volatile computer system storage medium.Only as an example, storage system 413 can be used for reading and writing not Movably, non-volatile magnetic media (Fig. 4 do not show, commonly referred to as " hard disk drive ").It although not shown in fig 4, can be with The disc driver for reading and writing to removable non-volatile magnetic disk (such as " floppy disk ") is provided, and non-volatile to moving The CD drive of CD (such as CD-ROM, DVD-ROM or other optical mediums) read-write.In these cases, each driving Device can be connected by one or more data media interfaces with bus 450.Storage device 410 may include at least one journey Sequence product, the program product have one group of (for example, at least one) program module, these program modules are configured to perform this hair The function of bright each embodiment.
Program/utility 414 with one group of (at least one) program module 415 can store in such as storage dress It sets in 410, such program module 415 includes but is not limited to operating system, one or more application program, other program moulds It may include the realization of network environment in block and program data, each of these examples or certain combination.Program module 415 usually execute function and/or method in any embodiment described in the invention.
Electronic equipment 400 can also be with one or more external equipments 460 (such as keyboard, sensing equipment, display 470 Deng) communication, can also be enabled a user to one or more equipment interact with the electronic equipment 400 communicate, and/or with make Any equipment (such as network interface card, the modem that the electronic equipment 400 can be communicated with one or more of the other calculating equipment Etc.) communication.This communication can be carried out by input/output (I/O) interface 430.Also, electronic equipment 400 can also lead to Cross network adapter 440 and one or more network (such as local area network (LAN), wide area network (WAN) and/or public network, example Such as internet) communication.As shown in figure 4, network adapter 440 is communicated by bus 450 with other modules of electronic equipment 400. It should be understood that although not shown in the drawings, other hardware and/or software module can not used in conjunction with electronic equipment 400, including but not Be limited to: microcode, device driver, redundant processing unit, external disk drive array, RAID system, tape drive and Data backup storage system etc..
The program that processor 420 is stored in storage device 410 by operation, thereby executing various function application and number According to processing, such as realize a kind of method for calling service provided by the embodiment of the present invention.
Embodiment five
The embodiment of the present invention five provides a kind of storage medium comprising computer executable instructions, and the computer is executable It instructs when being executed by computer processor for executing a kind of method for calling service, this method comprises:
In response to the call request of destination service, mesh corresponding with the destination service is determined from internal address mapping table Mark Service Instance, wherein recording status is the Service Instance of non-faulting in the internal address mapping table, and real according to service The malfunction real-time update of example;
It calls and accesses the destination service example.
Certainly, a kind of storage medium comprising computer executable instructions, computer provided by the embodiment of the present invention The method operation that executable instruction is not limited to the described above, can also be performed a kind of calling provided by any embodiment of the invention Relevant operation in the method for service.
The computer storage medium of the embodiment of the present invention, can be using any of one or more computer-readable media Combination.Computer-readable medium can be computer-readable signal media or computer readable storage medium.It is computer-readable Storage medium for example may be-but 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 computer readable storage medium includes: tool There are electrical connection, the portable computer diskette, hard disk, random access memory (RAM), read-only memory of one or more conducting wires (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD- ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.In this document, computer-readable storage Medium can be any tangible medium for including or store program, which can be commanded execution system, device or device Using or it is in connection.
Computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal, Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including but unlimited In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can Any computer-readable medium other than storage medium is read, which can send, propagates or transmit and be used for By the use of instruction execution system, device or device or program in connection.
The program code for including on computer-readable medium can transmit with any suitable medium, including --- but it is unlimited In wireless, electric wire, optical cable, RF etc. or above-mentioned any appropriate combination.
The computer for executing operation of the present invention can be write with one or more programming languages or combinations thereof Program code, described program design language include object oriented program language-such as Java, Smalltalk, C++, It further include conventional procedural programming language-such as " C " language, Python or similar programming language.Program generation Code can be executed fully on the user computer, partly be executed on the user computer, as an independent software package Execute, part on the user computer part on the remote computer execute or completely on a remote computer or server It executes.In situations involving remote computers, remote computer can pass through the network of any kind --- including local area network (LAN) or wide area network (WAN)-is connected to subscriber computer, or, it may be connected to outer computer (such as utilize internet Service provider is connected by internet).
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation, It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.

Claims (10)

1. a kind of method for calling service, which is characterized in that the described method includes:
In response to the call request of destination service, target clothes corresponding with the destination service are determined from internal address mapping table Pragmatic example, wherein recording status is the Service Instance of non-faulting in the internal address mapping table, and according to Service Instance Malfunction real-time update;
It calls and accesses the destination service example.
2. the method according to claim 1, wherein calling and accessing the destination service example, comprising:
Monitor the calling process of the destination service example;
When the allocating time exceeds preset time, then the calling of the destination service example is interrupted.
3. according to the method described in claim 2, it is characterized in that, calling and accessing the destination service example, comprising:
It calls the number being interrupted beyond preset times when described, then the destination service example is marked, so as to basis The label is in the calling process serviced later to the calling of the destination service example using avoidance regulative strategy.
4. the method according to claim 1, wherein calling and accessing the destination service example, further includes:
After calling and accessing destination service example failure, then preset standby strategy is executed;
Wherein, the standby strategy is used to show preset prompt information and/or calling after calling the Service Instance failure Other Service Instances relevant to the destination service.
5. the method according to claim 1, wherein calling and accessing the destination service example, further includes:
After calling and accessing destination service example failure, the destination service example of the malloc failure malloc is stored to task In list;And/or
It sends and shows the relevant information with the destination service example malloc failure malloc.
6. the method according to claim 1, wherein if the destination service example includes and multiple long-range clothes The interaction for resource of being engaged in, then before calling and accessing the destination service example, the method also includes:
The calling task of the different remote resources is assigned to the starting that different thread pools is called task.
7. a kind of device for calling service, which is characterized in that described device includes:
Service Instance selecting module, it is tactful from interior entoilage according to preset return for the call request in response to destination service A destination service example corresponding with the destination service is determined in the mapping table of location, wherein the internal address mapping table is Newest deletion state is the internal address mapping table after the Service Instance of failure;
Service Instance calling module, for calling and accessing the destination service example.
8. device according to claim 7, which is characterized in that the Service Instance calling module is specifically used for monitoring institute State the calling process of destination service example;When the allocating time exceeds preset time, then the destination service example is interrupted Calling.
9. a kind of electronic equipment, which is characterized in that the electronic equipment includes:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors are real Now such as a kind of method for calling service as claimed in any one of claims 1 to 6.
10. a kind of storage medium comprising computer executable instructions, the computer executable instructions are by computer disposal For executing such as a kind of method for calling service as claimed in any one of claims 1 to 6 when device executes.
CN201811384383.1A 2018-11-20 2018-11-20 A kind of method, apparatus, electronic equipment and storage medium calling service Pending CN109542645A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811384383.1A CN109542645A (en) 2018-11-20 2018-11-20 A kind of method, apparatus, electronic equipment and storage medium calling service

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811384383.1A CN109542645A (en) 2018-11-20 2018-11-20 A kind of method, apparatus, electronic equipment and storage medium calling service

Publications (1)

Publication Number Publication Date
CN109542645A true CN109542645A (en) 2019-03-29

Family

ID=65848695

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811384383.1A Pending CN109542645A (en) 2018-11-20 2018-11-20 A kind of method, apparatus, electronic equipment and storage medium calling service

Country Status (1)

Country Link
CN (1) CN109542645A (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110062043A (en) * 2019-04-16 2019-07-26 杭州朗和科技有限公司 Service administering method, service controlling device, storage medium and electronic equipment
CN110519395A (en) * 2019-09-16 2019-11-29 北京思维造物信息科技股份有限公司 Service request processing method, device, computer equipment and storage medium
CN110531999A (en) * 2019-09-04 2019-12-03 上海闻泰电子科技有限公司 Application management method, device, equipment and storage medium
CN110688148A (en) * 2019-10-08 2020-01-14 中国建设银行股份有限公司 Method, device, equipment and storage medium for equipment management
CN110865876A (en) * 2019-09-23 2020-03-06 珠海格力电器股份有限公司 Scheduling method and device for service dependent resources
CN110995806A (en) * 2019-11-24 2020-04-10 济南浪潮数据技术有限公司 Resource state conversion method, device, equipment and storage medium
CN110995829A (en) * 2019-11-29 2020-04-10 广州市百果园信息技术有限公司 Instance calling method and device and computer storage medium
CN111143069A (en) * 2019-12-27 2020-05-12 杭州数梦工场科技有限公司 Service management method, device, electronic equipment and storage medium
CN111427674A (en) * 2020-03-19 2020-07-17 成都云盯科技有限公司 Micro-service management method, device and system
CN112596761A (en) * 2020-12-15 2021-04-02 泰康保险集团股份有限公司 Service update release method, device and related equipment
CN112887109A (en) * 2019-11-29 2021-06-01 北京百度网讯科技有限公司 Disaster recovery processing method, device, equipment and readable medium for infrastructure area
CN113010131A (en) * 2021-03-15 2021-06-22 京东数字科技控股股份有限公司 Display content updating method, device, terminal, server and storage medium
CN113986149A (en) * 2021-12-27 2022-01-28 苏州浪潮智能科技有限公司 System fault processing method, device, equipment and storage medium
CN115412530A (en) * 2022-08-30 2022-11-29 上海道客网络科技有限公司 Domain name resolution method and system for service in multi-cluster scene

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1700682A (en) * 2004-05-21 2005-11-23 迈普(四川)通信技术有限公司 Virtual domain name resolution proxy method and system
CN104320492A (en) * 2014-11-11 2015-01-28 北京国双科技有限公司 Method and device for dispatching web servers
CN107577523A (en) * 2017-07-31 2018-01-12 阿里巴巴集团控股有限公司 A kind of method and device of tasks carrying
CN107733922A (en) * 2017-11-20 2018-02-23 百度在线网络技术(北京)有限公司 Method and apparatus for calling service
CN108563514A (en) * 2018-03-16 2018-09-21 阿里巴巴集团控股有限公司 Access method, application and the electronic equipment of application configuration service

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1700682A (en) * 2004-05-21 2005-11-23 迈普(四川)通信技术有限公司 Virtual domain name resolution proxy method and system
CN104320492A (en) * 2014-11-11 2015-01-28 北京国双科技有限公司 Method and device for dispatching web servers
CN107577523A (en) * 2017-07-31 2018-01-12 阿里巴巴集团控股有限公司 A kind of method and device of tasks carrying
CN107733922A (en) * 2017-11-20 2018-02-23 百度在线网络技术(北京)有限公司 Method and apparatus for calling service
CN108563514A (en) * 2018-03-16 2018-09-21 阿里巴巴集团控股有限公司 Access method, application and the electronic equipment of application configuration service

Cited By (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110062043A (en) * 2019-04-16 2019-07-26 杭州朗和科技有限公司 Service administering method, service controlling device, storage medium and electronic equipment
CN110531999A (en) * 2019-09-04 2019-12-03 上海闻泰电子科技有限公司 Application management method, device, equipment and storage medium
CN110519395A (en) * 2019-09-16 2019-11-29 北京思维造物信息科技股份有限公司 Service request processing method, device, computer equipment and storage medium
CN110865876A (en) * 2019-09-23 2020-03-06 珠海格力电器股份有限公司 Scheduling method and device for service dependent resources
CN110688148A (en) * 2019-10-08 2020-01-14 中国建设银行股份有限公司 Method, device, equipment and storage medium for equipment management
CN110995806A (en) * 2019-11-24 2020-04-10 济南浪潮数据技术有限公司 Resource state conversion method, device, equipment and storage medium
CN110995806B (en) * 2019-11-24 2022-05-24 济南浪潮数据技术有限公司 Resource state conversion method, device, equipment and storage medium
CN112887109A (en) * 2019-11-29 2021-06-01 北京百度网讯科技有限公司 Disaster recovery processing method, device, equipment and readable medium for infrastructure area
CN112887109B (en) * 2019-11-29 2023-01-06 北京百度网讯科技有限公司 Disaster recovery processing method, device, equipment and readable medium for infrastructure area
CN110995829B (en) * 2019-11-29 2022-07-22 广州市百果园信息技术有限公司 Instance calling method and device and computer storage medium
US11362885B2 (en) 2019-11-29 2022-06-14 Beijing Baidu Netcom Science And Technology Co., Ltd. Method, apparatus, device and readable medium for disaster recovery processing for infrastructure areas
CN110995829A (en) * 2019-11-29 2020-04-10 广州市百果园信息技术有限公司 Instance calling method and device and computer storage medium
CN111143069A (en) * 2019-12-27 2020-05-12 杭州数梦工场科技有限公司 Service management method, device, electronic equipment and storage medium
CN111427674A (en) * 2020-03-19 2020-07-17 成都云盯科技有限公司 Micro-service management method, device and system
CN112596761A (en) * 2020-12-15 2021-04-02 泰康保险集团股份有限公司 Service update release method, device and related equipment
CN112596761B (en) * 2020-12-15 2023-09-22 泰康保险集团股份有限公司 Service update release method and device and related equipment
CN113010131A (en) * 2021-03-15 2021-06-22 京东数字科技控股股份有限公司 Display content updating method, device, terminal, server and storage medium
CN113010131B (en) * 2021-03-15 2024-04-05 京东科技控股股份有限公司 Display content updating method, device, terminal, server and storage medium
CN113986149A (en) * 2021-12-27 2022-01-28 苏州浪潮智能科技有限公司 System fault processing method, device, equipment and storage medium
CN115412530A (en) * 2022-08-30 2022-11-29 上海道客网络科技有限公司 Domain name resolution method and system for service in multi-cluster scene
CN115412530B (en) * 2022-08-30 2024-01-30 上海道客网络科技有限公司 Domain name resolution method and system for service under multi-cluster scene

Similar Documents

Publication Publication Date Title
CN109542645A (en) A kind of method, apparatus, electronic equipment and storage medium calling service
US11941434B2 (en) Task processing method, processing apparatus, and computer system
US7117285B2 (en) Method and system for efficiently directing interrupts
US8402470B2 (en) Processor thread load balancing manager
US10162708B2 (en) Fault tolerance for complex distributed computing operations
CN103106117A (en) Resource allocation method and electronic equipment
US11403224B2 (en) Method and system for managing buffer device in storage system
US20150058855A1 (en) Management of bottlenecks in database systems
US10997099B2 (en) I/O request processing method in virtual machine, device and computer readable medium
US20160239331A1 (en) Computer-readable recording medium storing execution information notification program, information processing apparatus, and information processing system
US20160124762A1 (en) Guest idle based vm request completion processing
EP2645635B1 (en) Cluster monitor, method for monitoring a cluster, and computer-readable recording medium
KR102387922B1 (en) Methods and systems for handling asynchronous event request command in a solid state drive
US20120331480A1 (en) Programming interface for data communications
CN104951239B (en) Cache driver, host bus adaptor and its method used
CN104104705B (en) The cut-in method and equipment of distributed memory system
CN113253933A (en) Method, apparatus, and computer-readable storage medium for managing storage system
CN115421787A (en) Instruction execution method, apparatus, device, system, program product, and medium
US9507637B1 (en) Computer platform where tasks can optionally share per task resources
WO2022042127A1 (en) Coroutine switching method and apparatus, and device
US8756607B2 (en) Method and system for creating and utilizing virtual hardware resources
US9088569B2 (en) Managing access to a shared resource using client access credentials
CN109254819A (en) Interface updating method, system, equipment and storage medium based on android system
US20150178186A1 (en) Method and apparatus for swapping in data to memory
CN111813574A (en) Picture compression method and device, storage medium and electronic equipment

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190329