Method, device and system for running software service in software development, electronic equipment and medium

By starting software services in software development computing devices and starting infrastructure processes in memory, infrastructure maintenance costs and data conflicts in software development are solved, and software development efficiency is improved.

CN119938126APending Publication Date: 2025-05-06BEIJING WUWEN CORE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510019087.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-07
Publication Date
2025-05-06

AI Technical Summary

Technical Problem

During the software development process, as the scale of software business expands, the maintenance cost of infrastructure increases, and data conflicts between multiple software development projects often occur, affecting the efficiency of software development.

Method used

By starting software services in software-developed computing devices and obtaining configuration information from shared code bases, identifying infrastructure that needs to be preloaded, starting its processes in memory, and providing ports, calling business data in memory, avoiding the need to deploy infrastructure in external services.

Benefits of technology

This method makes the call of business data more convenient, the management and use of infrastructure more efficient, reduces maintenance costs, reduces data conflict problems, and improves software development efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119938126A_ABST
    Figure CN119938126A_ABST
Patent Text Reader

Abstract

The invention provides a method, device and system for running software services in software development, electronic equipment and a medium. The method comprises the following steps: starting a software service in a computing device for software development, and acquiring configuration information of the software service from a code library shared by a plurality of computing devices for software development; according to the configuration information of the software service, determining an infrastructure which needs to be preloaded by the software service; starting a process of the infrastructure in a memory managed by the computing device, and providing a port of the infrastructure according to the configuration information; through a preloading file in the code library, writing service data to be called by running a software service in the software service into the infrastructure; and calling the service data from the infrastructure through the port, and running the software service based on the service data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of software development technology, and in particular to a method, device, system, electronic device and medium for running software business in software development. Background Art

[0002] The development and testing of software programs or applications (Apps) require the support of infrastructure such as cache systems, databases, etc. In related technologies, during the development, testing or formal use of software services, these infrastructures are usually deployed and run in external services independent of the software services, and require specialized personnel for maintenance and management.

[0003] As the scale of software business continues to expand, the number of infrastructures will inevitably increase, which will in turn cause the maintenance cost of infrastructure to continue to rise. On the other hand, when multiple software development projects are carried out in parallel, data conflicts between infrastructures may often occur. For example, when multiple software development projects can make changes to the same data in the same infrastructure, the changes made by one software development project to the data are unknown and unpredictable to other software development projects, which may cause unknown errors when other software development projects use the data, resulting in a lot of time spent on finding and resolving data conflicts, affecting software development efficiency. Summary of the invention

[0004] The present application provides a method, device, system, electronic device and medium for running software business in software development, so as to more conveniently call business data and manage and use infrastructure, thereby improving software development efficiency.

[0005] In order to achieve the above objectives, this application adopts the following technical solutions:

[0006] In a first aspect, a method for running a software business in software development is provided, the method comprising:

[0007] Starting a software service in a computing device that is performing software development, and obtaining configuration information of the software service from a code base shared by a plurality of computing devices that are performing software development;

[0008] Determining, based on the configuration information of the software service, the infrastructure that needs to be preloaded for the software service;

[0009] Starting a process of the infrastructure in a memory managed by the computing device and providing a port of the infrastructure according to the configuration information;

[0010] Writing the business data to be called by running the software business in the software service into the infrastructure through the preloaded files in the code library;

[0011] The service data is called from the infrastructure through the port, and the software service is run based on the service data.

[0012] Optionally, the method further comprises: starting the software service in the memory in a lazy loading manner without requiring preloading of the infrastructure software service.

[0013] Optionally, the method further includes: when other infrastructure of a type different from the infrastructure needs to be used during the operation of the software service, starting the process of the other infrastructure in the memory and providing a port of the other infrastructure.

[0014] Optionally, business data is obtained from the other infrastructure through a port of the other infrastructure, and the software business software service is run based on the business data from the infrastructure and the business data from the other infrastructure.

[0015] Optionally, the infrastructure includes a database.

[0016] Optionally, the infrastructure is one of a Mysql database, an ES database and a Mongo database, and the other infrastructure is a Redis database.

[0017] In a second aspect, a device for software development is provided, the device comprising:

[0018] a software service startup module, configured to start a software service in the apparatus and obtain configuration information of the software service from a code base shared by a plurality of computing devices performing software development;

[0019] A preloaded infrastructure determination module, used to determine the infrastructure that needs to be preloaded for the software service according to the configuration information of the software service;

[0020] an infrastructure startup module, configured to start a process of the infrastructure in a memory managed by the device and provide a port of the infrastructure according to the configuration information;

[0021] A business data writing module, used to write business data to be called by running software business in the software service into the infrastructure through the preloaded files in the code library;

[0022] The software service running module is used to call the service data from the infrastructure through the port and run the software service based on the service data.

[0023] Optionally, the device starts the software service in the memory in a lazy loading manner without preloading the infrastructure.

[0024] Optionally, when other infrastructure of a type different from the infrastructure needs to be used during the operation of the software service, the device starts the process of the other infrastructure in the memory and provides a port of the other infrastructure.

[0025] Optionally, the device obtains business data from the other infrastructure through a port of the other infrastructure, and runs the software business based on the business data from the infrastructure and the business data from the other infrastructure.

[0026] Optionally, the infrastructure includes a database.

[0027] Optionally, the infrastructure is one of a Mysql database, an ES database and a Mongo database, and the other infrastructure is a Redis database.

[0028] In a third aspect, a system for software development is provided, the system comprising a plurality of computing devices for software development, each of the plurality of computing devices performing the following operations:

[0029] Starting a software service in the computing device and obtaining configuration information of the software service from a code library shared by the plurality of computing devices;

[0030] Determining, based on the configuration information of the software service, the infrastructure that needs to be preloaded for the software service;

[0031] Starting a process of the infrastructure in a memory managed by the computing device and providing a port of the infrastructure according to the configuration information;

[0032] Writing the business data to be called by running the software business in the software service into the infrastructure through the preloaded files in the code library;

[0033] The service data is called from the infrastructure through the port, and the software service is run based on the service data.

[0034] In a fourth aspect, an electronic device is provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method for running software business in software development as described in an embodiment of the present application.

[0035] In a fifth aspect, a non-transitory computer-readable storage medium is provided, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute a method for running a software business in software development as described in an embodiment of the present application.

[0036] The method, apparatus, system, electronic device and medium for running software business in software development provided by the embodiments of the present application can eliminate the need to deploy and run infrastructure in an external service independent of the software service. Instead, the computing device performing software development starts the process of the infrastructure that needs to be preloaded in its memory according to the configuration information in the shared code library, and then calls the business data from the infrastructure started in the memory, so that the calling of business data and the management and use of the infrastructure can be more convenient, thereby improving the efficiency of software development. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Figure 1 A flowchart of a method for running software business in software development in the prior art;

[0038] Figure 2A A flowchart of a method for running a software business in software development provided by an embodiment of the present application;

[0039] Figure 2B A schematic diagram of an application example of a method for running a software business in software development provided by an embodiment of the present application;

[0040] Figure 3 A schematic diagram of the structure of a device for software development provided in an embodiment of the present application;

[0041] Figure 4 The present invention provides a schematic diagram of a method or device that can implement an embodiment of the present invention or a method of implementing an embodiment of the present invention. DETAILED DESCRIPTION

[0042] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of the well-known business call service processes are omitted to prevent unnecessary details from obstructing the description of the present application.

[0043] The terms used in the following embodiments are only for the purpose of describing specific embodiments and are not intended to be limiting of the present application. As used in the specification and appended claims of the present application, the singular expressions "a", "said", "above", and "the" are intended to also include expressions such as "one or more", unless the context clearly indicates otherwise.

[0044] The development and testing of software programs or applications (Apps) require the support of infrastructure such as cache systems, databases, etc. In related technologies, during the development, testing or formal use of software services, these infrastructures are usually deployed and run in external services independent of the software services, and require specialized personnel for maintenance and management.

[0045] As the scale of software business continues to expand, the number of infrastructures will inevitably increase, which will in turn cause the maintenance cost of infrastructure to continue to rise. On the other hand, when multiple software development projects are carried out in parallel, data conflicts between infrastructures may often occur. For example, when multiple software development projects can make changes to the same data in the same infrastructure, the changes made by one software development project to the data are unknown and unpredictable to other software development projects, which may cause unknown errors when other software development projects use the data, resulting in a lot of time spent on finding and resolving data conflicts, affecting software development efficiency.

[0046] In view of this, the present application proposes a method for running software business in software development, which can eliminate the need to deploy and run infrastructure in an external service independent of the software service. Instead, the computing device performing software development starts the process of the infrastructure that needs to be preloaded in its memory according to the configuration information in the shared code library, and then calls the business data from the infrastructure started in the memory, so that the calling of business data and the management and use of the infrastructure can be more convenient, thereby improving the efficiency of software development.

[0047] It should be understood that the software service in this application can be understood as a collection of all functions provided by the software, or can be understood as the software itself. Software services include various software services, and software services can be understood as specific functions provided by the software, or can be understood as various modules of the software. For example, software services can be e-commerce, and the software services included can be user registration and login, product browsing, purchase ordering, payment, etc.

[0048] The following first introduces a method of running software business in software development in the prior art, see Figure 1 . Figure 1 FIG. 1 is a flow chart of a method for running software business in software development in the prior art, such as Figure 1The method shown includes the following steps:

[0049] S101: receiving a request for starting a software service. Specifically, when a software service needs to be started, a software service start request is sent, and the software service start request is a start signal for starting the software service.

[0050] S102: Obtain the infrastructure that the software service needs to connect to (needs to be preloaded). Specifically, in this step, determine which infrastructure the software service needs to connect to. This step is usually implemented by the main function of the software service, which determines the type of infrastructure that needs to be connected based on the type and requirements of the software service. Figure 1 The infrastructure to be connected is one of the Mysql database, Redis database, Mongo database and ES database, and the corresponding connection method is the Mysql connection method, Redis connection method, Mongo connection method and ES connection method in the figure. The embodiment of the present application does not specifically limit the infrastructure and its connection method, that is, the type of infrastructure can be changed according to actual needs. Figure 1 As shown, in the prior art, these infrastructures are deployed in external services that are independent of software services (including development processes and testing processes).

[0051] S103: Obtain connection information through configuration files. Specifically, after determining the infrastructure to be connected, obtain specific information required for the connection, such as the database address, port, user name, password, etc. This information is usually stored in configuration files, and the connection information is obtained by reading these configuration files. The format and content of the configuration files can be customized according to the specific software service requirements to meet different connection requirements.

[0052] S104: Perform synchronous or asynchronous connection. Specifically, in this step, you can choose to perform synchronous or asynchronous connection according to the needs of the software service. Synchronous connection means that before the connection is established, other operations will be blocked until the connection succeeds or fails. This method is suitable for scenarios with high requirements for connection speed and stability. Asynchronous connection allows other tasks to continue to be performed during the connection process.

[0053] S105: Return connection information after successful connection. Specifically, if the connection is successfully established, the connection information is returned to the software service that requested the connection, indicating that the infrastructure is ready to accept external calls.

[0054] S106: Call the connected infrastructure. Specifically, after the connection with the infrastructure is successful, the infrastructure can call normal business data. Multiple software development projects or multiple R&D personnel (such as R&D A, R&D B, R&D C, R&D D and R&D E in the figure) can call various infrastructures in the deployed external services at the same time. The call may include data query, data writing, business logic processing, etc.

[0055] S107: Get the business data to carry out normal business flow (run software business). It should be noted that the above method steps are described with the R&D A startup process as an example, and the startup processes of R&D B, R&D C, R&D D and R&D E are similar, so they will not be repeated here.

[0056] It can be seen that according to the software business operation method in the prior art, the infrastructure is deployed and operated in an external service independent of the software service, and the business data is also stored in these independently deployed infrastructures. These independently deployed infrastructures require specialized personnel for maintenance and management, and, for example, when multiple software development projects or multiple R&D personnel can make changes to the same data in the same infrastructure, the changes made by one software development project or R&D personnel to the data are unknown and unpredictable to other software development projects or R&D personnel, which may cause unknown errors when other software development projects or R&D personnel use the data, resulting in a lot of time spent on finding and resolving data conflicts, affecting software development efficiency.

[0057] The following is an introduction to the method for running software services in software development provided by the embodiment of the present application, see Figure 2A and Figure 2B . Figure 2A A flowchart of a method for running a software service in software development provided in an embodiment of the present application is provided. Figure 2B This is a schematic diagram of an application example of a method for running a software business in software development provided by an embodiment of the present application. Note that Figure 2B The solid line boxes and solid line arrows in the figure represent the steps and processes of the method, the dash-dot box represents the data instance or entity, and the dash-dot arrow represents the data flow or command flow. Figure 2B Only the startup process of developer A is shown, but it should be understood that other developers can also use the same process.

[0058] like Figure 2A As shown, the method for running software services in software development according to an embodiment of the present application includes the following steps.

[0059] S201: Start a software service in a computing device that is developing software, and obtain configuration information of the software service from a code base shared by multiple computing devices that are developing software (also referred to herein as a “shared code base”).

[0060] In the embodiment of the present application, when it is necessary to start a software service for development or testing during the software development process, the corresponding software service can be started in a computing device (such as a computer, etc.) for software development, for example, by running the code of the software service. After starting the software service, for example, Figure 2B As shown, the subsequent steps of the method for running software business in software development according to the embodiment of the present application can be implemented by loading the software development kit (SDK) provided by the embodiment of the present application. In addition, after starting the software service, the configuration information of the software service is obtained from the code base shared by multiple computing devices for software development. The multiple computing devices for software development can be multiple computing devices that develop the same software at the same time, or multiple computing devices that develop different software respectively. The code base is shared by multiple computing devices and is responsible for managing the configuration information of each software service. The configuration information can be, for example, the code, text, table, command line, etc. of the infrastructure that supports the software service and the infrastructure that needs to be preloaded when starting the software service, or it can be a separate configuration file. The configuration file can be, for example, a file in the format of YAML, JSON, XML, etc.

[0061] S202: Determine the infrastructure that needs to be preloaded for the software service according to the configuration information of the software service.

[0062] In the embodiment of the present application, in this step, the infrastructure that needs to be preloaded can be determined based on the configuration information of the software service. In the embodiment of the present application, the infrastructure includes a database. For example, Figure 2BIn the application example shown, it is determined that the infrastructure that needs to be preloaded is a Mysql database. Of course, the infrastructure that needs to be preloaded is not limited to the Mysql database, for example, it can also be an ES database and a Mongo database, or it can be any other infrastructure applicable to the method for running software business in software development in the embodiment of the present application. The preloaded infrastructure should usually be loaded immediately when the software service is started to ensure the rapid response and stable operation of the software service. On the other hand, in this step, it can also be determined that the infrastructure that does not need to be preloaded. In the embodiment of the present application, the infrastructure that does not need to be preloaded can be started by lazy loading. Lazy loading means that the infrastructure is started only when the software service actually needs to be used, which can save system resources and increase the startup speed of the software service. For example, other infrastructures that are different from the preloaded infrastructure and are only needed during the operation of the software business as described later are infrastructures that do not need to be preloaded and can be started by lazy loading.

[0063] S203: Start the process of the infrastructure that needs to be preloaded in the memory managed by the computing device that started the software service, and provide the port of the infrastructure that has been started in the memory (also referred to as "memory infrastructure" in this article) according to the configuration information of the software service.

[0064] In an embodiment of the present application, after the infrastructure that needs to be preloaded is determined, the process of the infrastructure that needs to be preloaded is started in the memory managed by the computing device that started the software service. The memory managed by the computing device that started the software service can be the local memory of the computing device, or it can be the server memory for which it has management authority. Thus, there is no need to deploy the infrastructure in an external service. Instead, the infrastructure can be managed and used during the operation of the software service by only using the computing device that starts the software service, thereby avoiding a series of problems caused by deploying the infrastructure in an external service. When the process of the infrastructure is started in the memory, the port of the infrastructure accessible to the computing device can be provided according to the configuration information of the software service. R&D personnel can configure the software service to use the port of the provided infrastructure by default, or they can manually adjust the port as needed. For example, in Figure 2B In the application example, when the infrastructure that needs to be preloaded is a MySQL database, a process of the MySQL database (memory MySQL) is started in the memory managed by the computing device that starts the software service, and a port for accessing the memory MySQL is provided.

[0065] S204: The business data to be called for running the software business in the software service is written into the infrastructure through the preloaded files in the shared code library.

[0066] In the embodiment of the present application, after starting the process of the infrastructure in the memory, the software service can write the business data to be called by running the software business and managed by the shared code library into the memory infrastructure at one time through the preloaded file in the shared code library via the aforementioned port. Figure 2B In the application example, when the memory Mysql is started, the business data is written to the memory Mysql through the preloaded file in the shared code library, so that the business data can be called from the memory Mysql when the software business is running. The preloaded file may, for example, include table creation statements, data insertion statements, index creation statements, etc. corresponding to the memory infrastructure. In this way, the framework of the memory infrastructure is built (the infrastructure process is started), and the memory infrastructure is filled with content (business data is written). When the software business is running in the software service, the required business data can be obtained from the memory infrastructure in real time. Since these business data and the aforementioned configuration information are uniformly maintained and managed by the shared code library, and other R&D personnel of the software development project also obtain business data through the shared code library, different R&D personnel of the same software development project can obtain consistent business data and configuration information.

[0067] S205: calling the business data from the memory infrastructure through the port of the memory infrastructure, and running the software business based on the business data.

[0068] In the embodiment of the present application, after the service data to be called by the software service is written into the memory infrastructure, the software service can call the service data from the memory infrastructure through the port of the provided memory infrastructure, and run the corresponding software service based on the called service data. Figure 2B In the application example, when the business data is written to the in-memory Mysql, the business data can be called from the in-memory Mysql to run the software business. As mentioned above, the call may include data query, data writing, business logic processing, etc. In this way, the infrastructure is started in the memory managed by the computing device that starts the software service and the business data is called from the infrastructure. Even if the business data is changed, it can be guaranteed that the change is only made within the management scope of the computing device, and the changed business data will not be transmitted to other computing devices. Different developers of the same software development project can call business data without affecting each other, avoiding data conflicts and unknown errors caused by data changes at one developer at other developers.

[0069] In the embodiment of the present application, when other infrastructure of a different type from the started memory infrastructure is needed during the operation of the software service, the process of the other infrastructure can be started in the memory, and the port of the other infrastructure can be provided. Next, the software service can obtain business data from the other infrastructure through the port, and run the software service based on the business data from the started infrastructure and the business data from the other infrastructure.

[0070] For example, in Figure 2B In the application example, when it is found that the Redis database needs to be used when running a software service based on the business data from the memory Mysql, the process of the Redis database (memory Redis) can be started in the memory managed by the computing device that starts the software service (which can be the same memory as the memory that starts Mysql, or it can be a different memory), and the port of the memory Redis can be provided. In this way, the software service can obtain business data from the memory Redis through the port, and run the software service based on the business data from the previously started memory Mysql and the business data from the newly started memory Redis. The business data in the memory Redis can be, for example, business data pre-written into the memory, or business data generated during the operation of the software service and temporarily stored in the memory.

[0071] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0072] The above describes a method for running a software service in software development. The following describes a device for software development that can implement the method. Figure 3 . Figure 3 The schematic diagram of the structure of the device for software development provided in the embodiment of the present application. For the convenience of explanation, only the main parts related to the embodiment of the present application are shown. Figure 3 As shown, the device for software development includes: a software service starting module 301 , a preloaded infrastructure determining module 302 , an infrastructure starting module 303 , a business data writing module 304 and a software business running module 305 .

[0073] The software service startup module 301 is used to start the software service in the device and obtain the configuration information of the software service from a code base shared by multiple computing devices for software development. The software service startup module 301 starts the software service to trigger the subsequent processing flow once receiving the software service startup request by monitoring a specific port or interface. For the specific functions of the software service startup module 301, see the description of step S201 above.

[0074] The preloaded infrastructure determination module 302 is used to determine the infrastructure that needs to be preloaded for the software service according to the configuration information of the software service. The specific function of the preloaded infrastructure determination module 302 is described in the above description of step S202.

[0075] The infrastructure startup module 303 is used to start the process of the infrastructure in the memory managed by the device and provide the port of the infrastructure according to the configuration information. The specific function of the infrastructure startup module 303 is, for example, referred to the description of step S203 and the description related to starting other infrastructures.

[0076] The business data writing module 304 is used to write the business data to be called by running the software business in the software service into the infrastructure through the preloaded files in the code library. The specific functions of the business data writing module 304 are described in the above description of step S204.

[0077] The software service operation module 305 is used to call the service data from the infrastructure through the port and operate the software service based on the service data. The specific functions of the software service operation module 305 are described in the above description of step S205 and the description related to the service data from other infrastructures.

[0078] In summary, the method for running software business in software development and the device for software development provided in the embodiments of the present application can eliminate the need to deploy and run infrastructure in an external service independent of the software service. Instead, the computing device performing software development starts the process of the infrastructure that needs to be preloaded in its memory according to the configuration information in the shared code library, and then calls the business data from the infrastructure started in the memory, so that the business data can be called more conveniently and the infrastructure can be managed and used, thereby improving the efficiency of software development.

[0079] In the embodiments of the present application, the infrastructure is started in memory instead of being deployed in external services, which avoids dependence on external services and saves the cost of maintaining external services. By calling business data from the infrastructure started in memory, the speed and efficiency of data processing are significantly improved, and the overhead of network transmission is reduced. In addition, due to the high performance and low latency characteristics of memory data, the present application is particularly suitable for application scenarios that require real-time response, such as financial transactions, telecommunications network event processing, and online advertising.

[0080] In addition, the embodiment of the present application also stores configuration information and business data through a shared code base, so that all R&D personnel of the same software development project can obtain the same business data and configuration information, so that efficient R&D work can be carried out in parallel. This data sharing method reduces data conflicts between R&D team members and improves the efficiency of team collaboration.

[0081] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0082] The embodiment of the present application further provides a system for software development, the system comprising a plurality of computing devices for software development, each of the plurality of computing devices performing the following operations:

[0083] Starting a software service in the computing device and obtaining configuration information of the software service from a code library shared by the plurality of computing devices;

[0084] Determining, based on the configuration information of the software service, the infrastructure that needs to be preloaded for the software service;

[0085] Starting a process of the infrastructure in a memory managed by the computing device and providing a port of the infrastructure according to the configuration information;

[0086] Writing the business data to be called by running the software business in the software service into the infrastructure through the preloaded files in the code library;

[0087] The service data is called from the infrastructure through the port, and the software service is run based on the service data.

[0088] The present application also provides an electronic device, which includes:

[0089] at least one processor; and,

[0090] a memory communicatively connected to the at least one processor; wherein,

[0091] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the method for running software business in software development in any of the aforementioned embodiments.

[0092] On the other hand, an embodiment of the present application also provides a non-transitory computer-readable storage medium, which stores computer instructions, and the computer instructions are used to enable the computer to execute the method for running software business in software development described in any of the aforementioned embodiments.

[0093] An embodiment of the present application also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer executes any of the aforementioned embodiments of the method for running software business in software development.

[0094] An embodiment of the present application further provides a computer program, which includes program instructions. When the program instructions are executed by a computer, the computer is caused to execute the method for running software business in software development of any of the aforementioned embodiments.

[0095] Figure 4 The schematic diagrams of the methods or devices for implementing the embodiments of the present application provided for the embodiments of the present application may include more or fewer devices than shown in the figure in some embodiments. In some embodiments, the implementation may be implemented using a single or multiple devices. In some embodiments, the implementation may be implemented using cloud or distributed devices.

[0096] like Figure 4As shown, the device 1000 includes a processor 1001, which can perform various appropriate operations and processes according to the program and / or data stored in the read-only memory (ROM) 1002 or the program and / or data loaded from the storage part 1008 to the random access memory (RAM) 1003. Processor 1001 can be a multi-core processor or can include multiple processors. In some embodiments, processor 1001 can include a general main processor and one or more special coprocessors, such as a central processing unit (CPU), a graphics processing unit (GPU), a neural network processor (NPU), a digital signal processor (DSP), etc. In RAM 1003, various programs and data required for the operation of device 1000 are also stored. Processor 1001, ROM 1002 and RAM 1003 are connected to each other via bus 1004. Input / output (I / O) interface 1005 is also connected to bus 1004.

[0097] The processor and the memory are used together to execute the program stored in the memory. When the program is executed by the computer, the methods, steps or functions described in the above embodiments can be implemented.

[0098] The following components are connected to the I / O interface 1005: an input section 1006 including a keyboard, a mouse, a touch screen, etc.; an output section 1007 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1008 including a hard disk, etc.; and a communication section 1009 including a network interface card such as a LAN card, a modem, etc. The communication section 1009 performs communication processing via a network such as the Internet. A drive 1010 is also connected to the I / O interface 1005 as needed. A removable medium 1011, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1010 as needed, so that a computer program read therefrom is installed into the storage section 1008 as needed. Figure 4 Only some components are schematically shown in the figure, which does not mean that the device 1000 only includes Figure 4 Components shown.

[0099] The systems, devices, modules or units described in the above embodiments may be implemented by a computer or its associated components. The computer may be, for example, a mobile terminal, a smart phone, a personal computer, a laptop computer, a vehicle-mounted human-computer interaction device, a personal digital assistant, a media player, a navigation device, a game console, a tablet computer, a wearable device, a smart TV, an Internet of Things system, a smart home, an industrial computer, a server or a combination thereof.

[0100] Although not shown, in an embodiment of the present invention, a computer-readable storage medium is provided on which a computer program / instruction is stored. When the computer program / instruction is executed by a processor, the method for running a software business in software development described in Example 2 is implemented.

[0101] The storage media in the embodiments of the present invention include permanent and non-permanent, removable and non-removable items that can be implemented by any method or technology to store information. Examples of storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission medium that can be used to store information that can be accessed by a computing device.

[0102] Although not shown, an embodiment of the present invention further provides a computer program product, including: a computer program / instruction, which, when executed by a processor, implements the method for running a software service in software development described in Embodiment 2.

[0103] The methods, programs, systems, devices, etc. of the embodiments of the present invention may be executed or implemented in a single or multiple networked computers, or may be practiced in a distributed computing environment. In the embodiments of this specification, in these distributed computing environments, tasks may be performed by remote processing devices connected via a communication network.

[0104] Those skilled in the art should understand that the embodiments of the present specification may be provided as methods, systems or computer program products. Therefore, those skilled in the art may imagine that the functional modules / units or controllers and related method steps described in the above embodiments may be implemented in software, hardware or a combination of software / hardware.

[0105] Unless explicitly stated, the actions or steps of the methods, programs, and embodiments of the present invention do not have to be performed in a specific order and can still achieve the desired results. In some implementations, multitasking and parallel processing are also possible or may be advantageous.

[0106] In this article, multiple embodiments of the present invention are described, but for the sake of brevity, the description of each embodiment is not exhaustive, and the same or similar features or parts between the embodiments may be omitted. In this article, "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" are meant to be applicable to at least one embodiment or example according to the present invention, but not all embodiments. The above terms do not necessarily mean to refer to the same embodiment or example. In the absence of contradiction, those skilled in the art can combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples.

[0107] The exemplary systems and methods of the present invention have been specifically shown and described with reference to the above embodiments, which are merely examples of the best modes for implementing the present systems and methods. It will be appreciated by those skilled in the art that various changes may be made to the embodiments of the systems and methods described herein when implementing the present systems and / or methods without departing from the spirit and scope of the present invention as defined in the appended claims.

Claims

1. A method for running a software business in software development, characterized in that: include: Starting a software service in a computing device that is performing software development, and obtaining configuration information of the software service from a code base shared by a plurality of computing devices that are performing software development; Determining, based on the configuration information of the software service, the infrastructure that needs to be preloaded for the software service; Starting a process of the infrastructure in a memory managed by the computing device and providing a port of the infrastructure according to the configuration information of the software service; Writing the business data to be called by running the software business in the software service into the infrastructure through the preloaded files in the code library; The service data is called from the infrastructure through the port, and the software service is run based on the service data.

2. The method according to claim 1, characterized in that The method further comprises: starting the software service in the memory by lazy loading without preloading the infrastructure.

3. The method according to claim 1, characterized in that The method further comprises: When other infrastructures of a type different from the infrastructure need to be used during the operation of the software service, the process of the other infrastructure is started in the memory, and the port of the other infrastructure is provided.

4. The method according to claim 3, characterized in that The method further comprises: The service data is obtained from the other infrastructure through the port of the other infrastructure, and the software service is run based on the service data from the infrastructure and the service data from the other infrastructure.

5. The method according to any one of claims 1 to 4, characterized in that: The infrastructure includes a database.

6. The method according to claim 3 or 4, characterized in that: The infrastructure is one of a Mysql database, an ES database and a Mongo database, and the other infrastructure is a Redis database.

7. A device for software development, characterized in that: The device comprises: a software service startup module, configured to start a software service in the apparatus and obtain configuration information of the software service from a code base shared by a plurality of computing devices performing software development; A preloaded infrastructure determination module, used to determine the infrastructure that needs to be preloaded for the software service according to the configuration information of the software service; an infrastructure startup module, configured to start a process of the infrastructure in a memory managed by the device and provide a port of the infrastructure according to the configuration information; A business data writing module, used to write business data to be called by running software business in the software service into the infrastructure through the preloaded files in the code library; The software service running module is used to call the service data from the infrastructure through the port and run the software service based on the service data.

8. A system for software development, characterized in that: The system includes a plurality of computing devices for software development, each of the plurality of computing devices performing the following operations: Starting a software service in the computing device and obtaining configuration information of the software service from a code library shared by the plurality of computing devices; Determining, based on the configuration information of the software service, the infrastructure that needs to be preloaded for the software service; Starting a process of the infrastructure in a memory managed by the computing device and providing a port of the infrastructure according to the configuration information; Writing the business data to be called by running the software business in the software service into the infrastructure through the preloaded files in the code library; The service data is called from the infrastructure through the port, and the software service is run based on the service data.

9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively coupled to the at least one processor, wherein: The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method for running software business in software development as described in any one of claims 1 to 6.

10. A non-transitory computer-readable storage medium, characterized in that: The non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to cause a computer to execute the method for running a software business in software development as described in any one of claims 1 to 6.