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

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

Info

Publication number
CN111158730A
CN111158730A CN201911425393.XA CN201911425393A CN111158730A CN 111158730 A CN111158730 A CN 111158730A CN 201911425393 A CN201911425393 A CN 201911425393A CN 111158730 A CN111158730 A CN 111158730A
Authority
CN
China
Prior art keywords
updated
service
logic
service logic
code
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201911425393.XA
Other languages
Chinese (zh)
Other versions
CN111158730B (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

Images

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

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: the calling relation between the 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 carrying out online on the updated system. According to the technical scheme provided by the embodiment of the application, when the business system such as the active middle station is off-line, the data corresponding to the business logic related to the business can be cleared along with the off-line of the business, so that the situation that the business is started slowly and the stability of the service is influenced along with the increase of the demand can be avoided.

Description

System updating method and device, electronic equipment and readable storage medium
Technical Field
The present application relates to the field of software system technologies, and in particular, to a system updating method, an apparatus, an electronic device, and a readable storage medium.
Background
With the development of the internet, more and more online sales promotion activities and the like appear. The requirements of the activity class have a characteristic of strong customization and online validity. After an activity is taken off-line, the customized background business logic is no longer used except for some componentized functionality. However, in the process of the activity customization development, some logic such as pre-processing, storing and caching components, message components and the like after the engineering is started may be used, and since the logic does not depend on external access, the logic is executed when the engineering is started after the activity is off-line. If not processed, the logic will cause the project to start slowly and depend unnecessarily too much with the increase of the demand, and the stability of the service is affected.
In view of the technical problems in the related art, no effective solution is provided at present.
Disclosure of Invention
To solve the above technical problem or at least partially solve the above technical problem, the present application provides a system updating method, an apparatus, an electronic device, and a readable storage medium.
In a first aspect, the present application provides a system upgrade 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: the calling relation between the 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 carrying out online on the updated system.
Optionally, as in the foregoing system updating method, the querying, according to the identification information, the service logic corresponding to the service to be updated in the system to be updated includes:
positioning a corresponding first method in the system to be updated according to the identification information and a preset incidence relation, wherein the first method is a method for receiving access in the service to be updated;
according to the first method, the service logic corresponding to the service to be updated is obtained in the system to be updated in a traversing mode.
Optionally, as in the foregoing system updating method, according to the first method, the traversing the system to be updated 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 sequence according to the first method, and determining a second method which has an association relation with the first method in each architecture layer;
and obtaining the service logic according to the incidence relation.
Optionally, as in the foregoing system updating method, obtaining an updated system according to the system to be updated and the service logic includes:
annotating the service logic according to a preset annotation strategy to obtain annotated logic;
determining a code to be downloaded according to the annotated logic;
obtaining the updated code according to the system to be updated and the code to be downloaded;
and determining the updated system according to the updated code.
Optionally, as in the foregoing system updating method, obtaining an updated system according to the system to be updated and the service logic includes:
performing association relationship release on the service logic in the system to be updated to obtain the updated code;
and determining the updated system according to the updated code.
Optionally, as in the foregoing system updating method, the bringing the updated system online includes:
verifying the updated system to obtain a verification result;
and when the verification result meets the preset requirement, replacing the system to be updated with the updated system.
Optionally, as in the foregoing system updating method, the verifying the updated code includes:
submitting the updated code corresponding to the updated system to a code library;
and when the test environment meets the preset requirement, verifying the updated code according to the preset functional requirement.
In a second aspect, the present application provides a system update apparatus, comprising:
a determining module, 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: the calling relation between the 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 service 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 system 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 the 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, characterized in that the non-transitory computer-readable storage medium stores computer instructions that cause the 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 system updating 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: the calling relation between the 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 carrying out online on the updated system. According to the technical scheme provided by the embodiment of the application, when the business system such as the active middle station is off-line, the data corresponding to the business logic related to the business can be cleared along with the off-line of the business, so that the situation that the business is started slowly and the stability of the service is influenced along with 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 invention and together with the description, serve to explain the principles of the invention.
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, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a schematic flow chart of a system updating method provided in an embodiment of the present application;
FIG. 2 is a schematic flow chart of a system update method according to another embodiment of the present application;
FIG. 3 is a schematic flow chart of a system update method according to another embodiment of the present application;
FIG. 4 is a schematic flow chart of a system update method according to another embodiment of the present application;
FIG. 5 is a schematic flow chart of a system update method according to another embodiment of the present application;
FIG. 6 is a schematic flow chart of a system update method according to another embodiment of the present application;
FIG. 7 is a schematic flow chart of a system update method according to another embodiment of the present application;
FIG. 8 is a flowchart illustrating a system updating method according to an exemplary embodiment of the present disclosure;
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
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all 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 application.
Fig. 1 is a system updating method provided by an embodiment of the present application, including the following steps S1 to S4:
step S1, identification information of a service to be updated is determined, the service to be updated is a service for performing service logic update in a system to be updated, and the service logic comprises: and calling relations among methods related to the service to be updated.
Specifically, the system to be updated may be an active operating console, which 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 and relations among the methods for realizing a certain activity; the service to be updated may be a service for performing logic update or a service for performing logic deletion, and generally, the original logic needs to be deleted for performing both logic update and logic deletion.
Generally, 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 activities; the identification information may be: ID. Addresses and the like can be positioned to the information of the service to be updated; generally, since the identification information is used to enable the visitor to accurately locate a specific service through the identification information, a unique correspondence exists between the identification information and the service to be updated.
Specifically, each service to be updated is generally composed of a plurality of methods; combining all the methods to form an integral service, and requiring corresponding service logic; the dependency reference relationships among the general methods are sub-logics that constitute the overall business logic, wherein the dependency reference relationships include: the mutual calling and access relations among different methods are realized; therefore, as can be seen from the above, the business logic is an overall logic relationship that associates the methods with each other to implement all functions in the business.
And 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 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 a service logic from a system to be updated, so as to prevent the service logic and an associated method from being executed in the background after a service is offline, and therefore, the updated system does not include the service logic; the original method in the general system to be updated does not delete.
And S4, carrying out online on the updated system.
Generally, before the updated system is brought online, the system to be updated is taken offline. For example, when the method in the service logic of the service to be updated includes the related methods such as the implementation of preprocessing, the storage and cache component, the message component, and the like, the cancellation of the call relationship among the methods can be implemented by deleting the service logic, and further, the association relationship related to the service to be updated does not exist among the methods, so that the execution of the methods such as unnecessary preprocessing, the storage, the cache, the message generation, and the like is not required, and the purposes of removing unnecessary dependence and improving the overall stability of the system are achieved.
As shown in fig. 2, in some embodiments, the aforementioned method for updating a system, step S2, queries, according to the identification information, a service logic corresponding to a service to be updated in the system to be updated, including the following steps S21 and S22:
and S21, positioning a corresponding first method in the system to be updated according to the identification information and a preset incidence relation, wherein the first method is a method for receiving access in the service to be updated.
Specifically, the first method is a method capable of locating through the identification information in the service to be updated, and since the identification information is generally an ID or an address, the method bound to the identification information is generally a method for receiving an 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 that each identification information may correspond to one or more first methods. For example, taking an online video service system as an example: during development, a plurality of functional modules (for example, a plurality of functional modules such as member recharging, personal information, series homepage, movie homepage and the like, wherein each functional module has a corresponding method) 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 setting of the preset association relationship between the identification information and the first method is realized.
One of the optional implementation methods may be: the service to be updated can be realized based on a spring container, and each service dynamic interface address can be bound to a specific method through the note of the spring. The specific method can be located through the API provided by the spring container. Among other things, Spring containers are the core of the Spring framework and can be used to manage methods, connect them together, configure them, and manage their entire lifecycle from creation to destruction. An API (application programming Interface) is a predefined function or a convention for linking different components of a software system.
S22, according to the first method, service logic corresponding to the service to be updated is obtained in a traversal mode in the system to be updated.
Specifically, each method in the same service is directly or indirectly associated with one 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, the service logic corresponding to the service to be updated can also be obtained.
As shown in fig. 3, in some embodiments, as the aforementioned system updating method, the step S21 is to traverse the service logic corresponding to the service to be updated in the system to be updated according to the first method, and includes the following steps S211 to S213:
and S211, determining each architecture layer of the system to be updated.
Specifically, each system is established based on a certain architecture, for example, when the system to be updated is based on the MVC architecture, the corresponding architecture layer sequentially includes a controller layer, a service layer, and a dao layer.
Wherein:
the DAO layer is also called a data access layer, is called a data access object, belongs to a comparison bottom layer, and is a comparison base operation, specifically, to add, delete, modify and check a certain table, that is, a certain DAO is necessarily in one-to-one correspondence with a certain table of a database, wherein the add, delete, modify and check basic operation is encapsulated.
The Service layer is also called a Service layer, called a Service, and is mainly used for re-encapsulating one or more DAOs into one Service.
The controller layer is mainly responsible for requesting and 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 DAO layer is mainly oriented to a database, and the Service is oriented to Service. When the back end develops, firstly all tables are designed in a 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 Service logic to provide a Service for the outside. And S212, traversing the architecture layers in sequence according to the first method, and determining a second method which has an association relation with the first method in each architecture layer.
Specifically, taking the MVC architecture as an example in the foregoing embodiment, a depth-first traversal method may be adopted, and after a specific method that locates, according to the identification information, a related function of the service to be updated in the controller layer, the method is changed to be an initial traversal node, and all other nodes associated with the service layer and the dao layer are traversed in sequence until all nodes associated with the initial node have been traversed.
And S213, obtaining the service logic according to the association relation.
Specifically, after obtaining each association relationship, the dependency reference relationship between each method can be determined, and further the overall service logic of the system can be obtained.
As shown in fig. 4, in some embodiments, in the system updating method, step S3 obtains an updated system according to a system to be updated and a service logic, which includes steps S311 to S314 as follows:
and S311, annotating the service logic according to a preset annotation strategy to obtain annotated logic.
And S312, determining the code to be downloaded according to the annotated logic.
And S313, obtaining an updated code according to the system to be updated and the code to be downloaded.
And S314, determining an updated system according to the updated code.
Specifically, the preset annotation strategy may be to label a code implementing the business logic part according to a specific annotation requirement; and obtaining the annotated logic (i.e., the business logic including the annotated content) after the business logic is annotated; furthermore, the annotation process can be carried out in a machine matching mode or a manual labeling mode by a software developer; therefore, after annotation, the offline code in the service system to be updated can be obtained according to the annotation content positioning; therefore, the offline codes to be treated can be deleted uniformly according to the annotations; and after the offline code is deleted from the system to be updated, the updated code and the updated system can be obtained.
According to the method in the embodiment, the code to be downloaded can be accurately positioned, and the code can be automatically deleted, so that the workload of developers is effectively reduced, and the accuracy is improved.
As shown in fig. 5, in some embodiments, in the foregoing system updating method, step S3 obtains an updated system according to a system to be updated and a service logic, including steps S321 and S322 as follows:
and S321, performing association relationship release on the service logic in the system to be updated to obtain an updated code. And S322, determining an updated system according to the updated code.
Specifically, the service logic itself is the sum of the association relations between the various methods corresponding to the service to be updated, so that the association relation release for the service logic may be: deleting every time one incidence relation is determined, or deleting uniformly after all incidence relations (namely business logic) are determined; generally, the association relationship between various methods is realized through codes, so that updated codes obtained after partial codes of a system to be updated are deleted after the association relationship is released for business logic. Thus, the updated system may also be determined from the updated code.
As shown in fig. 6, in some embodiments, in the foregoing system updating method, the step S4 brings the updated system on line, which includes the following steps S41 and S42:
and S41, verifying the updated system and obtaining a verification result.
Specifically, the verification of the updated system is to determine whether the system can normally operate after the original system is modified by the code; generally, verifying content includes: whether the preset function can be realized and whether the operation logic is correct. One of the optional implementation methods may be: the updated system is verified by CI test (persistent integration test, which is a kind of automation test), which includes compiling code, preparing a database, executing a test, analyzing code, creating installation and deployment contents, and generating documents. And the verification result may include: for the implementation of each function, the calling situation (service logic) between methods;
and S42, replacing the system to be updated with the updated system when the verification result meets the preset requirement.
Specifically, meeting the preset requirement may include: the functions can be preset, the operation can be performed according to preset logic, and the like; and when the verification result meets the preset requirement, representing 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 verified before the system is online, the condition that the system has defects is effectively avoided, and the use experience of a user can be effectively improved.
As shown in fig. 7, in some embodiments, the step S41 verifies the updated code according to the system updating method described above, including the steps S411 and S412 as follows:
and S411, submitting the updated codes corresponding to the updated system to a code base.
And S412, when the test environment meets the preset requirement, verifying the updated codes according to the preset functional requirement.
Specifically, the code library may be git or svn, and both git and svn are tools for performing source code management; wherein git is a distributed code management tool for opening sources, and each computer is equivalent to a server, so that the method 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 (such as downloading and submitting) of other computers can be executed only through the server; which tool is specifically adopted as the code library can be selected according to specific requirements.
Since the code library has: recording, tracking, version control, authority control, responsibility exploration, rollback processing, conflict resolution and other functions, wherein:
1. recording, the whole process of an item from beginning to end can be recorded.
2. Tracking, tracking changes to all content in the project, such as what content was added, what content was deleted, what content was modified, and so forth.
3. Version control can clearly know the difference and the homology between each version, such as what content, functions and the like of version 2.0 is more than that of version 1.0.
Thus, it is clear which changes have occurred to the code.
Optionally, the updated code may be committed to the code library by committing commit points, so that at commit time, if only part of the commit is successful and the other part fails, all updates will automatically roll back. And if all updated codes are successfully submitted, judging that the codes are successfully submitted.
To implement the method in step S412, the testing environment may also be bound to Jenkins, which is an open-source Continuous Integration (CI) tool that provides a friendly operation interface, and is mainly used for continuously and automatically building/testing software projects 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 according to the preset function requirement by submitting the commit point to the corresponding test tool, so as to verify whether the updated code can realize the preset function.
By the method in the embodiment, the testing of the codes can be automatically realized, the automation degree is further improved, and the stability of an online system is ensured. As shown in fig. 8, an application example of the method in the above embodiment according to the present application is:
I. when an active project (service to be updated) is offline in 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.
Detecting the specific method of locating the related functions of the activity in the controller layer according to the activity identification (activity id, activity address and the like) aiming at the activity engineering which is operated to be offline.
And III, sequentially traversing the dependent references introduced by the service layer and the dao layer from the controller layer by using a depth-first traversal method, and finding out the customization logic of the activity, wherein the customization logic comprises data initialization at project starting, a customized message queue, a customized data storage and the like.
And IV, carrying out annotation operation or independent reference operation on the located activity customization logic, and submitting the updated code to the code base in a mode of submitting the commit point.
And V, submitting the updated code to an automatic test tool in a commit point submitting mode, triggering the automatic test tool to test the updated code, and verifying the engineering logic.
And VI, after the automatic test is passed, triggering the updated system to automatically go on line, and completing the original code off-line process.
As shown in fig. 9, according to an embodiment of another method of the present application, the present application further provides a system update 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: and calling relations among methods related to the service to be updated.
And the positioning module 2 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.
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.
Specifically, the specific process of implementing the functions of each module in the apparatus according to the embodiment of the present invention may refer to the related description in the method embodiment, and is not described herein again.
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 system 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 complete communication with each other through the communication bus 1504.
A memory 1503 for storing a computer program;
the processor 1501 is configured to implement the steps of the above-described method embodiments when executing the program stored in the memory 1503.
The bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a 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 processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
Embodiments of the present application also provide a non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform the steps of the above-described method embodiments.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be 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. Also, 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 an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The foregoing are merely exemplary embodiments of the present invention, which enable those skilled in the art to understand or practice 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 system upgrade 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: the calling relation between the 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 carrying out online on the updated system.
2. The system updating method according to claim 1, wherein the querying, according to the identification information, the service logic corresponding to the service to be updated in the system to be updated includes:
positioning a corresponding first method in the system to be updated according to the identification information and a preset incidence relation, wherein the first method is a method for receiving access in the service to be updated;
according to the first method, the service logic corresponding to the service to be updated is obtained in the system to be updated in a traversing mode.
3. The system updating method according to claim 2, wherein the 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 sequence according to the first method, and determining a second method which has an association relation with the first method in each architecture layer;
and obtaining the service logic according to the incidence relation.
4. The system updating method according to claim 1, wherein obtaining an updated system according to the system to be updated and the service logic comprises:
annotating the service logic according to a preset annotation strategy to obtain annotated logic;
determining a code to be downloaded according to the annotated logic;
obtaining the updated code according to the system to be updated and the code to be downloaded;
and determining the updated system according to the updated code.
5. The system updating method according to claim 1, wherein obtaining an updated system according to the system to be updated and the service logic comprises:
performing association relationship release on the service logic in the system to be updated to obtain the updated code;
and determining the updated system according to the updated code.
6. The system updating method according to claim 1, wherein the bringing the updated system online comprises:
verifying the updated system to obtain a verification result;
and when the verification meets the preset requirement, replacing the system to be updated with the updated system.
7. The system updating method of claim 6, wherein the verifying the updated code comprises:
submitting the updated code corresponding to the updated system to a code library;
and when the test environment meets the preset requirement, verifying the updated code according to the preset functional requirement.
8. A system update apparatus, comprising:
a determining module, 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: the calling relation between the 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 service logic;
and the online module is used for online the updated system.
9. An electronic device, comprising: the system 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, when executing the computer program, is configured to implement the system updating method of any one of claims 1 to 7.
10. A non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform the system update method of any one of claims 1-7.
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 true CN111158730A (en) 2020-05-15
CN111158730B 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)

Cited By (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
CN112988190A (en) * 2021-03-12 2021-06-18 北京奇艺世纪科技有限公司 Application online method and 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

Cited By (6)

* 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
CN112988190A (en) * 2021-03-12 2021-06-18 北京奇艺世纪科技有限公司 Application online method and device, computer equipment and 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
CN113626050B (en) * 2021-07-22 2024-06-04 北京金山云网络技术有限公司 Medical application updating method and device, 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

Also Published As

Publication number Publication date
CN111158730B (en) 2023-09-01

Similar Documents

Publication Publication Date Title
CN109358858B (en) Automatic deployment method, device, medium and electronic equipment
CN111158730A (en) System updating method and device, electronic equipment and readable storage medium
CN108319460B (en) Method and device for generating application program installation package, electronic equipment and storage medium
US8954930B2 (en) System and method for reducing test effort by object risk analysis
US8321856B2 (en) Supplying software updates synchronously
US20170372247A1 (en) Methods, systems, and articles of manufacture for implementing software application development and releases
CN108776643B (en) Target code merging control method and system based on version control process
US11055078B2 (en) Systems and methods for deploying software products to environments
CN108196878A (en) Generation method, device, electronic equipment and the storage medium of application program installation kit
CN103632219A (en) Method and system for reallocating jobs for checking data quality
US9542173B2 (en) Dependency handling for software extensions
EP3166031B1 (en) Bi-directional synchronization of data between a product lifecycle management (plm) system and a source code management (scm) system
EP3166029B1 (en) Exporting hierarchical data from a source code management (scm) system to a product lifecycle management (plm) system
CN113448862B (en) Software version testing method and device and computer equipment
CN110865806B (en) Code processing method, device, server and storage medium
CN110727575A (en) Information processing method, system, device and storage medium
CN114237754A (en) Data loading method and device, electronic equipment and storage medium
CN113721973A (en) Configuration file generation method, device, equipment and medium
US20080172659A1 (en) Harmonizing a test file and test configuration in a revision control system
US9396239B2 (en) Compiling method, storage medium and compiling apparatus
JP2006294019A (en) Generic software requirement analyzer
EP3166030B1 (en) Exporting hierarchical data from a product lifecycle management (plm) system to a source code management (scm) system
CN112765188B (en) Configuration information processing method, configuration management system, electronic device and storage medium
CN115167896A (en) Method and device for updating software version, storage medium and electronic equipment
CN112748950B (en) Software code examination method and device

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