CN111158730B - System updating method, device, electronic equipment and readable storage medium - Google Patents

System updating method, device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN111158730B
CN111158730B CN201911425393.XA CN201911425393A CN111158730B CN 111158730 B CN111158730 B CN 111158730B CN 201911425393 A CN201911425393 A CN 201911425393A CN 111158730 B CN111158730 B CN 111158730B
Authority
CN
China
Prior art keywords
updated
service
logic
code
determining
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
CN201911425393.XA
Other languages
Chinese (zh)
Other versions
CN111158730A (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.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201911425393.XA priority Critical patent/CN111158730B/en
Publication of CN111158730A publication Critical patent/CN111158730A/en
Application granted granted Critical
Publication of CN111158730B publication Critical patent/CN111158730B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The application relates to a system updating method, a device, an electronic device and a readable storage medium, wherein the method comprises the following steps: determining identification information of a service to be updated, wherein the service to be updated is a service for updating service logic in a system to be updated, and the service logic comprises: a calling relation between methods related to the service to be updated; inquiring the service logic corresponding to the service to be updated in the system to be updated according to the identification information; obtaining an updated system according to the system to be updated and the service logic; and (5) online the updated system. According to the technical scheme provided by the embodiment of the application, when the service is offline through the service system such as the active center, the data corresponding to the service logic related to the service can be cleared along with the offline of the service, so that the situation that the service is started slowly and the stability of the service is affected due to the increase of the demand can be avoided.

Description

System updating method, device, electronic equipment and readable storage medium
Technical Field
The present application relates to the field of software systems, and in particular, to a system updating method, device, electronic apparatus, and readable storage medium.
Background
With the development of the internet, more and more online sales promotion and other activities are occurring. The need for activity classes has a feature of being very customizable and having online expiration dates. After the activity is taken off line, the customized background business logic is no longer used, except for some componentized functionality. However, in the process of activity customization development, some logic such as preprocessing, storage and buffering components, message components and the like after the project is started, which may be used, is executed when the project is started after the activity is offline because the logic is independent of external access. If the logic is not processed, the project start is slow along with the increase of the demands, and unnecessary dependence is excessive, so that the stability of the service is affected.
Aiming at a plurality of technical problems existing in the related art, no effective solution is provided at present.
Disclosure of Invention
To solve or at least partially solve the above technical problems, the present application provides a system updating method, apparatus, electronic device, and readable storage medium.
In a first aspect, the present application provides a system updating method, including:
determining identification information of a service to be updated, wherein the service to be updated is a service for performing service logic offline in a system to be updated, and the service logic comprises: a calling relation between methods related to the service to be updated;
inquiring the service logic corresponding to the service to be updated in the system to be updated according to the identification information;
obtaining an updated system according to the system to be updated and the service logic;
and (5) online the updated system.
Optionally, in the foregoing system updating method, the querying, in the system to be updated, the service logic corresponding to the service to be updated according to the identification information includes:
positioning a corresponding first method in the system to be updated according to the identification information and a preset association relation, wherein the first method is a method for accepting access in the service to be updated;
and traversing in the system to be updated according to the first method to obtain the service logic corresponding to the service to be updated.
Optionally, in the foregoing system updating method, the traversing in the system to be updated according to the first method to obtain the service logic corresponding to the service to be updated includes:
determining each architecture layer of the system to be updated;
traversing each architecture layer in turn according to the first method, and determining a second method in each architecture layer, which has an association relationship with the first method;
and obtaining the business logic according to the association relation.
Optionally, in the foregoing system updating method, the system after being updated according to the system to be updated and the service logic includes:
annotating the business logic according to a preset annotation strategy to obtain annotated logic;
determining a code to be offline according to the annotated logic;
obtaining the updated code according to the system to be updated and the code to be offline;
and determining the updated system according to the updated code.
Optionally, in the foregoing system updating method, the system after being updated according to the system to be updated and the service logic includes:
releasing the association relation of the business logic in the system to be updated to obtain the updated code;
and determining the updated system according to the updated code.
Optionally, in the foregoing method for updating a system, the online method for updating the updated system includes:
verifying the updated system and obtaining a verification result;
and when the verification result meets the preset requirement, replacing the system to be updated with the updated system.
Optionally, the system updating method, which verifies the updated code, includes:
submitting updated codes corresponding to the updated system to a code base;
and when the test environment meets the preset requirement, verifying the updated code according to the preset function requirement.
In a second aspect, the present application provides a system updating apparatus, including:
the determining module is configured to determine identification information of a service to be updated, where the service to be updated is a service for performing service logic update in a system to be updated, and the service logic includes: a calling relation between methods related to the service to be updated;
the positioning module is used for inquiring the service logic corresponding to the service to be updated in the system to be updated according to the identification information;
the third determining module is used for obtaining an updated system according to the system to be updated and the business logic;
and the online module is used for online the updated system.
In a third aspect, the present application provides an electronic device, comprising: the device comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
the memory is used for storing a computer program;
the processor is configured to implement a processing method according to any one of the preceding claims when executing the computer program.
In a fourth aspect, the present application provides a non-transitory computer readable storage medium storing computer instructions that cause a computer to perform the processing method according to any one of the preceding claims.
The embodiment of the application provides a system updating method, a device, electronic equipment and a readable storage medium, wherein the method comprises the following steps: determining identification information of a service to be updated, wherein the service to be updated is a service for updating service logic in a system to be updated, and the service logic comprises: a calling relation between methods related to the service to be updated; inquiring the service logic corresponding to the service to be updated in the system to be updated according to the identification information; obtaining an updated system according to the system to be updated and the service logic; and (5) online the updated system. According to the technical scheme provided by the embodiment of the application, when the service is offline through the service system such as the active center, the data corresponding to the service logic related to the service can be cleared along with the offline of the service, so that the situation that the service is started slowly and the stability of the service is affected due to the increase of the demand can be avoided.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the application or the technical solutions of the prior art, the drawings which are used in the description of the embodiments or the prior art will be briefly described, and it will be obvious to a person skilled in the art that other drawings can be obtained from these drawings without inventive effort.
Fig. 1 is a flow chart of a system updating method according to an embodiment of the present application;
FIG. 2 is a flowchart illustrating a system update method according to another embodiment of the present application;
FIG. 3 is a flowchart illustrating a system update method according to another embodiment of the present application;
FIG. 4 is a flowchart illustrating a system update method according to another embodiment of the present application;
FIG. 5 is a flowchart illustrating a system update method according to another embodiment of the present application;
FIG. 6 is a flowchart illustrating a system update method according to another embodiment of the present application;
FIG. 7 is a flowchart illustrating a system update method according to another embodiment of the present application;
FIG. 8 is a flowchart of a system update method according to an embodiment of the present application;
FIG. 9 is a block diagram of a system update apparatus according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
Fig. 1 is a system updating method according to an embodiment of the present application, including steps S1 to S4 as follows:
s1, determining identification information of a service to be updated, wherein the service to be updated is a service for updating service logic in a system to be updated, and the service logic comprises: call relations between methods related to the service to be updated.
Specifically, the system to be updated may be an active operation center, where the active operation center is a platform for managing activity requirements, for example: the system comprises a commodity system, an order system, a marketing material center and a distribution system, wherein the business to be updated can be an activity project in the system to be updated, and the activity project can be a set of all methods for realizing a certain activity and the relations among the methods; the service to be updated may be a service for performing logic update or a service for performing logic deletion, and in general, both the logic update and the logic deletion need to be performed on the original logic.
In general, a plurality of services (i.e., activity projects) exist in a system to be updated, and the services to be updated may be activity projects such as member recharging preferential projects; the identification information may be: ID. Address and the like can be positioned to the information of the service to be updated; and in general, since the identification information is used to enable the visitor to accurately locate a specific service through the identification information, there is a unique correspondence between the identification information and the service to be updated.
Specifically, each service to be updated is generally composed of a plurality of methods; and each method is combined to form an integral service, and corresponding service logic is needed; the dependency reference relationship among the general methods is sub-logic forming the whole business logic, wherein the dependency reference relationship comprises: calling and accessing the relationship among different methods; therefore, as can be seen from the above, the service logic is the overall logic relationship that correlates the methods to each other in order to implement all functions in the service.
S2, inquiring service logic corresponding to the service to be updated in the system to be updated according to the identification information.
Based on the content described in step S1, since the identification information can be located to the method in the service to be updated, the service logic corresponding to the service to be updated can be determined according to the dependency reference relationship between the methods.
And S3, obtaining an updated system according to the system to be updated and the service logic.
Specifically, one of the purposes of the embodiments of the present application is to delete service logic from a system to be updated, so as to prevent the service logic and related methods from being executed in the background after the service is offline, and therefore, the updated system does not include the service logic; the original method in the general system to be updated is not deleted.
And S4, online the updated system.
Generally, before the updated system is online, the system to be updated is offline. By the method in the embodiment of the application, the service to be updated can be completely deleted, for example, when the method in the service logic of the service to be updated comprises related methods such as preprocessing, storage and caching components, message components and the like, the method can be used for removing the calling relation among the methods by deleting the service logic, so that the related relation of the service to be updated does not exist among the methods, and further, the execution of the methods such as unnecessary preprocessing, storage, caching, message generation and the like is not needed, thereby achieving the purposes of removing unnecessary dependence and improving the overall stability of the system.
As shown in fig. 2, in some embodiments, as in the foregoing system updating method, step S2. According to the identification information, service logic corresponding to the service to be updated is queried in the system to be updated, including steps S21 and S22 as follows:
s21, positioning a corresponding first method in a system to be updated according to the identification information and a preset association relation, wherein the first method is a method for receiving access in a service to be updated.
Specifically, the first method is a method capable of locating by the identification information in the service to be updated, and since the identification information is typically an ID or an address, the method bound to the identification information is typically a method for accepting access. Further, there may be a plurality of interactable modules in the homepage of the service to be updated, and each interactable module has a corresponding method, so each identification information may correspond to one or more first methods. For example, take an online video service system as an example: in development, a plurality of functional modules (such as member recharging, personal information, serial homepage, movie homepage and the like) can be arranged on the homepage of the online video service system, and then the plurality of functional modules arranged on the homepage can be accessed through the homepage address (namely the identification information) of the online video service system, so that the preset association relation between the identification information and the first method is set.
One of the alternative implementation methods may be: the service to be updated can be realized based on the spring container, and each service dynamic interface address is bound to a specific method through the annotation of spring. Specific methods can be targeted through APIs provided by the spring container. The Spring container is the core of the Spring framework and can be used for managing methods, connecting them together, configuring them and managing their entire life cycle from creation to destruction. The API (Application Programming Interface, application program interface) is a number of predefined functions or conventions that refer to the engagement of different components of a software system.
And S22, traversing in the system to be updated according to the first method to obtain service logic corresponding to the service to be updated.
Specifically, each method in the same service is directly or indirectly related to a first method, so that after the first method is obtained, the service to be updated can be traversed in the system to be updated to obtain all related methods, and therefore service logic corresponding to the service to be updated can also be obtained.
As shown in fig. 3, in some embodiments, as in the foregoing system updating method, step S21 traverses to obtain service logic corresponding to the service to be updated in the system to be updated according to the first method, and includes steps S211 to S213 as follows:
step S211, determining each architecture layer of the system to be updated.
Specifically, each system is built based on a certain architecture, for example, when the system to be updated is based on an MVC architecture, the corresponding architecture layers include a controller layer, a service layer and a dao layer in order.
Wherein:
the DAO layer is also called a data access layer, is totally called data access object, belongs to a comparison bottom layer and is used for comparing basic operations, and particularly relates to adding, deleting and modifying a certain table, namely, certain DAO is necessarily in one-to-one correspondence with a certain table of a database, wherein the basic operations of adding, deleting and modifying are packaged.
The Service layer is also called a Service layer and is mainly used for repackaging one or more DAOs to form a Service.
The controller layer is mainly responsible for requesting forwarding, receiving parameters from the page, transmitting the parameters to Service for processing, receiving a return value, and transmitting the return value to the page.
Overall, the following:
the DAO layer is mainly oriented to databases and Service is oriented to services. When the back end is developed, all tables are designed by the database, then a DAO layer is designed for each table, and then the DAO layer is further packaged into a Service layer according to specific business logic, and the Service layer is provided for the outside. Step S212, traversing each architecture layer in turn according to the first method, and determining a second method in each architecture layer, wherein the second method has an association relationship with the first method.
Specifically, taking the MVC architecture as an example in the foregoing embodiment, a depth-first traversal method may be adopted, after a specific method of locating, according to the identification information, a related function of a service to be updated in a controller layer is changed to serve as a traversal initial node, all other nodes related to the service layer and the dao layer are traversed in sequence until all nodes related to the initial node have been traversed.
And S213, obtaining service logic according to the association relation.
Specifically, after each association relationship is obtained, the dependency reference relationship among the methods can be determined, and then the overall business logic of the system can be obtained.
As shown in fig. 4, in some embodiments, as the aforementioned system updating method, step S3 includes steps S311 to S314, as follows:
s311, annotating the service logic according to a preset annotation strategy to obtain annotated logic.
And S312, determining a code to be offline according to the annotated logic.
And S313, obtaining updated codes according to the system to be updated and the code to be offline.
And S314, determining an updated system according to the updated code.
Specifically, the preset annotation strategy may be to annotate the code implementing the service logic part according to the specific annotation requirement; and, post-annotation logic (i.e., business logic including annotation content) is obtained after annotating the business logic; furthermore, the annotation process can be performed in a machine matching mode or in a mode of manual annotation by a software developer; therefore, after annotation, the offline code in the service system to be updated can be obtained by positioning according to the annotation content; therefore, the offline codes can be deleted uniformly according to the endorsement; and deleting the code to be offline from the system to be updated to obtain the updated code and the updated system.
According to the method in the embodiment, the code to be offline can be accurately positioned, the code can be automatically deleted, the workload of developers is effectively reduced, and the accuracy is improved.
As shown in fig. 5, in some embodiments, as the aforementioned system updating method, step S3 includes steps S321 and S322 of:
s321, performing association relation release on service logic in a system to be updated to obtain updated codes. And S322, determining an updated system according to the updated code.
Specifically, the service logic is the sum of the association relations between the various methods corresponding to the service to be updated, so that the release of the association relation of the service logic can be: deleting every time an association relation is determined, or uniformly deleting all association relations (namely business logic) after all association relations are determined; in general, the association relationship between the various methods is realized by codes, so that after the association relationship is relieved for the business logic, updated codes obtained after the partial codes of the system to be updated are deleted are obtained. Thus, the updated system may also be determined from the updated code.
As shown in fig. 6, in some embodiments, as the aforementioned system updating method, step S4 brings the updated system on line, including steps S41 and S42 as follows:
and S41, verifying the updated system and obtaining a verification result.
Specifically, the verification of the updated system is to determine whether the original system can normally operate after the code modification is performed on the original system; generally, the authentication content includes: whether the preset function can be implemented and whether the operating logic is correct. One of the alternative implementation methods may be: the updated system is verified by CI testing (continuous integration testing, which is one of automated testing), which includes several contents such as compiling code, preparing databases, performing tests, analyzing code, creating installation and deployment contents, and generating documents. And the verification result may include: calling conditions (business logic) among methods for the realization conditions of each function;
and S42, replacing the system to be updated with the updated system when the verification result meets the preset requirement.
Specifically, meeting the preset requirements may include: the method can realize preset functions, can run according to preset logic and the like; and when the verification result meets the preset requirement, characterizing that the verification result meets the online requirement, and replacing the system to be updated with the updated system.
By the method in the embodiment, the updated system can be checked before being on line, the defect situation of the system is effectively avoided, and the use experience of a user can be effectively improved.
As shown in fig. 7, in some embodiments, as the aforementioned system updating method, step S41 verifies the updated code, including steps S411 and S412 as follows:
and S411, submitting the updated codes corresponding to the updated system to a code library.
And S412, verifying the updated codes according to the preset function requirements when the test environment meets the preset requirements.
Specifically, the code library can be git or svn, which are all tools for source code management; the git is a distributed code management tool with open sources, and each computer is equivalent to a server and is flexible; the svn is a centralized code management tool, a central server is needed, one server controls all codes, the codes of the server are up to date, and code operations (downloading and submitting) of other computers can be executed through the server; which tool is used as the code base can be selected according to specific requirements.
Since the code library has: recording, tracking, version control, authority control, responsibility pursuit, rollback processing, conflict resolution and other functions, wherein:
1. recording, the whole process from the beginning to the end of an item can be recorded.
2. Tracking, tracking changes to all content in the item, such as what content was added, what content was deleted, what content was modified, and so forth.
3. Version control can clearly know the dissimilarity between each version, such as what content, functions, etc. version 2.0 is more than version 1.0.
Thus, it is possible to clearly record which changes have occurred to the code.
Alternatively, the updated code may be committed to the code library by way of a commit point, so that at commit, if only part of the commit is successful and another part fails, all updates will automatically be rolled back. If all updated codes are submitted successfully, the code is judged to be submitted successfully.
To implement the method in step S412, the test environment may also be bound with Jenkins, which is an open-source Continuous Integration (CI) tool that provides friendly operation interfaces, mainly for continuously and automatically constructing/testing software items, and monitoring the operation of external tasks. The preset requirement may be that the test environment is deployed. Optionally, after the test environment is deployed, the updated code in the code library is also tested by submitting the commit point to the corresponding test tool according to the preset function requirement, so as to verify whether the code can realize the preset function.
By the method in the embodiment, the code can be automatically tested, the degree of automation is further improved, and the stability of an online system is ensured. As shown in fig. 8, an application example of the method according to the above embodiment of the present application is:
I. after an active project (service to be updated) is brought down in operation by an active operation center (one of the systems to be updated), the active operation center triggers the detection of the back-end code of the active project.
And II, detecting the activity engineering aiming at the operated offline, and positioning the related function of the activity in a controller layer according to the activity identification (activity id, activity address and the like).
And III, using a depth-first traversing method, traversing dependency references introduced from a controller layer to a service layer and a dao layer in sequence, and finding out the customization logic of the activity, wherein the customization logic comprises data initialization, customization message queues, customization data storage and the like when the project is started.
Annotating or de-reliance referencing the located active customization logic and submitting the updated code to the code library in a manner that submits a commit point.
And V, submitting the updated codes to an automatic testing tool in a mode of submitting the commit point, triggering the automatic testing tool to test the updated codes, and verifying engineering logic.
And VI, triggering the updated system to automatically enter a line after the automatic test is passed, and completing the original code offline process.
As shown in fig. 9, according to an embodiment of another method of the present application, the present application further provides a system updating apparatus, including:
the determining module 1 is configured to determine identification information of a service to be updated, where the service to be updated is a service for performing service logic update in a system to be updated, and the service logic includes: call relations between methods related to the service to be updated.
And the positioning module 2 is used for inquiring service logic corresponding to the service to be updated in the system to be updated according to the identification information.
And the third determining module 3 is used for obtaining an updated system according to the system to be updated and the service logic.
And the online module 4 is used for online the updated system.
In particular, the specific process of implementing the functions of each module in the apparatus of the embodiment of the present application may be referred to the related description in the method embodiment, which is not repeated herein.
According to another embodiment of the present application, there is also provided an electronic apparatus including: as shown in fig. 10, the electronic device may include: the device comprises a processor 1501, a communication interface 1502, a memory 1503 and a communication bus 1504, wherein the processor 1501, the communication interface 1502 and the memory 1503 are in communication with each other through the communication bus 1504.
A memory 1503 for storing a computer program;
the processor 1501 is configured to execute the program stored in the memory 1503, thereby implementing the steps of the method embodiment described above.
The buses mentioned for the above electronic devices may be peripheral component interconnect standard (Peripheral Component Interconnect, PCI) buses or extended industry standard architecture (Extended Industry Standard Architecture, EISA) buses, etc. The bus may be classified as an address bus, a data bus, a control bus, etc. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The communication interface is used for communication between the electronic device and other devices.
The Memory may include random access Memory (Random Access Memory, RAM) or may include Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; but also Digital signal processors (Digital SignalProcessing, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field-programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
The embodiment of the application also provides a non-transitory computer readable storage medium, which stores computer instructions that cause a computer to execute the steps of the method embodiment.
It should be noted that in this document, relational terms such as "first" and "second" and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing is only a specific embodiment of the application to enable those skilled in the art to understand or practice the application. 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 application. Thus, the present application 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 (8)

1. A system updating method, comprising:
determining identification information of a service to be updated, wherein the service to be updated is a service for updating service logic in a system to be updated, and the service logic comprises: a calling relation between methods related to the service to be updated;
inquiring the service logic corresponding to the service to be updated in the system to be updated according to the identification information;
the updated system according to the system to be updated and the service logic comprises: annotating the business logic according to a preset annotation strategy to obtain annotated logic; determining a code to be offline according to the annotated logic; obtaining updated codes according to the system to be updated and the code to be offline; determining the updated system according to the updated code; releasing the calling relation of the business logic in the system to be updated to obtain the updated code; determining the updated system according to the updated code;
and (5) online the updated system.
2. The system updating method according to claim 1, wherein the querying the service logic corresponding to the service to be updated in the system to be updated according to the identification information includes:
positioning a corresponding first method in the system to be updated according to the identification information and a preset association relation, wherein the first method is a method for accepting access in the service to be updated;
and traversing in the system to be updated according to the first method to obtain the service logic corresponding to the service to be updated.
3. The system updating method according to claim 2, wherein traversing the service logic corresponding to the service to be updated in the system to be updated according to the first method includes:
determining each architecture layer of the system to be updated;
traversing each architecture layer in turn according to the first method, and determining a second method in each architecture layer, which has an association relationship with the first method;
and obtaining the business logic according to the association relation.
4. The system updating method according to claim 1, wherein the step of online the updated system includes:
verifying the updated system and obtaining a verification result;
and when the verification meets the preset requirement, replacing the system to be updated with the updated system.
5. The system updating method according to claim 4, wherein the verifying the updated system includes:
submitting updated codes corresponding to the updated system to a code base;
and when the test environment meets the preset requirement, verifying the updated code according to the preset function requirement.
6. A system updating apparatus, comprising:
the determining module is configured to determine identification information of a service to be updated, where the service to be updated is a service for performing service logic update in a system to be updated, and the service logic includes: a calling relation between methods related to the service to be updated;
the positioning module is used for inquiring the service logic corresponding to the service to be updated in the system to be updated according to the identification information;
the third determining module is configured to obtain an updated system according to the system to be updated and the service logic, and includes: annotating the business logic according to a preset annotation strategy to obtain annotated logic; determining a code to be offline according to the annotated logic; obtaining updated codes according to the system to be updated and the code to be offline; determining the updated system according to the updated code; releasing the calling relation of the business logic in the system to be updated to obtain the updated code; determining the updated system according to the updated code;
and the online module is used for online the updated system.
7. An electronic device, comprising: the device comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
the memory is used for storing a computer program;
the processor being adapted to implement the system updating method of any of claims 1-5 when executing the computer program.
8. A non-transitory computer readable storage medium storing computer instructions that cause the computer to perform the system update method of any one of claims 1-5.
CN201911425393.XA 2019-12-31 2019-12-31 System updating method, device, electronic equipment and readable storage medium Active CN111158730B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911425393.XA CN111158730B (en) 2019-12-31 2019-12-31 System updating method, device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911425393.XA CN111158730B (en) 2019-12-31 2019-12-31 System updating method, device, electronic equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN111158730A CN111158730A (en) 2020-05-15
CN111158730B true CN111158730B (en) 2023-09-01

Family

ID=70560765

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911425393.XA Active CN111158730B (en) 2019-12-31 2019-12-31 System updating method, device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN111158730B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112099830A (en) * 2020-09-25 2020-12-18 努比亚技术有限公司 System updating method, equipment and computer readable storage medium
CN112988190B (en) * 2021-03-12 2023-09-05 北京奇艺世纪科技有限公司 Application online method, device, computer equipment and storage medium
CN113626050A (en) * 2021-07-22 2021-11-09 北京金山云网络技术有限公司 Updating method and device of medical application, electronic equipment and storage medium
CN113867776A (en) * 2021-09-01 2021-12-31 阿里巴巴(中国)有限公司 Method and device for publishing middle station application, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102769544A (en) * 2012-07-27 2012-11-07 烽火通信科技股份有限公司 Equipment service adaptation layer architecture in communication system and service adaptation layer realization method
CN103346914A (en) * 2013-07-03 2013-10-09 曙光信息产业(北京)有限公司 Method and device for topological structure update of distributed file system
WO2017020721A1 (en) * 2015-08-04 2017-02-09 阿里巴巴集团控股有限公司 Service function testing method and device
CN108304164A (en) * 2017-09-12 2018-07-20 马上消费金融股份有限公司 A kind of development approach and development system of service logic
CN110413262A (en) * 2019-07-23 2019-11-05 北京启迪区块链科技发展有限公司 A kind of management method of business function, apparatus and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102769544A (en) * 2012-07-27 2012-11-07 烽火通信科技股份有限公司 Equipment service adaptation layer architecture in communication system and service adaptation layer realization method
CN103346914A (en) * 2013-07-03 2013-10-09 曙光信息产业(北京)有限公司 Method and device for topological structure update of distributed file system
WO2017020721A1 (en) * 2015-08-04 2017-02-09 阿里巴巴集团控股有限公司 Service function testing method and device
CN108304164A (en) * 2017-09-12 2018-07-20 马上消费金融股份有限公司 A kind of development approach and development system of service logic
CN110413262A (en) * 2019-07-23 2019-11-05 北京启迪区块链科技发展有限公司 A kind of management method of business function, apparatus and system

Also Published As

Publication number Publication date
CN111158730A (en) 2020-05-15

Similar Documents

Publication Publication Date Title
CN111158730B (en) System updating method, device, electronic equipment and readable storage medium
US8151247B2 (en) Test data management
US8856724B2 (en) Systems and methods for incremental software development
CN106294533B (en) The distributed work flow replicated using database
US20170372247A1 (en) Methods, systems, and articles of manufacture for implementing software application development and releases
US8954930B2 (en) System and method for reducing test effort by object risk analysis
US8589884B2 (en) Method and system for identifying regression test cases for a software
CN108319460B (en) Method and device for generating application program installation package, electronic equipment and storage medium
CN108776643B (en) Target code merging control method and system based on version control process
US20080244565A1 (en) Dynamic software installation and configuration
US20190243665A1 (en) Application runtime configuration using design time artifacts
US11055078B2 (en) Systems and methods for deploying software products to environments
US9542173B2 (en) Dependency handling for software extensions
CN113127347B (en) Interface testing method, device, equipment and readable storage medium
US11119901B2 (en) Time-limited dynamic testing pipelines
US20120036497A1 (en) Integrity check while committing changes from an integrated development environment to a source code control system
WO2015096661A1 (en) Project creation method and device based on configuration system, project test method and device, and background test method and device for configuration system
US20070234328A1 (en) File handling for test environments
CN113448862B (en) Software version testing method and device and computer equipment
CN110865806B (en) Code processing method, device, server and storage medium
EP2199905A1 (en) Lifecycle management and consistency checking of object models using application platform tools
CN114237754A (en) Data loading method and device, electronic equipment and storage medium
US20080172659A1 (en) Harmonizing a test file and test configuration in a revision control system
CN112069073A (en) Test case management method, terminal and storage medium
US9396239B2 (en) Compiling method, storage medium and compiling apparatus

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