CN106227611A - The dynamic micro services call method of a kind of multilingual cloud compiling and device - Google Patents

The dynamic micro services call method of a kind of multilingual cloud compiling and device Download PDF

Info

Publication number
CN106227611A
CN106227611A CN201610599724.1A CN201610599724A CN106227611A CN 106227611 A CN106227611 A CN 106227611A CN 201610599724 A CN201610599724 A CN 201610599724A CN 106227611 A CN106227611 A CN 106227611A
Authority
CN
China
Prior art keywords
micro services
gateway
call request
server
terminal
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
CN201610599724.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.)
Beijing Beson Cloud Ltd By Share Ltd
Original Assignee
Beijing Beson Cloud Ltd By Share 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 Beijing Beson Cloud Ltd By Share Ltd filed Critical Beijing Beson Cloud Ltd By Share Ltd
Priority to CN201610599724.1A priority Critical patent/CN106227611A/en
Publication of CN106227611A publication Critical patent/CN106227611A/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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Stored Programmes (AREA)

Abstract

The dynamic micro services call method of the multilingual cloud compiling that the present invention provides and device, in terminal, the recalls information of micro services is sent to gateway by user, gateway judges whether this micro services is present in server, if existing, then this call request is routed to server, so that server performs corresponding task according to this call request, and the result of tasks carrying is fed back to terminal.Micro services owing to calling is independently of the function point being capable of preset function of whole operation system, rather than whole operation system, therefore, operation system is upgrading or break down when, preset function can be realized, without calling whole operation system by calling currently available micro services.The when of solving operation system escalation process or break down, the problem that the business completed by this operation system also cannot be properly functioning, and it is effectively improved the motility of expanding of system function, opening, maintainability and scalability.

Description

The dynamic micro services call method of a kind of multilingual cloud compiling and device
Technical field
The invention belongs to field of computer technology, be specifically related to the dynamic micro services call method of a kind of multilingual cloud compiling And device.
Background technology
Along with Object-Oriented Design pattern and enterprise architecture pattern occur, a system is from functional realiey, code organization etc. Angle is thought deeply, and is generally divided into three levels: represent layer, Business Logic, data access layer.Wherein, represent layer be based on The Web page of html, reads data by Rest API and renders;Business Logic is the core code of application system, logical It is commonly used to realize system business rule;Data access layer is to access data base or the intermediary of information;This is common classics Three-tier architecture pattern, although this pattern to some extent solves the problem calling complexity, the confusion of responsibilities between system module, But this traditional framework style development efficiency, build dispose, maintenance cost, and extensibility, scalable aspect have very Big not enough drawn game is sex-limited.
The system development of this framework mode is that each function, module are relatively-stationary after completing, it is provided that interface and reality The most all being due up, eventually pass through exploitation, compile, pack, dispose, finally run and be placed in a process, it is just as one Block iron block, heavy and cannot split, also cannot extend, in later stage system the change of any point be required under line exploitation again, Compiling, packing, to dispose, whole Period Process length, maintenance cost are high.And along with the development of operation system, demand continuous Increase, the extensibility of system, maintainability, can O&M, manageability but constantly decline.
Comprehensive prior art has the disadvantage in that (1) extension complexity: code is all in a project system, and this makes Obtain whole expansion process extremely complex loaded down with trivial details, and it is possible to the structure of the most original broken code;(2) reuse of code is low: system Code logic is intended merely to currently developed and is coupled in system, and it reduce code reuses rate;.(3) construction cycle is long Efficiency is low: when extending or add new demand, needs again to develop under developer's line, compiles, tests, uploads, configures, beats Bag, deployment system, this makes construction cycle the longest efficiency the lowest.(4) it is difficult to safeguard: the application of system developer and technology has May the most iteration cross many times, calling mutually between code in system, be mutually coupled the most intricate, not quite understand The people of system dare not act rashly.Along with the summation function that needs of system gets more and more, team is increasing, links up into accordingly Basis, development cost, management cost all can be multiplied, when there is defect in system, will also result in problem analysis, orientation problem, The time of reparation problem is longer;Along with the increase of size of code is also possible to cause the vicious cycle of " repairing the most, defect is the most "; In system, a little change is accomplished by redeploying whole application system.(5) development language limitation: if application system makes Use certain language development, then again then must also be extended by this language during demand extension, it is impossible to attempt new programming Language or framework, this is also impossible to use a technology platform or scheme to solve all problems at present in reality.(6) hardware Cost is high-leveled and difficult with horizontal extension: all of program code, in the same process of server, can cause horizontal extension difficulty and become This high situation, because functions of modules different in system actually requirement to server is different, has plenty of CPU intensive Computer type, it is desirable to have the CPU processor that performance is stronger, has plenty of and needs internal memory I/O intensive type, deposits in needing to use in a large number Row data buffer storage, if the infrastructure server required by system is gone buying by same standard, then hardware cost can be non- Chang Gao.(7) reliability is low: all functions of modules all operate in a process, a mistake in any one functions of modules Bug, such as RAM leakage/CPU Continued, it will likely do collapse or drag slow whole process, thus have influence on whole application Reliability.(8) cannot distributed deployment support high concurrent: due to Dll or Jar that outside cannot be relied on and existing system journey Sequence carries out physical machine and efficiently separates, and along with constantly upgrading and extension, the hugest and complicated system of system, stretch Contracting is necessary for all-in-one-piece flexible, it is impossible to the formula that efficiently separates is stretched, the core business point of often operation required for user in system May only have 30%, and to do same deployment by non-core 70% now and stretch, it is impossible to reach the maximization collection of resource About use.(9) continuous integrating and payment are affected: due to the bulky complex of operation system, add extension upgrading many times, so Building the time once also can be the veryest long, and failed number of times also can be greatly increased, if building process mistake, investigation problem is also Can be extremely difficult.The trickle amendment in any point of additionally making system is required for whole system being rebuild, redeploying. One system of multiple developer's joint developments, in addition it is also necessary to waiting that other developers could dispose after completing, this is substantially reduced The motility of team and function delivery frequency;(10) additionally open and run in project very slowly, system is difficult to exploitation, survey Examination, continuous integrating difficulty, deployed environment rely on complicated, technology stack binding, programming language, framework, the upgrading of data base and replacing Extremely difficult etc..
How to tackle these problems, to the motility of software system, opening, maintainability, scalability, and software System is proposed higher requirement for the respond in market and client.Increase the most rapidly, extend, upgrade and currently mark Accurate systemic-function is that client is customized, and effectively ensures lifting software development quality and development efficiency, has become as The significant challenge of Software Industry.
Whole operation system can only be called in invoked procedure by existing operation system, rises in operation system Level or break down (such as, operation system collapse or the occupied internal memory of CPU drastically rise violently) when, this operation system Can not be used, the business completed by this operation system also cannot be properly functioning.
Summary of the invention
The technical problem to be solved be how to solve operation system carry out upgrading or break down time Waiting, this operation system can not be used, the problem that the business completed by this operation system also cannot be properly functioning, and has Effect improves the motility of expanding of system function, opening, maintainability and scalability.
For this problem, the present invention provides the dynamic micro services call method that a kind of multilingual cloud compiles, including:
S1: the first call request calling micro services is sent to gateway, so that described gateway is micro-according to obtain in advance Service list judges whether described micro services exists, and is if so, that described micro services selects node;
Described first call request is routed to server according to described node by S2: gateway so that described server according to Described first call request performs corresponding task, and the result of described tasks carrying is fed back to terminal;
The result of the described tasks carrying of described server feedback that S3: terminal will receive;
Wherein, described micro services list describes the information of the micro services in described server;Described micro services is one section Scripted code, is compiled described scripted code forming the micro services example being capable of preset function.
Preferably, described step S2 includes:
Described first call request is packaged as presetting the second call request under communication protocol by S21: described gateway;
Described second call request is routed to described server according to described node by S22: described gateway, so that described clothes Business device performs corresponding task according to described first call request, and the result of described tasks carrying is fed back to terminal.
Preferably, described step S22 specifically includes:
Described second call request is routed to described server according to described node by described gateway, so that described server In described server, the micro services example that described micro services is corresponding is searched according to described second call request, if described server Find described micro services example, perform the task that described micro services example is corresponding, and the execution result of described task is fed back To terminal, if described server does not find described micro services example, then in described server, search described micro services, right Scripted code corresponding to described micro services is compiled, if there is mistake in the process of described compiling, and cannot to described terminal feedback Call the information of micro services, otherwise, perform the task that newly-generated micro services example is corresponding, and by anti-for the execution result of this task It is fed to terminal.
Preferably, described step S1 includes:
S11: the first call request calling micro services is sent to gateway, so that described gateway is micro-according to obtain in advance Service list judges whether described micro services exists, and if so, performs step S12, and otherwise, gateway is to micro services described in terminal feedback Non-existent information;
S12: gateway is according to described micro services list, it is judged that currently whether there is at least one effective node for by described First call request routes to server, is if so, that described micro services selects node;Otherwise, gateway does not exists to terminal feedback For calling the information of the node of described micro services.
Preferably, also included before described step S1:
Terminal obtains the identity information of user, it is judged that described identity information is the most correct, if so, sends authentication and passes through Information so that described user is after authentication is passed through, by described terminal to described gateway send described first call please Ask, otherwise, send the information that authentication is failed.
On the other hand, present invention also offers the dynamic micro services calling device of a kind of multilingual cloud compiling, including:
First sending module, for the first call request calling micro services is sent to gateway, so that described gateway root Judge whether described micro services exists according to the micro services list obtained in advance, be if so, that described micro services selects node;
Second sending module, is used for making gateway, according to described node, described first call request be routed to server, with Make described server perform corresponding task according to described first call request, and the result of described tasks carrying is fed back to end End;
Receiver module, for making the result of the described tasks carrying of the terminal described server feedback of reception;
Wherein, described micro services list describes the information of the micro services in described server;Described micro services is one section Scripted code, is compiled described scripted code forming the micro services example being capable of preset function.
Preferably, described second sending module includes:
Packaging unit, for being packaged as the second tune presetting under communication protocol by described gateway by described first call request With request;
First transmitting element, is used for making described gateway, according to described node, described second call request be routed to described clothes Business device, so that described server performs corresponding task according to described first call request, and by the result of described tasks carrying Feed back to terminal.
Preferably, described transmitting element is additionally operable to make described gateway according to described node by described second call request route To described server, so that described server searches described micro services pair according to described second call request in described server The micro services example answered, if described whois lookup is to described micro services example, performs the task that described micro services example is corresponding, And the execution result of described task is fed back to terminal, if described server does not find described micro services example, then in institute State and server is searched described micro services, the scripted code that described micro services is corresponding is compiled, if the process of described compiling Mistake occurs, the information of micro services cannot be called to described terminal feedback, otherwise, perform newly-generated micro services example corresponding Task, and the execution result of this task is fed back to terminal.
Preferably, described first sending module includes:
Second transmitting element, for the first call request calling micro services is sent to gateway, so that described gateway root Judging whether described micro services exists according to the micro services list obtained in advance, if so, perform step S12, otherwise, gateway is to terminal Feed back the non-existent information of described micro services;
Judging unit, is used for making gateway according to described micro services list, it is judged that currently whether there is at least one and effectively saves Point, for described first call request is routed to server, is if so, that described micro services selects node;Otherwise, gateway is to end There is not the information of the node for calling described micro services in end feedback.
Preferably, described first sending module be additionally operable to terminal by described first call request send to gateway it Before, make terminal obtain the identity information of user, it is judged that described identity information is the most correct, if so, sends what authentication was passed through Information, so that described user is after authentication is passed through, sends described first call request by described terminal to described gateway, Otherwise, the information that authentication is failed is sent.
The dynamic micro services call method of the multilingual cloud compiling that the present invention provides and device, in terminal by user in incognito The recalls information of business sends to gateway, and gateway judges whether this micro services is present in server, if existing, then this is called Request routes to server, so that server performs corresponding task according to this call request, and by anti-for the result of tasks carrying It is fed to terminal, this execution result of terminal demonstration.Micro services owing to calling is independently of whole operation system, it is possible to realize pre- If function function point rather than whole operation system, therefore, operation system carry out upgrading or break down time Wait, corresponding function can be realized, without calling whole business system by calling the micro services being capable of preset function System.The when of solving operation system escalation process or break down, the business completed by this operation system also cannot be just The problem often run.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing In having technology to describe, the required accompanying drawing used is briefly described, it should be apparent that, the accompanying drawing in describing below is this Some bright embodiments, for those of ordinary skill in the art, on the premise of not paying creative work, it is also possible to root Other accompanying drawing is obtained according to these accompanying drawings.
Fig. 1 is the dynamic micro services call method schematic flow sheet of the multilingual cloud compiling that the embodiment of the present invention provides;
Fig. 2 is the dynamic micro services calling device structured flowchart of the multilingual cloud compiling that the embodiment of the present invention provides;
Fig. 3 is the multilingual dynamic micro services invoked procedure schematic flow sheet that the embodiment of the present invention provides;
Fig. 4 is multilingual dynamic micro services editor and the block schematic illustration of invoked procedure of embodiment of the present invention offer;
Fig. 5 is the multilingual dynamic micro services editing process schematic flow sheet that the embodiment of the present invention provides;
Fig. 6 is the multilingual dynamic micro services interfacial structure schematic diagram at line development of embodiment of the present invention offer;
Fig. 7 is the attribute structure schematic diagram of the multilingual dynamic micro services that the embodiment of the present invention provides;
Fig. 8 is the process instance state reporting schematic diagram of the multilingual dynamic micro services that the embodiment of the present invention provides;
Fig. 9 is the attribute signal of the micro services at the API gateway of the multilingual dynamic micro services that the embodiment of the present invention provides Figure;
Figure 10 is the multilingual dynamic micro services container memory device architectures figure that the embodiment of the present invention provides;
Figure 11 is the multilingual dynamic micro services dilation process schematic flow sheet that the embodiment of the present invention provides;
Figure 12 is that the multilingual dynamic micro services that the embodiment of the present invention provides disposes/the schematic diagram of distribution/flexible;
Figure 13 is the multilingual dynamic micro services Container Management modular device schematic diagram that the embodiment of the present invention provides;
Figure 14 is the module diagram of the multilingual dynamic micro services compiling that the embodiment of the present invention provides;
Figure 15 is the micro services list structure schematic diagram of the multilingual dynamic micro services that the embodiment of the present invention provides.
Detailed description of the invention
For making the purpose of the embodiment of the present invention, technical scheme and advantage clearer, below in conjunction with the embodiment of the present invention In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is The a part of embodiment of the present invention rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art The every other embodiment obtained under not making creative work premise, broadly falls into the scope of protection of the invention.
Fig. 1 is the dynamic micro services call method schematic flow sheet of the multilingual cloud compiling that the embodiment of the present invention provides.Ginseng See that Fig. 1, the method include:
S1: the first call request calling micro services is sent to gateway, so that described gateway is micro-according to obtain in advance Service list judges whether described micro services exists, and is if so, that described micro services selects node;
Described first call request is routed to server according to described node by S2: gateway so that described server according to Described first call request performs corresponding task, and the result of described tasks carrying is fed back to terminal;
S3: terminal will receive the result of the described tasks carrying of described server feedback;
Wherein, described micro services list describes the information of the micro services in described server;Described micro services is one section Scripted code, is compiled described scripted code forming the micro services example being capable of preset function.
First call request is the merit that user needs to use in terminal (such as, the user interface of computer) operating process Can, generate the first call request according to this function, this call request is sent to gateway.Such as, user is using student-directed During system, when being added the operation of achievement on a user interface, the micro services relevant to this function can be generated Call request, this call request is sent to after server by gateway, can complete to add the behaviour of achievement through the process of server Make.In this process, adding achievement is a micro services, is that by adding the function point of this function of achievement, this merit Can put independent of Students'Management System.Therefore, when Students'Management System carries out upgrading or discrete function breaks down, will not Calling of the function point of achievement is added in impact, thus ensure that the properly functioning of business.
It should be noted that micro services is that by the function point of preset function, function point (such as, student-directed system System is used for the scripted code realizing adding this function of achievement) it is to realize in operation system (such as, Students'Management System) The functional module of one function.Unlike the prior art, can be with in operation system after the scripted code compiling of micro services Some function, but it is an independent functional module, and the realization of its function is not limited by whole operation system.Based on this The micro services of sample, during some function in realizing operation system, only can be realized by this micro services, and not rely on Whole operation system.The scripted code of micro services is stored in server, in general, when storing this micro services scripted code Server is properly functioning, and is currently being not above KB limit by the terminal quantity of this this micro services of server calls, The node that then this micro services is corresponding is exactly available, say, that service corresponding to this micro services is available.Meanwhile, server The result being back to terminal does not shows, is intended only as the information that micro services calls and carries out recording that (server is back to terminal Result need front end engineer to carry out rendering displaying).
For example, micro services is the scripted code for realizing the preset function in pre-set business system, such as, is learning In this operation system of students management system, micro services A is used for realizing student performance and adds this function, micro services B for realizing Student's personal information adds this function, micro services C is used for realizing student information and deletes and change this function ..., all of Micro services all can only realize a preset function in Students'Management System, and whole Students'Management System is right according to certain rule These micro services call the function realizing whole Students'Management System.Between each micro services of Students'Management System mutually Independent, when indivedual micro services break down or need to upgrade, not resulting in whole Students'Management System can not call. On the other hand, during system development, each micro services can also use different language carry out writing (C#, VB.NET, JAVA, Python), easily make different developers attempt technological innovation, the most each Function Extension point can use not With programming language write, it is achieved functional unit share.
The dynamic micro services call method of the multilingual cloud compiling that the present invention provides, in terminal by user's tune to micro services Sending to gateway by information, gateway judges whether this micro services is present in server, if existing, then by this call request road By to server, so that server performs corresponding task according to this call request, and the result of tasks carrying is fed back to end End, this execution result of terminal demonstration.Micro services owing to calling is independently of whole operation system, it is possible to realize preset function A function point rather than whole operation system, therefore, operation system, can upgrading or break down when To realize preset function by currently available micro services, without calling whole operation system.Solve operation system Escalation process or when break down, the problem that the business completed by this operation system also cannot be properly functioning.
Further, described step S2 includes:
Described first call request is packaged as presetting the second call request under communication protocol by S21: described gateway;
Described second call request is routed to described server according to described node by S22: described gateway, so that described clothes Business device performs corresponding task according to described first call request, and the result of described tasks carrying is fed back to terminal.
Packaging process is the efficiency in order to improve information transmission, for example, it is possible to the Http form that user is inputted from terminal The first call request be converted to the communication transport protocols under Socket, according to distribution nodal information route to service accordingly Device.
Further, described step S22 specifically includes:
Described second call request is routed to described server according to described node by described gateway, so that described server In described server, the micro services example that described micro services is corresponding is searched according to described second call request, if described server Find described micro services example, perform the task that described micro services example is corresponding, and the execution result of described task is fed back To terminal, if described server does not find described micro services example, then in described server, search described micro services, right Scripted code corresponding to described micro services is compiled, if there is mistake in the process of described compiling, and cannot to described terminal feedback Call the information of micro services, otherwise, perform the task that newly-generated micro services example is corresponding, and by anti-for the execution result of this task It is fed to terminal.
Seeing Fig. 4, the various micro services (such as, micro services A in Fig. 4, micro services B etc.) in server are by developer At line development.After server receives call request, call micro services according to solicited message and (as shown in Figure 4, can call individually A micro services, it is also possible to call two or more micro services, such as, according to certain rule invocation micro services A and micro- Service B, this method of calling is equivalent to have invoked new micro services F), after micro services completes preset function, will perform The result of task feeds back to terminal, and during feedback, the approach of information transmission can be packed by gateway, passes from socket The defeated transmission means being converted to http.During micro services is called, single micro services can be called, meanwhile, New micro services can be generated with independent assortment between micro services.
Further, described step S1 includes:
S11: the first call request calling micro services is sent to gateway, so that described gateway is micro-according to obtain in advance Service list judges whether described micro services exists, and if so, performs step S12, and otherwise, gateway is to micro services described in terminal feedback Non-existent information;
S12: gateway is according to described micro services list, it is judged that currently whether there is at least one effective node for by described First call request routes to server, is if so, that described micro services selects node;Otherwise, gateway does not exists to terminal feedback For calling the information of the node of described micro services.
Further, also included before described step S1:
Terminal obtains the identity information of user, it is judged that described identity information is the most correct, if so, sends authentication and passes through Information so that described user is after authentication is passed through, by described terminal to described gateway send described first call please Ask, otherwise, send the information that authentication is failed.
On the other hand, Fig. 2 is the dynamic micro services calling device structure of the multilingual cloud compiling that the embodiment of the present invention provides Block diagram.Seeing Fig. 2, the dynamic micro services calling device 20 of multilingual cloud compiling includes that the first sending module 21, second sends mould Block 22 and display module 23.
First sending module 21, for the first call request calling micro services is sent to gateway, so that described gateway Micro services list according to obtaining in advance judges whether described micro services exists, and is if so, that described micro services selects node;
Second sending module 22, is used for making gateway, according to described node, described first call request be routed to server, So that described server performs corresponding task according to described first call request, and the result of described tasks carrying is fed back to Terminal;
Display module 23, for making terminal that the result of the described server feedback received is shown to user;
Wherein, described micro services list describes the information of the micro services in described server;Described micro services is one section Scripted code, is compiled described scripted code forming the micro services example being capable of preset function.
It should be noted that the device in the present invention refers to terminal (such as, the web browser of user computer).
The dynamic micro services calling device 20 of the multilingual cloud compiling that the present invention provides, the first sending module 21 will in terminal The recalls information of micro services is sent to gateway by user, and gateway judges whether this micro services is present in server, if existing, This call request is routed to server by the second sending module 22, so that server performs corresponding appointing according to this call request Business, and the result of tasks carrying is fed back to terminal, display module 23 makes this execution result of terminal demonstration.Micro-due to call Service is independently of whole operation system, it is possible to realize a function point of preset function rather than whole operation system, because of This, operation system, upgrading or break down when, can realize pre-by calling currently available micro services If function, without calling whole operation system.The when of solving operation system escalation process or break down, pass through The business that this operation system completes also cannot be properly functioning problem.
Further, described second sending module includes:
Packaging unit, for being packaged as the second tune presetting under communication protocol by described gateway by described first call request With request;
First transmitting element, is used for making described gateway, according to described node, described second call request be routed to described clothes Business device, so that described server performs corresponding task according to described first call request, and by the result of described tasks carrying Feed back to terminal.
Further, described transmitting element is additionally operable to make described gateway according to described node by described second call request road By to described server, so that described server searches described micro services according to described second call request in described server Corresponding micro services example, if described whois lookup is to described micro services example, performs corresponding the appointing of described micro services example Business, and the execution result of described task is fed back to terminal, if described server does not find described micro services example, then exist Described server is searched described micro services, the scripted code that described micro services is corresponding is compiled, if the mistake of described compiling There is mistake in journey, cannot call the information of micro services to described terminal feedback, otherwise, perform newly-generated micro services example corresponding Task, and the execution result of this task is fed back to terminal.
Further, described first sending module includes:
Second transmitting element, for the first call request calling micro services is sent to gateway, so that described gateway root Judging whether described micro services exists according to the micro services list obtained in advance, if so, perform step S12, otherwise, gateway is to terminal Send the non-existent information of described micro services, so that non-existent for described micro services information is shown to user by described terminal;
Judging unit, is used for making gateway according to described micro services list, it is judged that currently whether there is at least one and effectively saves Point, for described first call request is routed to server, is if so, that described micro services selects node;Otherwise, gateway is to end There is not the information of the node for calling described micro services in end feedback.
Further, described first sending module be additionally operable to terminal by described first call request send to gateway it Before, make terminal obtain the identity information of user, it is judged that described identity information is the most correct, if so, sends what authentication was passed through Information, so that described user is after authentication is passed through, sends described first call request by described terminal to described gateway, Otherwise, the information that authentication is failed is sent.
As a kind of specific embodiment, the invoked procedure of micro services sees Fig. 3, multilingual dynamic micro services invoked procedure Schematic flow sheet, comprises the steps:
1) front end service system, initiates business service request call, is delivered to dynamic micro services API gateway.
2) according to request service parameter, user profile, it is judged that whether user identity has verified that.
3) if authentication has been passed through, then 5 are jumped to.
4) if authentication not over, then jump to 28.
5) according to request service parameter, it is judged that this dynamic micro services is the most registered in dynamic micro services framework.
6) if the dynamic micro services of this request has been registered, then 8 are jumped to.
7) if the dynamic micro services of this request is not registered, then 28 are jumped to.
8) judge this dynamic micro services in register list the most effectively, whether healthy, it is necessary to for effectively and at least One micro services node can use.
9) if this dynamic Service effectively and has enabled node, then 11 are jumped to.
10) if this dynamic Service is invalid or without enabled node, then jumps to 28.
11) a kind of load balance scheduling strategy is selected.
The load balancing of micro services, the following 6 kinds of modes of employing:
The most random
2. repeating query
3. Smallest connection number
4.CPU/ internal memory minimum utilization rate
5. the fastest response time
6, the weight that server configures is corresponding
Wherein Smallest connection number, CPU/ internal memory minimum utilization rate, fastest response time, the most each by bottom are micro- Service periodically reports micro services API gateway/integrated management scheduler, it is possible to quickly speed obtains from integrated management scheduler Get these values, from multiple available micro services nodes, select one optimal node, carry out next step request route.
12) by dynamic micro services request packaging, rest (Http) request is mainly packaged as micro services by packaging here Thrift (Socket) communication transport protocols required for inside, then routes to actual remotely micro services node.
13) solicited message of transmission packaging, interrupts if running into network or without response, then jumps to 8.
14) identifying according to micro services Hash, detection container internal memory has compiled this example of existence or micro services script Code changes.
15) if this dynamic micro services example has existed, then 17 are jumped to.
16) if this dynamic micro services example does not exists, then 24 are jumped to.
17) if this dynamic micro services example scripted code does not changes, then 19 are jumped to.
18) if this dynamic micro services example scripted code has occurred and that change is (when dynamic micro services scripted code occurs During change, former example lost efficacy, and new example produces, and produced when being here and use again, and never calls use and does not produces), then jump to 24.
19) dynamically micro services reads, from internal memory, the memory service example that location has compiled.
20) micro services dynamic script enforcement engine drives running example to run specified function method.
21) if performing abnormal or overtime, then jump to 22, then jump to 28.
22) asynchronous record running log & performance, time-consuming situation are called enumerator and are added 1, update last allocating time.
23) operation result returns dynamic micro services gateway.
24) from dynamic micro services script Nosql warehouse, scripted code is read.
25) scripted code is loaded into dynamic micro services script compiler engine.
26) load the outside relating module of dynamic micro services associated language and resource is compiled.
27) memory compiler byte is positioned over internal memory instantiation, then branches to 19.
28) terminate to return friendly information to front end caller.
Certainly, these micro services called are added to server before being in the following manner: see Fig. 5:
1) dynamic script code is added/edited to the micro services dividing out according to operation system online.The information added has: Micro services Chinese and English mark, permission minimax Service Instance number, micro services COS (CPU consumption-type/memory consumption Type), language (C#/VB.NET/JAVA/Python) used by micro services, micro services executive mode (synchronizing execution/asynchronous queue), Micro services dynamic script code, time-out limit, dynamic retractility dilatation threshold value (CPU/ internal memory).
2) micro services English mark, service scenario code are carried out and carry out uniqueness Hash, generate 36 MD5 words Symbol string, it is possible to unique this micro services scripted code of mark.Uniqueness Hash information except there being scripted code, English mark, also have Language, COS used.
3) judge NoSql script storage repository (Redis) has existed according to this micro services uniqueness cryptographic Hash.
4) if NoSql micro services scripted code storage repository does not exists, then 6 are jumped to.
5) if NoSql micro services scripted code storage repository exists, then 8 are jumped to.
6) select corresponding CompilerTools that script is compiled, if micro services scripted code does not compile grammer mistake By mistake, then micro services scripted code is saved in NoSql script storage repository.
7) if micro services scripted code has compiling syntax error, then 8 are jumped to
8) based on context point out operator, Already in NoSql script storage repository or compiling to there is grammer wrong By mistake or add and edit successfully, jump to 1, again add new micro services scripted code.
The scripted code of micro services as shown in Figure 6, is compiled by the interface of micro services editor by micro services by this interface Volume, and add the attribute information of micro services.Wherein, Fig. 7 shows the attribute classification of dynamic micro services.It will be appreciated that Dynamic script adds or after editor, the state (create, destroy or change) of micro services can be reported to gateway, certainly report to Also including the connection number of micro services in the data of gateway, Thread Count etc., referring specifically to Fig. 8.
As it is shown in figure 9, dynamically the API gateway of micro services describes the information of dynamic micro services, such as, the note of micro services Volume, the discovery of micro services, the authentication etc. of dynamic micro services, referring specifically to Fig. 9.
Figure 10 is the case structure chart of dynamic micro services, and micro services is stored in case, in case By multilingual dynamic script code compilation engine device and multilingual dynamic script code execution engine device, micro services is entered Row instantiation.These micro services are stored in multilingual dynamic script storage repository.
For these micro services, it is also possible to be extended by the way of as shown in figure 11.As shown in figure 11,
1) from dynamic micro services integrated management scheduler, registered the most dynamically micro services list is obtained.Micro services arranges The structure of table is as shown in figure 15.
2) obtain this micro services Servers-all health status, report before health indicator state.
Each dynamic micro services, according to system configuration timing report micro services data to micro services integrated management dispatch in The heart, the data reported have following 12 kinds:
1.CPU utilization rate
2. memory usage
3. number of threads
4.TCP connects number
5. execution journal
6. response time
7.IO situation
8. garbage reclamation GC situation
Whether 9.TCP port status (connects)
10. the establishment of micro services
The destruction of 11. micro services
The version change of 12. micro services
3) dynamic micro services type is judged
4) if CPU consumption-type, then 6 are jumped to.
5) if memory consumption type, then 9 are jumped to.
6) judge whether CPU usage exceedes configured maximum average value (all example cpu busy percentages of this micro services Meansigma methods).
7) if CPU usage alreadys more than configured maximum average value, then 12 are jumped to.
8) if CPU usage is not above configured maximum average value, then 14 are jumped to.
9) (all example internal memories of this micro services utilize to judge whether exceed configured maximum average value by memory usage Rate meansigma methods).
10) if memory usage alreadys more than configured maximum average value, then 12 are jumped to.
11) if memory usage is not above configured maximum average value, then 18 are jumped to.
12) micro services carries out the extension of non-obstruction micro services example dynamic replication, and (needs get out enough available physical Machine, extension maximum quantity and increment are according to configuration).
13) it is again started up detection according to the configuration rest appointment time, jumps to 1.
14) judge that whether CPU usage is less than minimum average B configuration value.
15) if CPU usage is less than minimum average B configuration value, 21 are jumped to.
16) if CPU usage is higher than minimum average B configuration value, 13 are jumped to.
17) reduce dynamic microserver example (quantity of minimizing is according to configuration), jump to 13.
18) judge that whether memory usage is less than minimum average B configuration value.
19) if memory usage is less than minimum average B configuration value, 24 are jumped to.
20) if internal memory uses no higher than minimum average B configuration value, 13 are jumped to.
21) judge that CPU usage is less than minimum average B configuration value and continuously beyond specifying the persistent period.
22) if CPU usage has exceeded the appointment persistent period less than minimum average B configuration value, 17 are jumped to.
23) if CPU usage is less than minimum average B configuration value continuously without departing from specifying the persistent period, 13 are jumped to.
24) judge that memory usage is less than minimum average B configuration value and continuously beyond specifying the persistent period.
25) if memory usage has exceeded the appointment persistent period less than minimum average B configuration value, 17 are jumped to.
26) if memory usage is less than minimum average B configuration value continuously without departing from specifying the persistent period, 13 are jumped to.
27) 13 are jumped to.
Figure 12 is the deployment/distribution/flexible schematic diagram of dynamic micro services, needs micro services (such as Figure 12 when detecting In micro services A, micro services B and micro services C) carry out replicate dilatation time, directly this micro services is copied to other server, with There is provided and more can call micro services.Figure 13 is the Container Management device of micro services, by the detection module in this device, duplication The dilatation of micro services is controlled by modules etc..
Figure 14 is the population structure module diagram of the micro services that the present invention provides, by the modules in this module it Between cooperation jointly complete the calling of micro services, edit and the process of dilatation.
The multilingual cloud compiling that the present invention provides realizes dynamic micro services technology, is that each service of system is mapped It is one section of dynamic script code, it can be translated into executable code at remote server dynamic micro services cloud compiler engine and place In the middle of internal memory (this section of code can be write with common programming language C#, VB.NET, JAVA, Python etc.), when calling Can be routed in the dynamic micro services of this server run according to routing algorithm, with functional module in this solution system it Between coupling problem, improve software reuse, reduce code complexity.Make system development phase each module function more Clearly, the coupling between functional module is the loosest, allows system have more extensibility, maintainability, O&M, and then significantly The development cost of reduction project and cost.
The solution of the present invention uses the compiling of multilingual cloud to realize dynamic micro services architecture, can make each micro services merit Module can have bigger independence, be relatively independent between each micro services, exploitation can be completely independent, independently dispose, Independent operating, independent O&M, be conducive to improving concurrency and the efficiency of exploitation during large-scale software development, improve and improve Software system testability and maintainability.
The invention is not limited in this kind of language used by application software, it is possible to achieve C#, VB.NET, JAVA, Python is in line development, compiled online, automatically compiling, automatic deployment, it is not necessary to as traditional approach, needs to use under line to open Feel like jelly part VisualStudio, Eclipse, Sublime develops in computer this locality, compiles.
Micro services API gateway/integrated management scheduler, is responsible for the registration of dynamic micro services, discovery, load balancing, identity Checking, health collect, current limliting, request route.The existence of micro services API gateway, is effectively connected to micro services inside and outside Front-end business page rendering, shields the complexity of backstage micro services, and change and the upgrading of the indivedual micro services in backstage will not be to micro- Service API gateway and client have any impact.
Dynamically micro services is when creating example and starting, and can be registered to micro-by the address information of micro services and reporting port information Service API gateway integrated management scheduler.So front-end business when calling dynamic micro services it is known that micro services institute In position, by request according to set load balancing, it is routed to real micro services destination address.
Utilizing the compiling of multilingual cloud to realize dynamic micro services system, every micro services all uses minimum coupling to process, Different experts and team are responsible for developing different modules, and each micro services is absorbed in something, sharpness of border and being isolated from each other, exploitation Person can develop on Express Order Wire, integrated, test, dispose, complete independently reaches the standard grade deployment flow process, be independent of each other to each other.Realize Fast and flexible agile development, effectively minimizing O&M cost and management cost, raising development efficiency.
Utilize the compiling of multilingual cloud to realize dynamic micro services system, software developer can be made with the phychology of product and angle Degree does micro services, makes developer constantly emphasize the importance of providing quality services, improves service quality.
Utilize the compiling of multilingual cloud to realize dynamic micro services system, supporting business Rapid Variable Design, be quickly to melt between service Close, it is achieved by multiple dynamic micro services according to the demand of business, carry out organically, assemble flexibly and layout, to adapt to meet The customer personalized service logic demand of sharp increase, it is also possible to effectively merge and reduce client request interaction times, simplification visitor Family end size of code, further raising systematic function and development efficiency.
Utilize the compiling of multilingual cloud to realize dynamic micro services system, can hand over the exploitation of micro services to third company, Improve the cooperation in industry, reach the purpose having complementary advantages.Micro services, after exploitation completes, the most also can be adjusted by other system With, it is fully able to improve the reusability of micro services.
Utilize the compiling of multilingual cloud to realize dynamic micro services system, be conducive in large scope software systems development process, Enable development teams to carry out parallel, improve efficiency and the quality of exploitation.And during exploitation and debugging, when the most in incognito Business generation problem when, other micro services can't be had influence on, be beneficial to software test, map out the work carry out and enter OK.
Utilize the compiling of multilingual cloud to realize dynamic micro services system, system can be made can dynamically to replace at run time Micro services assembly, causes new behavior according to change or some condition of running environment, improves software system oneself dynamically Adaptability.
The compiling of multilingual cloud is utilized to realize dynamic micro services system, can be in line development micro services, compiled online, adjust online Examination, can dispose immediately after micro services exploitation compiling, directly invoke for software system.
Utilize the compiling of multilingual cloud to realize dynamic micro services system, micro services can be repaired online, it is achieved micro services fast Speed upgrading extension or replacement, make the deployment of micro services heat, dynamic pluggable.Micro services multi version can be realized, it is achieved operation system Gray scale is upgraded, service degradation, service distributed tracking etc..
Utilizing the compiling of multilingual cloud to realize dynamic micro services system, the example after micro services being compiled is positioned over proceeding internal memory In, rear end all uses Thrift (Socket) to communicate, and convenient and efficient just as direct reference object, minimizing network prolongs Late, improve the handling capacity of system, and system have synchronization, asynchronous (the non-obstruction of queue), the most multiple call processing mode, enter one Step improves Consumer's Experience.
Utilize the compiling of multilingual cloud to realize dynamic micro services system, development teams may be made easily to attempt technological innovation, with Platform is unrelated, language is unrelated, supports multilingual (C#/VB.NET/JAVA/Python), can select to be possible not only to use existing system Language development used by system, it is also possible to develop cross-platform operation with other Languages.
Utilizing the compiling of multilingual cloud to realize dynamic micro services system, system stability strengthens, and the inefficacy of single service will not Affect other services, can to a certain degree realize service degradation, without allowing whole system paralyse.
Utilize the compiling of multilingual cloud to realize dynamic micro services system, can immediately see each micro services with visual control Per minute/per hour/every day has calling of how many times, and by which calling service, each time point called is how many, performs Performance and state how.When micro services goes wrong, instant note/QQ/ mail is reported to the police, it is possible to supervised by error tracking Ore-controlling Role can quickly position abnormal information.Additionally system supports distinctive applicationContext context, Ke Yicong Client asks end to do whole process and calls chain type and dependence tracking.
Utilizing the compiling of multilingual cloud to realize dynamic micro services system, same micro services example provides multiple versions, when newly When the version issued goes wrong or be unstable, a micro services version can be immediately switched to, it is achieved micro services version is fast Speed rollback rollback.
The compiling of multilingual cloud is utilized to realize dynamic micro services system, it is easy to extend system by setting up new micro services Service logic.When adding new micro services in system, it is not necessary to on-demand to system merit on the premise of recompilating original system Can expand, thus quickly customer in response individual demand change.
The compiling of multilingual cloud is utilized to realize dynamic micro services system, can be with by the service logic of dynamically online extension Time be deployed on multiple servers, it is achieved the load balancing of automatization's service logic, extending transversely and distributed deployment, thus suitable Answer multi-user, high concurrent request.
It should be noted that build the compiling of multilingual cloud to realize dynamic micro services, increase system can be extended dynamically Function.When finding that current system can not meet current demand, it is only necessary to one corresponding dynamic script of online increase, do not stop In the case of only existing system runs, existing module is carried out online Function Extension or supplements, and need not again online under Exploitation, structure whole system redeploys again, thus realizes quick operation expanding exploitation, immediately meets customer personalized customization Demand.
The compiling of multilingual cloud realizes dynamic micro services and provides good platform for extension during running software, and business is moved The instruction set of state script logic can support common languages (C#/VB.NET/JAVA/Python), and CompilerTools passes through framework Can generate the object identification code of low-level instructions, the scripted code required for whole system is dynamically compiled into height when running first The source code of effect, and it is positioned among internal memory, substantially increase the execution speed of system.
In terms of architecture, traditional software architecture is unfavorable for the exploitation of large-scale clustered, disposes, to the modern times The development of software industry causes restriction greatly.Use the compiling of multilingual cloud to realize dynamic micro services architecture, can make Each functional module has bigger independence, improves testability and the maintainability of software.With traditional software architecture Structure is compared, in the architecture of this micro services so that and be relatively independent between the micro services of each new extension, this Making the simple in construction of calling program, each several part can be completely independent exploitation, independent deployment, independent operating, is conducive to the softest Part development process improves concurrency and the efficiency of exploitation.
The compiling of multilingual cloud realizes powerful extensibility and the assembleability that dynamic micro services provides, and is exactly based on the most micro- Service is extended so that it constantly develops just as the tree root of one tree, thus imparting system functional module is unlimited Extensibility so that system can constantly go to meet new demand.
The compiling of multilingual cloud realizes dynamic micro services, and it allows the relation of self defining programm code execution sequence and execution to patrol Volume, each dynamic scalable script can individually online programming debugging, upgrade maintenance, configuration, can the most dynamically compile Translate, install, be loaded into, run, stop, enabling, disable, unload, neither affect the work of other existing micro services functional module, again There is great motility.
The invention is not limited in this kind of language used by application software, it is possible to achieve .Net, VB.NET, Java, Python compiled online services, it is not necessary to as traditional approach, uses exploitation software Visual Studio or Eclipse at electricity Brain this locality is developed, but direct-on-line exploitation, online on-the-flier compiler, realizes compiling and i.e. services and to pass through spare interface dynamic Incision current system, it is achieved the Quick Extended of original function.
It is forming types based on SOA/ESB/MicroService that the compiling of multilingual cloud realizes dynamic micro services, such Dynamic expansion can also be fused to teleaction service interface or add the place that you need to extend to by directly transplanting, different dynamic expansions Between exhibition, can call mutually, it is also possible to call other interface outside, thus construct compound dynamic micro services assembly, make More flexible and changeable.
It is that the function in software development is segmented that the compiling of multilingual cloud realizes dynamic micro services, makes developer can use not With language at line development, Dynamical Deployment, the scheme of dynamic operation, write reducing duplicated code, then running in system needs Time compile, load, when running, this set frame system can improve the programming idea of development efficiency.
The compiling of multilingual cloud realizes dynamic micro services, and this micro services even can give third company's exploitation, improves Cooperation in industry, reaches the purpose having complementary advantages.After exploitation completes, micro-script function also can be adjusted by other programming systems With, the reusability of software can be improved.
Be conducive to during large-scale software development, enable exploitation to carry out parallel, improve efficiency and the quality of exploitation. And during exploitation and debugging, when part micro services dynamic script generation problem when, owing to each micro services is dynamic Between script relatively independent, other micro services can't be had influence on, be beneficial to carrying out and carrying out of Experience of Software Testing Work, it is simple to Testing and pinpointing the problems during debugging solution problem.It addition, the amendment to part micro services dynamic script, do not interfere with To other micro services dynamic scripts, it is to avoid draw the situation of new problem because of righting a wrong, and system is at run time Can dynamically replace micro services assembly, cause new behavior according to change or some condition of running environment, thus dynamically Improve software system adaptivity.
Compared with prior art, technical scheme disclosed by the invention has the advantage that
1) immediately come into force: owing to micro services is burst at the seams exploitation, compiled online, so can be immediately generated in incognito after exploitation compiling Business, the micro services after can developing can be called the most immediately, it is not necessary to developer recompilates, and redeploys system;
2) code maintainability is strengthened: micro services code is at line development, on-line debugging, on-line operation, if encountered problems, Can repair micro services online, quickly upgrading extends or replaces micro services, enables or disable micro services, it is achieved micro services dynamically may be used Plug.
3) micro services can reduce the complexity of business, forces you to remove classifying rationally system boundary, appropriate design domain model, The cycle making iteration is shorter, can be with multi version, and gray scale is upgraded, service degradation, service distributed tracking etc..
4) reuse of code is high: micro services dynamic script is embodied as independent function point each aspect, between function point It is loosely-coupled.Loosely-coupled realization generally means that more preferable code reusability, and its shifting can be worth other system In directly invoke, thus reduce development cost and the difficulty of software, primary development, micro services can be called anywhere (remotely/local).
5) performance is high: based on context micro services system calls needs, is immediately compiled by script, the example after compiling It is positioned in internal memory, convenient and efficiently just as direct reference object, and have synchronization, asynchronous (the non-obstruction of queue), timing the most Plant and call processing mode.
6) polyglot support: micro services, for application system, if needing extension to add new function, is possible not only to use Existing language development, it is also possible to develop with other Languages, and can cross-platform run.
7) be easily managed: each micro services developer can individually develop, integrated, test, dispose, complete stream of reaching the standard grade Journey, effectively reduces O&M cost and management cost, improves development efficiency.
8) technological innovation: micro services easily attempts technological innovation, the most each Function Extension point micro services can use Different programming languages is write.
9) stability strengthens: system stability strengthens, and the inefficacy of single micro services does not interferes with other micro services, Ke Yiyi Determine degree and realize service degradation.
10) it is prone to exploitation: each micro services uses minimum coupling to process, by the thinnest for the module in system Being melted into different micro services, reduce the degree of coupling between module, different experts and team are responsible for developing different modules, each other Between be independent of each other.Realize quick agile development.
11) code set should be readily appreciated that.Micro services system is used to be focused on by nonexpondable for needs public code Realizing at one, the amendment scope of such code can be obtained by strict control, reduces the code revision shadow to system stability Ring, reduce redundancy and the degree of coupling of code, strengthen readability, improve software quality, solve OOP cross-module The code confusion caused and code scattering problem.
12) distributed: micro services realizes the service logic of the most online extension can be deployed to multiple servers simultaneously On, it is achieved the load balancing of micro services service logic is extending transversely and distributed deployment, thus adapts to multi-user, height and concurrently please Ask.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for the skill of this area For art personnel, the present invention can have various modifications and variations.All within the spirit and principles in the present invention, that is made any repaiies Change, equivalent, improvement etc., should be included within the scope of the present invention.

Claims (10)

1. the dynamic micro services call method of a multilingual cloud compiling, it is characterised in that including:
S1: the first call request calling micro services is sent to gateway, so that described gateway is according to the micro services obtained in advance List judges whether described micro services exists, and is if so, that described micro services selects node;
Described first call request is routed to server according to described node by S2: gateway, so that described server is according to described First call request performs corresponding task, and the result of described tasks carrying is fed back to terminal;
S3: terminal will receive the result of the described tasks carrying of described server feedback;
Wherein, described micro services list describes the information of the micro services in described server;Described micro services is one section of script Code, is compiled described scripted code forming the micro services example being capable of preset function.
Method the most according to claim 1, it is characterised in that described step S2 includes:
Described first call request is packaged as presetting the second call request under communication protocol by S21: described gateway;
Described second call request is routed to described server according to described node by S22: described gateway, so that described server Perform corresponding task according to described first call request, and the result of described tasks carrying is fed back to terminal.
Method the most according to claim 2, it is characterised in that described step S22 specifically includes:
Described second call request is routed to described server according to described node by described gateway so that described server according to Described second call request searches the micro services example that described micro services is corresponding in described server, if described whois lookup To described micro services example, perform the task that described micro services example is corresponding, and the execution result of described task is fed back to end End, if described server does not find described micro services example, then searches described micro services, to described in described server Scripted code corresponding to micro services is compiled, if mistake occurs in the process of described compiling, cannot call to described terminal feedback The information of micro services, otherwise, performs the task that newly-generated micro services example is corresponding, and the execution result of this task is fed back to Terminal.
Method the most according to claim 1, it is characterised in that described step S1 includes:
S11: the first call request calling micro services is sent to gateway, so that described gateway is according to the micro services obtained in advance List judges whether described micro services exists, and if so, performs step S12, and otherwise, gateway is not deposited to micro services described in terminal feedback Information;
S12: gateway is according to described micro services list, it is judged that currently whether there is at least one effective node for by described first Call request routes to server, is if so, that described micro services selects node;Otherwise, gateway does not exist to terminal feedback and is used for Call the information of the node of described micro services.
Method the most according to claim 1, it is characterised in that also included before described step S1:
Terminal obtains the identity information of user, it is judged that described identity information is the most correct, if so, sends the letter that authentication is passed through Breath, so that described user is after authentication is passed through, sends described first call request by described terminal to described gateway, no Then, the information that authentication is failed is sent.
6. the dynamic micro services calling device of a multilingual cloud compiling, it is characterised in that including:
First sending module, for sending the first call request calling micro services to gateway, so that described gateway is according to pre- The micro services list first obtained judges whether described micro services exists, and is if so, that described micro services selects node;
Second sending module, is used for making gateway, according to described node, described first call request be routed to server, so that institute State server and perform corresponding task according to described first call request, and the result of described tasks carrying is fed back to terminal;
Receiver module, for making the result of the described tasks carrying of the terminal described server feedback of reception;
Wherein, described micro services list describes the information of the micro services in described server;Described micro services is one section of script Code, is compiled described scripted code forming the micro services example being capable of preset function.
Device the most according to claim 6, it is characterised in that described second sending module includes:
Packaging unit, second for described first call request being packaged as by described gateway under default communication protocol calls please Ask;
First transmitting element, is used for making described gateway, according to described node, described second call request be routed to described service Device, so that described server performs corresponding task according to described first call request, and by anti-for the result of described tasks carrying It is fed to terminal.
Device the most according to claim 7, it is characterised in that described transmitting element is additionally operable to make described gateway according to described Described second call request is routed to described server by node so that described server according to described second call request in institute State and server is searched the micro services example that described micro services is corresponding, if described whois lookup is to described micro services example, hold The task that the described micro services example of row is corresponding, and the execution result of described task is fed back to terminal, if described server does not has Find described micro services example, then in described server, search described micro services, the script generation corresponding to described micro services Code is compiled, if mistake occurs in the process of described compiling, cannot call the information of micro services to described terminal feedback, otherwise, Perform the task that newly-generated micro services example is corresponding, and the execution result of this task is fed back to terminal.
Device the most according to claim 6, it is characterised in that described first sending module includes:
Second transmitting element, for sending the first call request calling micro services to gateway, so that described gateway is according to pre- The micro services list first obtained judges whether described micro services exists, and if so, performs step S12, and otherwise, gateway is to terminal feedback The non-existent information of described micro services;
Judging unit, is used for making gateway according to described micro services list, it is judged that currently whether there is at least one effective node and uses In described first call request is routed to server, if so, it is that described micro services selects node;Otherwise, gateway is anti-to terminal There is not the information of the node for calling described micro services in feedback.
Device the most according to claim 6, it is characterised in that be additionally operable to institute in terminal at described first sending module State the first call request to send before gateway, make terminal obtain the identity information of user, it is judged that described identity information is the most just Really, if so, send the information that authentication is passed through, so that described user is after authentication is passed through, by described terminal to institute State gateway and send described first call request, otherwise, send the information that authentication is failed.
CN201610599724.1A 2016-07-26 2016-07-26 The dynamic micro services call method of a kind of multilingual cloud compiling and device Pending CN106227611A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610599724.1A CN106227611A (en) 2016-07-26 2016-07-26 The dynamic micro services call method of a kind of multilingual cloud compiling and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610599724.1A CN106227611A (en) 2016-07-26 2016-07-26 The dynamic micro services call method of a kind of multilingual cloud compiling and device

Publications (1)

Publication Number Publication Date
CN106227611A true CN106227611A (en) 2016-12-14

Family

ID=57534406

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610599724.1A Pending CN106227611A (en) 2016-07-26 2016-07-26 The dynamic micro services call method of a kind of multilingual cloud compiling and device

Country Status (1)

Country Link
CN (1) CN106227611A (en)

Cited By (38)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106533805A (en) * 2016-12-23 2017-03-22 郑州云海信息技术有限公司 Micro-service request processing method, micro-service controller and micro-service architecture
CN106656604A (en) * 2016-12-23 2017-05-10 郑州云海信息技术有限公司 Microservice request management method, microservice controller and high-concurrence microservice architecture
CN107239308A (en) * 2017-06-05 2017-10-10 广东西奥物联网科技股份有限公司 A kind of calling function realization method and system of browser
CN107770243A (en) * 2017-09-06 2018-03-06 北京奥鹏远程教育中心有限公司 From extension, adaptive micro services platform and its application process
CN107819861A (en) * 2017-11-16 2018-03-20 中国银行股份有限公司 Business data processing method, apparatus and system
CN107870845A (en) * 2017-10-19 2018-04-03 北京工业大数据创新中心有限公司 Towards the management method and system of micro services framework applications
CN107888681A (en) * 2017-11-09 2018-04-06 北京中电普华信息技术有限公司 A kind of business flow processing method and device
CN108173911A (en) * 2017-12-18 2018-06-15 中国科学院声学研究所 A kind of micro services fault detect processing method and processing device
CN108881390A (en) * 2018-05-18 2018-11-23 深圳壹账通智能科技有限公司 the cloud platform deployment method, device and equipment of electronic account service
CN109034743A (en) * 2018-07-20 2018-12-18 中软信息系统工程有限公司 Crowd's wound development approach, system and device
CN109062940A (en) * 2018-06-20 2018-12-21 北京爱蜂科技有限公司 A kind of multi-mode transaction realizing system and method based on micro services framework
CN109582471A (en) * 2017-09-29 2019-04-05 西门子公司 Information processing method, device and system
CN110058864A (en) * 2019-04-18 2019-07-26 成都四方伟业软件股份有限公司 The dispositions method and device of micro services
CN110083455A (en) * 2019-05-07 2019-08-02 网易(杭州)网络有限公司 Figure computation processing method, device, medium and electronic equipment
CN110162414A (en) * 2019-02-01 2019-08-23 腾讯科技(深圳)有限公司 The method and device of artificial intelligence service is realized based on micro services framework
CN110460647A (en) * 2019-07-23 2019-11-15 平安科技(深圳)有限公司 Dispatching method, device, electronic equipment and the storage medium of network node
CN110602043A (en) * 2019-08-08 2019-12-20 中腾信金融信息服务(上海)有限公司 API gateway implementation system and method for mobile application
CN110837386A (en) * 2019-11-08 2020-02-25 神州数码融信软件有限公司 Micro-service architecture flexible upgrading method
CN110943851A (en) * 2018-09-25 2020-03-31 中国移动通信集团广东有限公司 Alarm processing method and device based on micro-service and electronic equipment
CN110993090A (en) * 2019-09-09 2020-04-10 上海联影智能医疗科技有限公司 Method and apparatus for enhancing sensor-related functions
CN111124692A (en) * 2020-01-02 2020-05-08 神州数码融信软件有限公司 Service request processing system
CN111177008A (en) * 2019-12-31 2020-05-19 京东数字科技控股有限公司 Data processing method and device, electronic equipment and computer storage medium
CN111240910A (en) * 2020-01-02 2020-06-05 北京航天测控技术有限公司 Equipment health management micro-service generation method, device, equipment and readable medium
CN111341445A (en) * 2020-02-05 2020-06-26 网宿科技股份有限公司 Health detection method and health detection system of micro-service call chain
CN111708646A (en) * 2020-06-16 2020-09-25 中国建设银行股份有限公司 Method, device and system for realizing front-end service platform and storage medium
CN111866157A (en) * 2020-07-28 2020-10-30 中国银行股份有限公司 Cloud service gateway and cloud service internal and external request format conversion method
CN112134721A (en) * 2020-08-17 2020-12-25 福建天泉教育科技有限公司 API gateway degradation method and terminal
CN112333096A (en) * 2020-10-16 2021-02-05 济南浪潮数据技术有限公司 Micro-service traffic scheduling method and related components
CN112698970A (en) * 2020-12-31 2021-04-23 北京千方科技股份有限公司 Service calling method and device for micro-service architecture and computer storage medium
CN112702211A (en) * 2020-12-30 2021-04-23 浪潮云信息技术股份公司 Network service grid system based on Kubernetes
CN112751847A (en) * 2020-12-28 2021-05-04 深圳市优必选科技股份有限公司 Interface call request processing method and device, electronic equipment and storage medium
CN112995324A (en) * 2021-03-10 2021-06-18 中国民航信息网络股份有限公司 Service calling method, device, computer readable medium and equipment
CN113065785A (en) * 2021-04-13 2021-07-02 国网江苏省电力有限公司信息通信分公司 Dynamic resource expansion method for electric power internet of things management platform
CN114676079A (en) * 2020-12-24 2022-06-28 株式会社日立制作所 Information processing system and data arrangement method in information processing system
CN114895879A (en) * 2022-07-14 2022-08-12 四川航天信息有限公司 Management system design scheme determining method, device, equipment and storage medium
CN115190158A (en) * 2021-03-22 2022-10-14 北京小米移动软件有限公司 Information interaction method, information interaction device, information interaction system and storage medium
US11714638B2 (en) 2019-09-18 2023-08-01 International Business Machines Corporation Availability level-based service management
US12008363B1 (en) 2021-07-14 2024-06-11 International Business Machines Corporation Delivering portions of source code based on a stacked-layer framework

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104935484A (en) * 2015-05-28 2015-09-23 北京海尔广科数字技术有限公司 Method and apparatus for calling appliance service via gateways
CN105515759A (en) * 2015-11-27 2016-04-20 国网信息通信产业集团有限公司 Micro service registration method and micro service registration system
CN105577780A (en) * 2015-12-21 2016-05-11 武汉理工大学 College teaching cloud platform based on micro services

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104935484A (en) * 2015-05-28 2015-09-23 北京海尔广科数字技术有限公司 Method and apparatus for calling appliance service via gateways
CN105515759A (en) * 2015-11-27 2016-04-20 国网信息通信产业集团有限公司 Micro service registration method and micro service registration system
CN105577780A (en) * 2015-12-21 2016-05-11 武汉理工大学 College teaching cloud platform based on micro services

Cited By (55)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106656604A (en) * 2016-12-23 2017-05-10 郑州云海信息技术有限公司 Microservice request management method, microservice controller and high-concurrence microservice architecture
CN106533805B (en) * 2016-12-23 2020-02-04 苏州浪潮智能科技有限公司 Micro-service request processing method, micro-service controller and micro-service architecture
CN106533805A (en) * 2016-12-23 2017-03-22 郑州云海信息技术有限公司 Micro-service request processing method, micro-service controller and micro-service architecture
CN107239308A (en) * 2017-06-05 2017-10-10 广东西奥物联网科技股份有限公司 A kind of calling function realization method and system of browser
CN107239308B (en) * 2017-06-05 2021-02-26 广东西奥物联网科技股份有限公司 Method and system for realizing calling function of browser
CN107770243A (en) * 2017-09-06 2018-03-06 北京奥鹏远程教育中心有限公司 From extension, adaptive micro services platform and its application process
CN109582471A (en) * 2017-09-29 2019-04-05 西门子公司 Information processing method, device and system
US10986192B2 (en) 2017-09-29 2021-04-20 Siemens Aktiengesellschaft Information processing method, apparatus, and system
CN107870845A (en) * 2017-10-19 2018-04-03 北京工业大数据创新中心有限公司 Towards the management method and system of micro services framework applications
CN107888681A (en) * 2017-11-09 2018-04-06 北京中电普华信息技术有限公司 A kind of business flow processing method and device
CN107819861A (en) * 2017-11-16 2018-03-20 中国银行股份有限公司 Business data processing method, apparatus and system
CN108173911A (en) * 2017-12-18 2018-06-15 中国科学院声学研究所 A kind of micro services fault detect processing method and processing device
CN108173911B (en) * 2017-12-18 2020-08-21 中国科学院声学研究所 Micro-service fault detection processing method and device
CN108881390A (en) * 2018-05-18 2018-11-23 深圳壹账通智能科技有限公司 the cloud platform deployment method, device and equipment of electronic account service
CN109062940A (en) * 2018-06-20 2018-12-21 北京爱蜂科技有限公司 A kind of multi-mode transaction realizing system and method based on micro services framework
CN109034743A (en) * 2018-07-20 2018-12-18 中软信息系统工程有限公司 Crowd's wound development approach, system and device
CN110943851A (en) * 2018-09-25 2020-03-31 中国移动通信集团广东有限公司 Alarm processing method and device based on micro-service and electronic equipment
CN110162414A (en) * 2019-02-01 2019-08-23 腾讯科技(深圳)有限公司 The method and device of artificial intelligence service is realized based on micro services framework
CN110162414B (en) * 2019-02-01 2024-01-30 腾讯科技(深圳)有限公司 Method and device for realizing artificial intelligent service based on micro-service architecture
CN110058864B (en) * 2019-04-18 2023-08-22 成都四方伟业软件股份有限公司 Micro-service deployment method and device
CN110058864A (en) * 2019-04-18 2019-07-26 成都四方伟业软件股份有限公司 The dispositions method and device of micro services
CN110083455B (en) * 2019-05-07 2022-07-12 网易(杭州)网络有限公司 Graph calculation processing method, graph calculation processing device, graph calculation processing medium and electronic equipment
CN110083455A (en) * 2019-05-07 2019-08-02 网易(杭州)网络有限公司 Figure computation processing method, device, medium and electronic equipment
CN110460647B (en) * 2019-07-23 2021-10-22 平安科技(深圳)有限公司 Network node scheduling method and device, electronic equipment and storage medium
CN110460647A (en) * 2019-07-23 2019-11-15 平安科技(深圳)有限公司 Dispatching method, device, electronic equipment and the storage medium of network node
CN110602043A (en) * 2019-08-08 2019-12-20 中腾信金融信息服务(上海)有限公司 API gateway implementation system and method for mobile application
CN110993090A (en) * 2019-09-09 2020-04-10 上海联影智能医疗科技有限公司 Method and apparatus for enhancing sensor-related functions
CN110993090B (en) * 2019-09-09 2023-06-27 上海联影智能医疗科技有限公司 Method and apparatus for enhancing sensor-related functionality
US11714638B2 (en) 2019-09-18 2023-08-01 International Business Machines Corporation Availability level-based service management
CN110837386A (en) * 2019-11-08 2020-02-25 神州数码融信软件有限公司 Micro-service architecture flexible upgrading method
CN111177008A (en) * 2019-12-31 2020-05-19 京东数字科技控股有限公司 Data processing method and device, electronic equipment and computer storage medium
CN111240910B (en) * 2020-01-02 2024-04-05 北京航天测控技术有限公司 Method, device, equipment and readable medium for generating equipment health management micro-service
CN111240910A (en) * 2020-01-02 2020-06-05 北京航天测控技术有限公司 Equipment health management micro-service generation method, device, equipment and readable medium
CN111124692B (en) * 2020-01-02 2023-05-12 神州数码融信软件有限公司 Service request processing system
CN111124692A (en) * 2020-01-02 2020-05-08 神州数码融信软件有限公司 Service request processing system
CN111341445B (en) * 2020-02-05 2024-04-16 网宿科技股份有限公司 Health detection method and health detection system for micro-service call chain
CN111341445A (en) * 2020-02-05 2020-06-26 网宿科技股份有限公司 Health detection method and health detection system of micro-service call chain
CN111708646A (en) * 2020-06-16 2020-09-25 中国建设银行股份有限公司 Method, device and system for realizing front-end service platform and storage medium
CN111866157B (en) * 2020-07-28 2022-09-23 中国银行股份有限公司 Cloud service gateway and cloud service internal and external request format conversion method
CN111866157A (en) * 2020-07-28 2020-10-30 中国银行股份有限公司 Cloud service gateway and cloud service internal and external request format conversion method
CN112134721A (en) * 2020-08-17 2020-12-25 福建天泉教育科技有限公司 API gateway degradation method and terminal
CN112134721B (en) * 2020-08-17 2023-01-10 福建天泉教育科技有限公司 API gateway degradation method and terminal
CN112333096A (en) * 2020-10-16 2021-02-05 济南浪潮数据技术有限公司 Micro-service traffic scheduling method and related components
CN114676079A (en) * 2020-12-24 2022-06-28 株式会社日立制作所 Information processing system and data arrangement method in information processing system
CN112751847A (en) * 2020-12-28 2021-05-04 深圳市优必选科技股份有限公司 Interface call request processing method and device, electronic equipment and storage medium
CN112702211A (en) * 2020-12-30 2021-04-23 浪潮云信息技术股份公司 Network service grid system based on Kubernetes
CN112702211B (en) * 2020-12-30 2022-06-24 浪潮云信息技术股份公司 Network service grid system based on Kubernetes
CN112698970A (en) * 2020-12-31 2021-04-23 北京千方科技股份有限公司 Service calling method and device for micro-service architecture and computer storage medium
CN112995324A (en) * 2021-03-10 2021-06-18 中国民航信息网络股份有限公司 Service calling method, device, computer readable medium and equipment
CN115190158A (en) * 2021-03-22 2022-10-14 北京小米移动软件有限公司 Information interaction method, information interaction device, information interaction system and storage medium
CN113065785B (en) * 2021-04-13 2024-02-20 国网江苏省电力有限公司信息通信分公司 Dynamic resource expansion method for electric power Internet of things management platform
CN113065785A (en) * 2021-04-13 2021-07-02 国网江苏省电力有限公司信息通信分公司 Dynamic resource expansion method for electric power internet of things management platform
US12008363B1 (en) 2021-07-14 2024-06-11 International Business Machines Corporation Delivering portions of source code based on a stacked-layer framework
CN114895879B (en) * 2022-07-14 2022-11-04 四川航天信息有限公司 Management system design scheme determining method, device, equipment and storage medium
CN114895879A (en) * 2022-07-14 2022-08-12 四川航天信息有限公司 Management system design scheme determining method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN106227611A (en) The dynamic micro services call method of a kind of multilingual cloud compiling and device
CN106227605B (en) A kind of the dynamic micro services expansion method and device of multilingual cloud compiling
CN106250199B (en) A kind of the dynamic micro services call method and device of multilingual cloud compiling
CN106293704B (en) Dynamic micro services edit methods, device and the server of multilingual cloud compiling
CN106250178B (en) The method that realization system dynamic function intercepts extension online is compiled by multilingual cloud
CN106293808B (en) The method and system of system function dynamic interception extension are realized in multilingual cloud compiling
CN106293863B (en) The method and system of system function dynamic expansion replacement are realized in multilingual cloud compiling
Granchelli et al. Towards recovering the software architecture of microservice-based systems
US7926051B2 (en) Automatic parallel non-dependent component deployment
US9075596B2 (en) Deployment
US8683433B2 (en) Adaptive change management in computer system landscapes
CN105022630B (en) A kind of assembly management system and assembly management method
US9542175B2 (en) Continuous deployment
US20150378718A1 (en) Systems, methods, and computer program products for a software build and load process using a compilation and deployment service
KR20080038350A (en) Component architecture
CN106250179A (en) The method that system dynamics function intercepts extension is realized by the compiling of multilingual cloud
CN104142825A (en) Method and system for modularization development of products
CN108563432A (en) Android application program componentization rapid development method through route configuration
US11068243B2 (en) Application stack builder based on node features
CN107103064A (en) Data statistical approach and device
CN106371881A (en) Method and system for updating program versions in servers
KR20210060203A (en) Apparatus and method for reconfiguring microservice architecture
CN102664952B (en) Method for managing and monitoring embedded equipment cluster
CN101980546A (en) Intelligent network platform, service execution method and method for analyzing service abnormality
CN111651169A (en) Block chain intelligent contract operation method and system based on web container

Legal Events

Date Code Title Description
C06 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: 20161214