CN107861715B - Service establishing system and method - Google Patents

Service establishing system and method Download PDF

Info

Publication number
CN107861715B
CN107861715B CN201711049683.XA CN201711049683A CN107861715B CN 107861715 B CN107861715 B CN 107861715B CN 201711049683 A CN201711049683 A CN 201711049683A CN 107861715 B CN107861715 B CN 107861715B
Authority
CN
China
Prior art keywords
service
module
plug
unit
core
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711049683.XA
Other languages
Chinese (zh)
Other versions
CN107861715A (en
Inventor
黄炎
高隆林
韩锋
王立建
孔凤囡
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shandong Civic Se Commercial Middleware Co ltd
Original Assignee
Shandong Civic Se Commercial Middleware Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shandong Civic Se Commercial Middleware Co ltd filed Critical Shandong Civic Se Commercial Middleware Co ltd
Priority to CN201711049683.XA priority Critical patent/CN107861715B/en
Publication of CN107861715A publication Critical patent/CN107861715A/en
Application granted granted Critical
Publication of CN107861715B publication Critical patent/CN107861715B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • G06F8/24Object-oriented
    • 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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons

Abstract

The invention discloses a service establishing system and a method thereof, wherein the system comprises a core service module, a plug-in module and a core control module; the core business module is used for providing a preset type of business template; the core control module is used for loading the core service module and the plug-in module to a target service demander; and the plug-in module is used for operating the service template loaded by the service demander. The service building system divides the corresponding functions in the service building process through the core service module, the plug-in module and the core control module, and each module is responsible for the corresponding service building function, so that the coupling between new services and software is reduced, the applicability of the service module is improved, and the technical problem of how to improve the applicability of the new services is solved to a certain extent. The service establishing method disclosed by the invention also solves the corresponding technical problem.

Description

Service establishing system and method
Technical Field
The invention relates to the technical field of software service modular design, in particular to a service building system and a method.
Background
In the application process of the software, new services are sometimes required to be added to the software.
An existing method for adding a new service to software is as follows: and packaging the new service into a module, and dynamically loading the module in software to further realize the addition of the new service to the software. For example, in the upgrading process of antivirus software, the virus library and the antivirus engine are upgraded only by the aid of the set upgrading module.
However, when an existing method for adding a new service to software is applied, the coupling between the module and the software is too high, for example, a module for upgrading antivirus software is only suitable for the antivirus software, but not suitable for other software, so that the applicability of the new service is low.
In summary, how to improve the applicability of new services is a problem that those skilled in the art are in urgent need to solve.
Disclosure of Invention
The invention aims to provide a service construction system which can solve the technical problem of improving the applicability of a new service to a certain extent. The invention also provides a service establishing method.
In order to achieve the above purpose, the invention provides the following technical scheme:
a business building system comprises a core business module, a plug-in module and a core control module;
the core service module is used for providing service templates of preset types;
the core control module is used for loading the core service module and the plug-in module to a target service demander;
and the plug-in module is used for operating the service template loaded by the service demander.
Preferably, the core service module includes a sequential streaming service unit, and the plug-in module includes a sequential plug-in unit;
the sequential streaming service unit is used for executing a single service event;
and the sequential plug-in unit is used for recording and/or modifying the corresponding sequential data stream when the sequential streaming service unit executes the single service event.
Preferably, the core service module includes an event type service unit, and the plug-in module includes an event plug-in unit;
the event type service unit is used for storing and/or managing and/or distributing a preset number of service events;
the event plug-in unit is used for generating and/or consuming single service events in the event type service unit.
Preferably, the core control module includes a concurrent service unit, and the plug-in module includes a concurrent plug-in unit;
the concurrent service unit is used for storing memory resources and thread resources; and a priority policy for providing allocation of the memory resources and the thread resources;
the concurrent plug-in unit is used for applying for memory resources or thread resources to the concurrent service unit according to the distribution priority strategy and carrying out corresponding concurrent data processing according to the applied resources; and the device is further configured to send the processed concurrent data to other service units except the concurrent service unit, so that the other service units perform corresponding operations on the processed concurrent data.
Preferably, the core service module comprises an object service unit, and the plug-in module comprises an object plug-in unit;
the object service unit is used for providing object resources, thread resources, allocation strategies and destruction strategies;
the object plug-in unit is used for distributing thread resources to the target object according to the distribution strategy; and the destruction device is also used for destroying the target object according to the destruction strategy.
Preferably, the core service module includes a servo unit;
the servo unit is used for processing and/or receiving miscellaneous services, wherein the miscellaneous services comprise data reading and writing, log reading and writing, a data custom structure, universal network connection support, memory file control and system resource monitoring.
Preferably, the core control module is further configured to receive data information sent by the core service module, and configure a corresponding operating environment on the target service demander according to the data information.
Preferably, the core control module is further configured to manage a loading state of the core service module and the plug-in module on the target service demander.
Preferably, the core control module is further configured to analyze a reason that the core service module and the plug-in module run incorrectly on the target service demander, and generate an error log class for performing corresponding field environment debugging.
Preferably, the core control module is further configured to perform uniform resource allocation on the system.
The invention also provides a service establishing method, which comprises the following steps:
determining a service template corresponding to a target service;
loading the service template to a target service demander;
and operating the service template so as to realize the target service on the target service demander.
In the service establishing system provided by the invention, a core service module is used for providing a preset type of service unit containing a corresponding service template; loading a core service module and a plug-in module to a target service demander by using a core control module; and operating the service template loaded by the target service demander by using the plug-in module so as to realize the corresponding service on the target service demander. Corresponding functions in the service building process are divided through the core service module, the plug-in module and the core control module, and each module is responsible for the corresponding service building function, so that the coupling between new services and software is reduced, and the applicability of the service module is improved. In summary, the service establishment system provided by the present invention solves the technical problem of how to improve the applicability of new services to a certain extent. The service establishing method provided by the invention also solves the corresponding technical problem.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a service composition system according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a service composition system implementing an event-based service according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a service composition system for implementing concurrent services according to an embodiment of the present invention;
fig. 4 is a flowchart of a service composition method according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a service composition system according to an embodiment of the present invention.
The service establishing system provided by the embodiment of the invention can comprise a core service module 101, a core control module 102 and a plug-in module 103;
a core service module 101, configured to provide a service template of a preset type;
the core control module 102 is used for loading the core service module 101 and the plug-in module 103 to a target service demander;
and the plug-in module 103 is used for operating the service template loaded by the service demander.
In practical application, the core service module is a module with an actual operation function, the type of the service template provided by the core service module can be determined according to actual needs, and certainly, a new service unit can be added in the core service module, so that the types of the service units provided by the core service module are further enriched, and the applicability of the service building system provided by the invention is further improved. The plug-in module refers to an additional function module which actually runs on the core service module, and the interface design, the internal operation logic and the calling mode of the plug-in module are different according to different service units provided by the core service module; the plug-in module makes a export interface by reloading the service unit corresponding to the target service, and designs object application, resource application, read-write configuration, database connection, network connection management, safe exit and release structure and the like by the export interface. The core control module does not execute specific operation functions or business processes and is only responsible for the loading process of the core business module and the plug-in module on the target business demander. In practical application, the operation of the service template loaded by the service demander by the plug-in module means that: the plug-in module runs a business template corresponding to a target business to be implemented on a business demander.
It should be noted that the service template referred to herein may be program code, a database, etc.; the target service demander refers to an implementation subject, such as software, a system, a server, and the like, which implements the target service.
In the service establishing system provided by the invention, a core service module is used for providing a service template of a preset type; loading a core service module and a plug-in module to a target service demander by using a core control module; and operating the service template loaded by the target service demander by using the plug-in module so as to realize the corresponding service on the target service demander. Corresponding functions in the service building process are divided through the core service module, the plug-in module and the core control module, and each module is responsible for the corresponding service building function, so that the coupling between new services and software is reduced, and the applicability of the service module is improved. In summary, the service establishment system provided by the present invention solves the technical problem of how to improve the applicability of new services to a certain extent.
In practical application, the core service module can be divided into different service units according to the types of the provided service templates, and correspondingly, the plug-in module is divided into different plug-in units, so that the core control unit only needs to load the service unit and the plug-in unit corresponding to the target service demander.
In the service establishment system provided in the embodiment of the present invention, the core service module may include a sequential streaming service unit, and the plug-in module may include a sequential plug-in unit;
a sequential streaming service unit for executing a single service event;
and the sequential plug-in unit is used for recording and/or modifying the corresponding sequential data stream when the sequential streaming service unit executes the single service event.
In practical applications, the sequential streaming service can be implemented by means of a sequential streaming service unit and a sequential plug-in unit. The sequential data flow of the sequential streaming service is linear, and the sequential data flow refers to corresponding data in the sequential service; the data flow direction is a single direction, and the middle exception can cause the failure of the sequential streaming service, and the sequential streaming service in practical application can be applied to application scenarios such as an http request analysis process, a tcp file sending process and the like.
The service templates provided by the sequential streaming service unit for the sequential plug-in unit may be as follows:
Figure BDA0001452935470000051
after the sequential plug-in unit runs the service template provided by the sequential streaming service unit, the following functions can be realized: and recording or modifying the data entering the sequential service unit and the data output by the sequential service unit.
The sequential streaming service unit executing a single service event as referred to herein means that a sequential streaming service unit is only responsible for one service event, such as a service flow: applying for transfer, transferring account and receiving transfer account, when the business process is realized by the business building system provided by the embodiment of the invention, at least three sequential streaming business units are needed, the first sequential streaming business unit is only responsible for the process of applying for transfer account, the second sequential streaming business unit is only responsible for the process of transferring account, and the third sequential streaming business unit is only responsible for the process of receiving transfer account. The advantage that one sequential streaming service unit is only responsible for a single service event is that module cohesion in sequential streaming service can be reduced, thereby improving the applicability of the system; in addition, different processes can be divided, and mutual influence among different processes is avoided. Since a plurality of sequential streaming service units may be required in one sequential streaming service, the operation mode of the sequential streaming service units in the service building system may be set to a data serial mode, so that the call relationship of the corresponding sequential plug-in unit may be determined by the loading sequence of the sequential streaming service units.
In practical applications, the processing procedure of the sequential streaming service implemented by the service composition system provided by the embodiment of the present invention may be as follows: creating a thread; sorting according to a sequential plug-in unit loading sequence; calling a Pre function according to the loading sequence; actual service execution, including file reading and writing and transmission; calling a Post function according to the loading sequence; the processing flow is completed.
In the service establishment system provided in the embodiment of the present invention, the core service module may include an event-type service unit, and the plug-in module may include an event plug-in unit;
the event type service unit is used for storing and/or managing and/or distributing a preset number of service events;
an event plug-in unit for generating and/or consuming a single service event in an event type service unit.
In practical application, the event type service can be realized by the event type service unit and the event plug-in unit. Event-based services are services with event-driven type as a main characteristic, and often involve communication, consumption, data sharing, lock conflict and the like among multiple modules. In practical application, the event type service can be applied to application scenarios such as file monitoring, multi-channel io multiplexing, multi-system and multi-module cooperation and common operation.
The service template provided by the event type service unit for the event plug-in unit may be as follows:
Figure BDA0001452935470000061
Figure BDA0001452935470000071
the event plug-in unit can realize the following functions when operating the service template: a single service event is generated and/or consumed in an event-type service unit.
As the event type service is characterized by event driving, that is, the event type is various, the processing thread is nonlinear, a certain event may succeed or fail or disappear in the operation process, a new event may be added in the operation process, one event may require a plurality of event type service units to respond, and the like, for this characteristic, the event type service unit in the service establishment system provided by the embodiment of the present invention may further complete the following functions: managing time types that are variable; providing a container for storing the event and a distribution strategy for distributing the event to the corresponding event plug-in unit; managing events that are longer in processing or unloading time or stuck; informing events modified by other modules in the event type service; destroy unused events, etc.
Referring to fig. 2, fig. 2 is a schematic structural diagram of a service composition system for implementing an event-type service according to an embodiment of the present invention. The graph comprises an event type service unit 201, an event plug-in unit 202, an event plug-in unit 203 and an event plug-in unit 204; an event-type service unit includes three events: event 1, event 2, and event 3; the event plug-in unit 202 is responsible for the production of event 1, the event plug-in unit 203 is responsible for the production of event 2 and for the consumption of event 1, and the event plug-in unit 204 is responsible for the consumption and destruction of event 3.
The event type service unit storing and/or managing and/or allocating a preset number of service events as referred to herein means: one event type service unit can store and/or manage and/or distribute a preset number of service events, that is, one event type service unit corresponds to a plurality of service events, and the number of the corresponding service events can be preset according to actual needs, so that the utilization rate of the event type service unit can be improved. The generation and/or consumption of a single service event in an event-type service unit by an event plug-in unit as referred to herein means: one event plug-in unit is only responsible for a single service event, namely, the service event and the event plug-in unit meet the one-to-one correspondence relationship, so that the mutual influence among different service events can be avoided.
In addition, event-based services may require a large number of sleeping threads on the target service demander to be opened, and at this time, the event threads may be handled using encapsulated libuv pre-stored in the event-based service unit, which provides the management and distribution functions of the event threads. When multi-thread processing is involved, one mutex is locked for each event, so that some events are prevented from being lost or the same event is prevented from being processed for multiple times due to competing processing among threads, and the safety and the processing efficiency of the system can be improved; in the process, standard mutex synchronous event messages can be used, and an atomic event table can also be used for processing event ids, so that the operating efficiency of a target service demander can be utilized to the maximum extent, and failed lock is reduced.
In the service establishment system provided in the embodiment of the present invention, the core control module may include a concurrent service unit, and the plug-in module may include a concurrent plug-in unit;
the concurrent service unit is used for storing memory resources and thread resources; and a priority policy for providing memory resources and thread resources;
the concurrent plug-in unit is used for applying memory resources or thread resources to the concurrent service unit according to the priority allocation strategy and carrying out corresponding concurrent data processing according to the applied resources; and the device is further configured to send the processed concurrent data to other service units except the concurrent service unit, so that the other service units perform corresponding operations on the processed concurrent data.
In practical application, concurrent services can be realized by means of the concurrent service unit and the concurrent plug-in unit in the service building system provided by the embodiment of the invention. In practical application, the concurrent service can be applied to application scenarios such as regular expression matching processing attack sentences, traversing website files to check abnormal file conditions and the like.
The service template provided by the concurrent service unit for the concurrent plug-in unit may be as follows:
Figure BDA0001452935470000081
when the concurrent plug-in unit operates the service template, the following functions can be realized: applying memory resources or thread resources to the concurrent service unit according to the allocation priority strategy, and performing corresponding concurrent data processing according to the applied resources; and sending the processed concurrent data to other service units except the concurrent service unit so that the other service units perform corresponding operations on the processed concurrent data.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a service composition system for implementing concurrent services according to an embodiment of the present invention. The graph includes a concurrent service unit 301 storing thread resources and memory resources; a concurrent plug-in unit 302 for applying memory resources and thread resources from the concurrent service unit 301 and performing consumption operation on the sequential streaming service unit 304; and the concurrent plug-in unit 303 applies for the memory resource and the thread resource from the concurrent service unit 301, and performs consumption operation on the event type service unit 305.
For the concurrent service, the most important is a priority policy for allocating memory resources and thread resources, and in the service establishment system provided in the embodiment of the present invention, the concurrent service unit is responsible for providing the priority policy for allocating memory resources and thread resources, such as defining a service that preferentially runs, stopping the service running priority of some low threads, processing synchronization and consumption of threads, and the like, and in addition, the concurrent service unit can also implement the following functions: storing memory resources and thread resources; monitoring a resource strategy of the whole service building system; detecting the consumption condition of the whole service building system; managing thread creation within concurrent business threads, and the like.
In practical application, the process of implementing concurrent services by using the service establishment system provided by the embodiment of the present invention may be as follows: initializing a concurrent plug-in unit; the concurrent plug-in unit applies for memory resources and thread resources from the concurrent service unit; the concurrent plug-in unit processes concurrent services; and the concurrent plug-in unit submits the service result and the like.
In the service building system provided in the embodiment of the present invention, the core service module may include an object service unit, and the plug-in module may include an object plug-in unit;
the object service unit is used for providing object resources, thread resources, an allocation strategy and a destruction strategy;
the object plug-in unit is used for distributing thread resources to the target object according to the distribution strategy; and is also used for destroying the target object according to the destruction strategy.
In practical application, the object service can be realized by means of the object service unit and the object plug-in unit. In practical application, the object service can be applied to application scenarios with lower priority and lower event sensitivity, such as a timing task, a heartbeat detection function and the like.
The service template provided by the object service unit for the object plug-in unit may be:
Figure BDA0001452935470000091
Figure BDA0001452935470000101
in practical application, the object service unit may be used to provide object resources, thread resources, an allocation policy, and a destruction policy, so that the following functions may be implemented after the object plug-in unit runs the service template: distributing thread resources for the target object according to the distribution strategy; and is also used for destroying the target object according to the destruction strategy. The target object herein refers to an object that needs to be processed in the object resource.
In practical application, the process of implementing the object service by applying the service composition system provided by the embodiment of the present invention may be as follows: initializing an object service unit; calling the object plug-in units according to the calling sequence; and after all the calls are finished, checking whether the object service unit is forbidden, if so, finishing the calling, and if not, calling the object plug-in unit next time according to the calling sequence. In practical application, the object service may need to manage the release of the object, and the object can be released by means of a self-prestored boost:: functional function.
In the service establishment system provided by the embodiment of the present invention, the core service module may include a servo unit;
and the servo unit is used for processing and/or receiving miscellaneous services, wherein the miscellaneous services comprise data reading and writing, log reading and writing, a data custom structure, universal network connection support, memory file control and system resource monitoring.
In practical application, the service establishment system provided by the embodiment of the present invention can be used to implement miscellaneous tasks in the service establishment process, where the miscellaneous tasks may be as follows: data reading and writing, including database type data storage, configuration file reading and writing and the like; reading and writing the log; a data self-defining structure, wherein the servo unit may need high IO efficiency operation or support of the self-defining structure; the universal network connection supports, and the servo module has functions of RPC support definition network control, remote calling and the like, and can also realize the message communication and synchronization relation among a plurality of program entities; controlling a memory file; system resource detection, etc.
In the service establishing module provided in the embodiment of the present invention, the core control module is further configured to receive data information sent by the core service module, and configure a corresponding operating environment on a target service demander according to the data information.
In practical applications, the data information sent by the core service module to the core control module may include: the core service module name, the core service module sharing parameters, the core service module loading sequence, the core service module version and the like. The core control module can configure a corresponding operating environment on the target service demander according to the data information, such as arranging a loading sequence of the core service module and the corresponding plug-in module, loading the core service module and the corresponding plug-in module, sharing information between the core service module and the corresponding plug-in module and the target service demander, and the like. In practical application, the information sharing between the core service module and the corresponding plug-in module and the target service demander can be serialized by using the iguana of the c + +14 protocol prestored in the core control module, so that the problem of memory allocation of the service building system in different service demanders can be avoided.
In the service establishment system provided in the embodiment of the present invention, the core control module is further configured to manage a loading state of the core service module and the plug-in module on the target service demander.
In practical application, the core control module in the service composition system provided in the embodiment of the present invention may also be used to manage the loading states of the core service module and the plug-in module on the target service demander, such as whether loading is successful or not, and the reason of loading failure. In practical application, the core service module and the plug-in module may fail to load due to reasons such as different versions and target service demanders, absence of dependence, mismatch of runtime libraries, and the like, and at this time, the core control module may choose to continuously retry to load the library, load other libraries, or directly quit and record operations such as a key log, and the like according to specific configurations. The core control module can record the reasons that the core service module and the plug-in module cannot be loaded in detail, such as the reasons of data loading failure, specific paths, dependency library relations and the like, by means of a boost library prestored in the core control module. Correspondingly, the core control module can also be used for unloading the core service module and the plug-in module.
In the service establishment system provided by the embodiment of the invention, the core control module is further configured to analyze the reason why the core service module and the plug-in module run incorrectly on the target service demander, and generate an error log class for performing corresponding field environment debugging.
In practical application, in the loading process of the core service module and the plug-in module, the problem of module programming failure may occur due to problems such as code bug or writing compatibility, and at this time, bug tracking may be started. The loading information and other parameters can be recorded by means of the classModule class integrated in the core control module and the private function LogInfo when the debug parameter is opened, so that corresponding field environment debugging is facilitated. In addition, a WriteLog function prestored in the core control module can automatically create a Log4Cpp object for each module and record the actual running condition of an error Log, and meanwhile, the NDC function carried by the Log4Cpp can also provide a tracking function of a multithreading debugging state so as to process multithreading or the cooperation relationship among the modules.
In the service building system provided in the embodiment of the present invention, the core control module is further configured to perform uniform resource allocation on the building system.
In practical applications, the core control module may further perform uniform resource allocation, such as memory allocation, thread management, CPU time slice operation priority management, io priority management, and the like, on the service building system provided in the embodiment of the present invention. The core control module may perform operations such as memory allocation of the module and memory release of the module according to a prestored AllocMem < typet > (string Tag, int size) function. In addition, the core control module can also perform the allocation of the threads, the destruction of the threads, the provision of thread parameters and the like according to the prestored Boost function of the alocThreadObj in the thread _ pool. In practical application, the core control module can also perform flexible management on resources according to preset dynamic requirements and parameter lists, and maximize the system performance of the service building system.
The invention also provides a service establishing method which has the corresponding effect of the service establishing system provided by the embodiment of the invention. Referring to fig. 4, fig. 4 is a flowchart of a service establishment method according to an embodiment of the present invention.
The method for establishing the service provided by the embodiment of the invention can comprise the following steps:
step S101: and determining a service template corresponding to the target service.
The target service is referred to as a service to be implemented on a target service demander, which may be software, a system, a server, etc. In practical application, a service template corresponding to a target service may be determined in a core service module provided by a service establishment system provided in the embodiment of the present invention; or a service template corresponding to the target service may be designed according to the design principle of the service template in the core service module, and the present invention is not limited in detail herein.
Step S102: and loading the service template to the target service demander.
After determining the service template corresponding to the target service, the target service template may be loaded to the target service demander, where the service template may be loaded to the target service demander by using a core control module provided by the service building system provided in the embodiment of the present invention, or the service template may be loaded to the target service demander by using another loading tool, which is not limited in this embodiment of the present invention.
Step S103: the service template is run to implement the target service on the target service demander.
After the service template is loaded to the target service demander, the service template may be run on the target service demander to implement the corresponding target service, which may be running the service template by using a plug-in module provided by the service building system provided in the embodiment of the present invention, or running the service template by using another running tool, and the present invention is not limited specifically herein.
For a description of a relevant part in a service establishment method provided in the embodiment of the present invention, refer to a detailed description of a corresponding part in a service establishment system provided in the embodiment of the present invention, which is not described herein again. In addition, parts of the above technical solutions provided in the embodiments of the present invention that are consistent with the implementation principles of the corresponding technical solutions in the prior art are not described in detail, so as to avoid redundant description.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A service building system is characterized by comprising a core service module, a plug-in module and a core control module;
the core service module is used for providing service templates of preset types;
the core control module is used for loading the core service module and the plug-in module to a target service demander;
the plug-in module is used for operating the service template loaded by the service demander;
wherein the core service module comprises a sequential streaming service unit, and the plug-in module comprises a sequential plug-in unit;
the sequential streaming service unit is used for executing a single service event;
and the sequential plug-in unit is used for recording and/or modifying the corresponding sequential data stream when the sequential streaming service unit executes the single service event.
2. The system of claim 1, wherein the core service module comprises an event-based service element and the plug-in module comprises an event plug-in element;
the event type service unit is used for storing and/or managing and/or distributing a preset number of service events;
the event plug-in unit is used for generating and/or consuming single service events in the event type service unit.
3. The system of claim 1, wherein the core control module comprises a concurrent service unit and the plug-in module comprises a concurrent plug-in unit;
the concurrent service unit is used for storing memory resources and thread resources; and a priority policy for providing allocation of the memory resources and the thread resources;
the concurrent plug-in unit is used for applying for memory resources or thread resources to the concurrent service unit according to the distribution priority strategy and carrying out corresponding concurrent data processing according to the applied resources; and the device is further configured to send the processed concurrent data to other service units except the concurrent service unit, so that the other service units perform corresponding operations on the processed concurrent data.
4. The system of claim 1, wherein the core business module comprises an object business unit and the plug-in module comprises an object plug-in unit;
the object service unit is used for providing object resources, thread resources, allocation strategies and destruction strategies;
the object plug-in unit is used for distributing thread resources to the target object according to the distribution strategy; and the destruction device is also used for destroying the target object according to the destruction strategy.
5. The system of claim 1, wherein the core service module comprises a serving unit;
the servo unit is used for processing and/or receiving miscellaneous services, wherein the miscellaneous services comprise data reading and writing, log reading and writing, a data custom structure, universal network connection support, memory file control and system resource monitoring.
6. The system according to any one of claims 1 to 5, wherein the core control module is further configured to receive data information sent by the core service module, and configure a corresponding operating environment on the target service demander according to the data information.
7. The system according to any one of claims 1 to 5, wherein said core control module is further configured to manage a loading status of said core service module and said plug-in module on said target service demander.
8. The system according to any one of claims 1 to 5, wherein the core control module is further configured to analyze a reason for the core service module and the plug-in module running incorrectly on the target service demander, and generate an error log class for performing corresponding field environment debugging.
9. The system according to any of claims 1 to 5, wherein said core control module is further configured to perform uniform resource allocation for said system.
10. A method for service composition, comprising:
determining a service template corresponding to a target service;
loading the service template to a target service demander;
running the service template to realize the target service on the target service demander;
wherein the service template comprises sequential streaming service units executing a single service event; and in the process of operating the service template, recording and/or modifying the corresponding sequential data stream when the sequential stream service unit executes a single service event.
CN201711049683.XA 2017-10-31 2017-10-31 Service establishing system and method Active CN107861715B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711049683.XA CN107861715B (en) 2017-10-31 2017-10-31 Service establishing system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711049683.XA CN107861715B (en) 2017-10-31 2017-10-31 Service establishing system and method

Publications (2)

Publication Number Publication Date
CN107861715A CN107861715A (en) 2018-03-30
CN107861715B true CN107861715B (en) 2021-09-07

Family

ID=61697038

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711049683.XA Active CN107861715B (en) 2017-10-31 2017-10-31 Service establishing system and method

Country Status (1)

Country Link
CN (1) CN107861715B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108829380B (en) * 2018-05-31 2021-08-31 郑州云海信息技术有限公司 Method and device for realizing consistency of plug-in acquired information
CN110347441A (en) * 2019-06-25 2019-10-18 银江股份有限公司 A kind of thermal expansion data integration automotive engine system and method
CN111061808B (en) * 2019-12-13 2023-07-28 深圳迅策科技有限公司 Asynchronous distributed server based on libuv
CN111932368B (en) * 2020-08-13 2024-01-05 中国工商银行股份有限公司 Credit card issuing system and construction method and device thereof

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050268300A1 (en) * 2004-05-14 2005-12-01 Microsoft Corporation Distributed task scheduler for computing environments
CN103019809A (en) * 2011-09-28 2013-04-03 中国移动通信集团公司 Business processing device and method, and business processing control device
CN103297381A (en) * 2012-02-22 2013-09-11 阿里巴巴集团控股有限公司 Service access method based on plugin and system thereof

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102799460B (en) * 2011-05-23 2015-08-19 中国移动通信集团公司 A kind of business development system, method and service operation system, method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050268300A1 (en) * 2004-05-14 2005-12-01 Microsoft Corporation Distributed task scheduler for computing environments
CN103019809A (en) * 2011-09-28 2013-04-03 中国移动通信集团公司 Business processing device and method, and business processing control device
CN103297381A (en) * 2012-02-22 2013-09-11 阿里巴巴集团控股有限公司 Service access method based on plugin and system thereof

Also Published As

Publication number Publication date
CN107861715A (en) 2018-03-30

Similar Documents

Publication Publication Date Title
CN107861715B (en) Service establishing system and method
US11853774B2 (en) Dynamically loaded plugin architecture
US8863137B2 (en) Systems and methods for automated provisioning of managed computing resources
CN102508716B (en) Task control device and task control method
US20140101665A1 (en) Operation control for deploying and managing software service in a virtual environment
CN110611707B (en) Task scheduling method and device
US10936468B1 (en) System and method of automatic software release termination based on customized reporting static code analysis
CN110971700B (en) Method and device for realizing distributed lock
CN110162344B (en) Isolation current limiting method and device, computer equipment and readable storage medium
CN111858007A (en) Task scheduling method and device based on message middleware
CN114035925A (en) Workflow scheduling method, device and equipment and readable storage medium
WO2015131542A1 (en) Data processing method, device and system
CN115525406A (en) Distributed asynchronous task scheduling system
US11663349B2 (en) System and method for managing data object creation
CN114443239A (en) Method and device for filling container
CN112564979B (en) Execution method and device of construction task, computer equipment and storage medium
CN114816662A (en) Container arrangement method and system applied to Kubernetes
Warrender et al. Job scheduling in a high performance computing environment
López Martínez et al. Scheduling configuration of real-time component-based applications
CN111538491B (en) Data event processing method, device, equipment and storage medium
Durán et al. Robust reconfiguration of cloud applications
CN116661905B (en) Method and system for realizing automatic adaptation of equipment based on dynamic library loading
CN117519947A (en) Coroutine monitoring method, device, equipment and readable storage medium
CN115250271A (en) Master-slave distributed service cooperation method and system based on micro-service architecture
CN111324436A (en) Quartz-based Redis implementation method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant