A low-code development method, system and computer device based on cloud SaaS platform

By acquiring and analyzing the editing feature information and organizational structure in low-code development, it calculates and automatically adjusts the memory usage, solving the problem of slow operation caused by exceeding the preset memory in low-code development, and realizing dynamic optimization and resource management of memory.

CN118092934BActive Publication Date: 2024-10-01深圳搜豹数字科技有限公司
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410241332.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-04
Publication Date
2024-10-01
Estimated Expiration
2044-03-04

AI Technical Summary

Technical Problem

After low-code development exceeds the preset memory resources, the generated application runs slowly, and a method is needed to solve this problem.

Method used

By obtaining the editing feature information when users develop low-code, calculate the running memory usage, determine whether the preset usage is exceeded, obtain organizational structure information, obtain sample editing steps based on application characteristics, correct the number of edits, calculate the total low-code running memory value, and Perform automatic scaling through virtual machines and provide load quota memory to expand memory.

Benefits of technology

Efficiently utilize resources to ensure that the system provides sufficient memory when needed, reduce application slowness caused by insufficient memory, and achieve dynamic adjustment and optimization of memory.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118092934B_ABST
    Figure CN118092934B_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of cloud SaaS platform, and specifically discloses a low-code development method, system and computer device based on cloud SaaS platform. The present application calculates the total low-code running memory value according to the memory values ​​occupied by multiple low-code development operations and the memory values ​​occupied by multiple application operations, and the calculated total low-code running memory value is the memory consumed in the entire low-code editing process, and then the current low-code development is reallocated memory according to the total low-code running memory value based on the preset total memory resources to ensure that the system can effectively utilize resources and provide sufficient resources when needed, and automatically release excess resources when the load is low, and expand the memory capacity of the current low-code development according to the load quota memory, so that the expansion according to the actual memory occupied by the developed application can alleviate the problem of slow operation caused by the application exceeding the preset memory after development.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of cloud SaaS platform, and in particular to a low-code development method, system and computer device based on a cloud SaaS platform. Background Art

[0002] Cloud SaaS (Software as a Service) platform is a software delivery model based on cloud technology, also known as software as a service. Through the cloud SaaS platform, enterprises can deploy software applications in the cloud, and the low-code development services provided by cloud technology can efficiently complete the required business applications. Among them, low-code is a visual application development method that uses less code and delivers applications at a faster speed. It allows developers to quickly build applications through graphical interfaces and pre-built modules, freeing programmers from the infrastructure and greatly improving the development speed. The low-code development cloud SaaS platform is based on more efficient methods such as graphical drag and drop and parameterized configuration to achieve functions such as rapid construction, data orchestration, ecological connection, and middle-end services.

[0003] Since low-code is an application module development tool based on the cloud SaaS platform, when developers use the cloud SaaS platform to edit low-code, they will perform editing operations and add module components multiple times to achieve the required application performance. As the number of development steps increases, the running memory usage will increase, which will cause low-code development to exceed the system's preset memory resources. The generated application after exceeding the preset resources will become slow at runtime. Therefore, a low-code development method based on the cloud SaaS platform is needed to solve the problem that the generated application after exceeding the preset resources will become slow at runtime. Summary of the invention

[0004] The purpose of the present invention is to provide a low-code development method, system and computer device based on a cloud SaaS platform to solve the technical problems raised in the above background technology.

[0005] To achieve the above object, the present invention provides the following technical solutions:

[0006] A low-code development method based on a cloud SaaS platform, including:

[0007] Obtaining editing feature information when a user develops low-code using a SaaS platform, wherein the editing feature information includes drag-and-drop operation feature information and component configuration feature information;

[0008] Calculating the usage of the running memory according to the plurality of the drag operation characteristic information and the component configuration characteristic information;

[0009] Determining whether the usage of the operating memory exceeds the preset operating memory usage;

[0010] If the usage of the running memory exceeds the preset running memory usage, the organizational structure information of the user editing the low code is obtained, wherein the organizational structure information includes the number of edits information and the running test feature information;

[0011] Obtain application characteristics of low-code development according to the organizational structure information, obtain sample low-code based on the application characteristics, and obtain corresponding sample editing steps according to the sample low-code;

[0012] According to the example editing steps, the steps corresponding to the editing times information are modified to obtain the modified editing times, and the memory occupied values ​​of multiple low-code development operations are obtained according to the modified editing times;

[0013] Acquire the total test running memory value occupied by multiple test applications according to the running test feature information;

[0014] Calculate the total low-code running memory value based on the memory values ​​occupied by multiple low-code development operations and the total test running memory value;

[0015] Based on the virtual machine, the preset total memory resources are automatically scaled for the total low-code running memory value required for the current low-code development to obtain the load quota memory, and the memory capacity of the current low-code development is expanded according to the load quota memory.

[0016] Preferably, the step of obtaining editing feature information when the user uses the SaaS platform to develop low-code includes:

[0017] Get the multiple drag times from the initial mouse press to the release of the mouse;

[0018] Get the number of times the user's mouse is dragged, and calculate the total drag time based on multiple drag times and the number of drag times. The calculation formula is:

[0019] ;

[0020] Where f(x) represents the total dragging time, T(s)i represents the dragging time, i=1, 2, 3...n, where i represents the number of dragging times;

[0021] Get the total stay time from the initial search of the resource component library to the end of the search;

[0022] The total editing time of low-code development is obtained according to the total dwell time and the total dragging time, and the editing feature information of the low-code development operation process in unit time is extracted according to the total editing time based on the API to obtain the dragging operation feature information.

[0023] Preferably, the step of calculating the usage of the running memory according to the plurality of the drag operation characteristic information and the component configuration characteristic information comprises:

[0024] Acquire the amount of drag memory occupied by the dragging according to the dragging operation characteristic information;

[0025] The number of times the mouse clicks on the components in the resource library is moved is obtained, and the amount of memory configured for the total editing component is calculated based on the number of moves and the preset amount of memory occupied by the components, wherein the calculation formula is:

[0026] ;

[0027] Among them, B(J) represents the memory size configured by the general editing component, C(s) represents the number of moves, and N(c) represents the memory size occupied by the preset components;

[0028] The amount of running memory is calculated according to the memory amount configured by the general editing component and the drag memory amount, wherein the calculation formula is:

[0029] Y(x)=B(J)+Z(h);

[0030] Among them, Y(x) represents the usage of running memory, B(J) represents the memory configured by the general editing component, and Z(h) represents the dragging memory.

[0031] Preferably, the step of obtaining the organizational structure information of the user editing the low-code includes:

[0032] Obtain multiple component configurations required by the user to edit the low code, and obtain the number of adjustments when each component configuration is finally completed based on the multiple component configurations;

[0033] Obtain the total number of edits of the organizational structure of the low-code editor according to the number of adjustments corresponding to the multiple component configurations, and count the total number of edits to obtain edit number information;

[0034] The running memory of the organizational structure of the low-code editor is extracted to obtain the test running memory, and the test feature information of the test running memory is defined as the running test feature information.

[0035] Preferably, the step of calculating the low-code total running memory value according to the memory values ​​occupied by multiple low-code development operations and the total running memory value of the test includes:

[0036] Get the loss base of memory being released and recycled;

[0037] The total low-code running memory value is calculated based on the memory values ​​occupied by multiple low-code development operations, the memory values ​​occupied by multiple application operations, and the loss base of memory release and recovery. The calculation formula is:

[0038] ;

[0039] Among them, Z(y) represents the total running memory value of low-code, C represents the memory value occupied by low-code development operations, Y represents the memory value occupied by application operation, X represents the loss base of memory release and recovery, a represents the number of edits, where a=1, 2, 3...n, b represents the number of tests, where b=1, 2, 3...m.

[0040] Preferably, the step of automatically scaling the preset total memory resources to the low-code total running memory value required for the current low-code development based on the virtual machine to obtain the load quota memory, and expanding the memory capacity of the current low-code development according to the load quota memory includes:

[0041] Get the initial preset memory for low-code development;

[0042] The load quota memory is calculated based on the total low-code running memory value and the initial preset memory for low-code development. The calculation formula is:

[0043] Z(L)=Z(y)-Y(p);

[0044] Among them, Z(L) represents the load quota memory, Z(y) represents the total running memory value of low-code, and Y(p) represents the initial preset memory of low-code development;

[0045] The automatic scaling memory quota is obtained according to the load quota memory, and the virtual machine allocates the automatic scaling memory quota to obtain the allocated memory, and the memory capacity of the current low-code development is expanded based on the allocated memory.

[0046] This application also provides a low-code development system based on a cloud SaaS platform, including:

[0047] The first acquisition module is used to acquire editing feature information when a user uses the SaaS platform to develop low-code, wherein the editing feature information includes drag operation feature information and component configuration feature information;

[0048] A first calculation module, used for calculating the usage of the running memory according to the plurality of the drag operation characteristic information and the component configuration characteristic information;

[0049] A first judgment module, used to judge whether the usage of the running memory exceeds the preset running memory usage;

[0050] If the usage of the running memory exceeds the preset running memory usage, the organizational structure information of the user editing the low code is obtained, wherein the organizational structure information includes the number of edits information and the running test feature information;

[0051] A second acquisition module is used to acquire application characteristics of low-code development according to the organizational structure information, and acquire sample low-code based on the application characteristics, and acquire corresponding sample editing steps according to the sample low-code;

[0052] A second correction module is used to correct the steps corresponding to the editing times information according to the example editing steps to obtain the corrected editing times, and obtain the memory occupied values ​​of multiple low-code development operations according to the corrected editing times;

[0053] A third acquisition module is used to obtain the total test running memory value occupied by multiple test applications according to the running test feature information;

[0054] The first calculation module is used to calculate the low-code total running memory value according to the memory values ​​occupied by multiple low-code development operations and the total running memory value of the test;

[0055] The first automatic scaling processing module is used to automatically scale the preset total memory resources to the low-code total running memory value required for the current low-code development based on the virtual machine, obtain the load quota memory, and expand the memory capacity of the current low-code development according to the load quota memory.

[0056] Preferably, the first acquisition module includes:

[0057] A first acquisition unit is used to acquire multiple drag times from the initial pressing of the mouse by the user to the release;

[0058] Get the number of times the user's mouse is dragged, and calculate the total drag time based on multiple drag times and the number of drag times. The calculation formula is:

[0059] ;

[0060] Where f(x) represents the total dragging time, T(s)i represents the dragging time, i=1, 2, 3...n, where i represents the number of dragging times;

[0061] The second acquisition unit is used to acquire the total stay time of the user from the initial search of the resource component library to the end;

[0062] The third acquisition unit is used to obtain the total editing time of the low-code development according to the total dwell time and the total dragging time, and to extract the editing feature information of the low-code development operation process per unit time according to the total editing time based on the API to obtain the dragging operation feature information.

[0063] The present application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above method when executing the computer program.

[0064] The present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the above method are implemented.

[0065] The beneficial effects of the present application are as follows: the present application calculates the total low-code running memory value based on the memory values ​​occupied by multiple low-code development operations and the memory values ​​occupied by multiple application operations, and the calculated total low-code running memory value is the memory consumed in the entire low-code editing process, and then based on the preset total memory resources, the current low-code development is reallocated memory according to the low-code total running memory value to ensure that the system can effectively utilize resources and provide sufficient resources when needed, and automatically release excess resources when the load is low, and expand the memory of the current low-code development according to the load quota memory. In this way, expanding the memory according to the actual memory occupied by the developed application can alleviate the problem of slow operation caused by the application exceeding the preset memory after development. BRIEF DESCRIPTION OF THE DRAWINGS

[0066] Figure 1 The figure is a schematic diagram of a method flow of an embodiment of the present application.

[0067] Figure 2 A schematic diagram of the system structure of an embodiment of the present application.

[0068] Figure 3 A schematic diagram of the internal structure of a computer device according to an embodiment of the present application.

[0069] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0070] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0071] like Figure 1-3 As shown, the present application provides a low-code development method based on a cloud SaaS platform, including:

[0072] S1. Obtain editing feature information when a user uses a SaaS platform to develop low-code, wherein the editing feature information includes drag operation feature information and component configuration feature information;

[0073] S2. Calculating the usage of the running memory according to the plurality of drag operation characteristic information and component configuration characteristic information;

[0074] S3, determining whether the usage of the operating memory exceeds the preset operating memory usage;

[0075] If the usage of the running memory exceeds the preset running memory usage, the organizational structure information of the user editing the low code is obtained, wherein the organizational structure information includes the number of edits information and the running test feature information;

[0076] S4. Obtain application characteristics of low-code development according to the organizational structure information, obtain sample low-code based on the application characteristics, and obtain corresponding sample editing steps according to the sample low-code;

[0077] S5. According to the example editing steps, the steps corresponding to the editing times information are modified to obtain the modified editing times, and the memory occupied values ​​of multiple low-code development operations are obtained according to the modified editing times;

[0078] S6. Obtain the total test running memory value occupied by multiple test applications according to the running test feature information;

[0079] S7. Calculate the total low-code running memory value based on the memory values ​​occupied by multiple low-code development operations and the total test running memory value;

[0080] S8. Based on the virtual machine, the preset total memory resources are automatically scaled for the total low-code running memory value required for the current low-code development to obtain the load quota memory, and the memory capacity of the current low-code development is expanded according to the load quota memory.

[0081] As described in the above steps S1-S8, the low-code development method of the cloud SaaS platform is a new type of application development method, which allows developers to quickly build applications through a graphical interface and pre-built modules without writing a lot of code. When developers use the cloud SaaS platform to edit low-code, they will perform editing operations and add module components multiple times to achieve the required application performance. As the number of development steps increases, the running memory usage will increase, which will cause the low-code development to exceed the preset memory resources. After exceeding the preset resources, the generated application will become slow at run time. Based on this, the present invention first obtains the editing feature information when the user uses the SaaS platform to develop low-code, wherein the editing feature The information includes drag operation feature information and component configuration feature information. In this way, the total memory occupied by the editing operation can be counted by using the commonly used drag and drop combinations and taskbar searches during the editing operation. At the same time, the component configuration of the mobile operation also occupies a fixed memory. Therefore, the running memory usage can be calculated based on the multiple drag operation feature information and component configuration feature information. The total running memory calculated in this way is the actual memory for the SaaS platform to develop low-code, and then it is determined whether the running memory usage exceeds the preset running memory usage. If the running memory usage exceeds the preset running memory usage, the low-code application needs to be tested after development, and the test will also occupy memory. At the same time, when running the test feature In the process of obtaining information, it is also necessary to edit and adjust the organizational structure of the low code so that the application composed of the low code can be normal. Therefore, it is necessary to obtain the organizational structure information of the user editing the low code, wherein the organizational structure information includes the number of edits information and the running test feature information. In this way, the total amount of memory occupied after the application is completed can be obtained through the number of edits information and the running test feature information. Then, the application characteristics of the low-code development are obtained according to the organizational structure information, and the sample low code is obtained based on the application characteristics. The sample low code is the code stored in the historical editing. The corresponding sample editing steps are obtained according to the sample low code. In this way, after obtaining the developer's intention, the sample low code can be recommended in the preset editing library according to the developer's intention, and then Instead, it is necessary to obtain the corresponding example editing steps through the example low code to streamline the existing application steps, and then correct the steps corresponding to the editing times information according to the example editing steps to obtain the corrected editing times, and obtain the memory occupied by multiple low-code development operations according to the corrected editing times. In this way, the corrected and streamlined low code can reduce the memory usage, and then obtain the total test memory value occupied by multiple application operations of multiple tests according to the running test feature information. In this way, the low-code total running memory value can be calculated based on the memory occupied by multiple low-code development operations and the total test memory value occupied by multiple application operations. The calculated total low-code running memory value is the memory consumed in the entire low-code editing process.Then, based on the virtual machine, the preset total memory resources are automatically scaled to the total low-code running memory value required for the current low-code development to obtain the load quota memory. Among them, automatic scaling is a mechanism by which the system can automatically adjust resource configuration to meet the needs of the application according to the real-time monitored load conditions and predefined rules. This is mainly used in cloud computing and virtualization environments to ensure that the system can effectively utilize resources and provide sufficient resources when needed, and automatically release excess resources when the load is low. The memory capacity of the current low-code development is expanded according to the load quota memory. In this way, the expansion according to the actual memory occupied by the developed application can alleviate the problem of slow operation caused by the application exceeding the preset memory after development. ,

[0082] In one embodiment, the step S1 of obtaining editing feature information when a user develops low-code using a SaaS platform includes:

[0083] S101, obtaining multiple drag times from the initial pressing of the mouse by the user to the release;

[0084] S102, obtaining the number of times the user's mouse is dragged, and calculating the total drag time according to the multiple drag times and the number of drag times, wherein the calculation formula is:

[0085] ;

[0086] Where f(x) represents the total dragging time, T(s)i represents the dragging time, i=1, 2, 3...n, where i represents the number of dragging times;

[0087] S103, obtaining the total stay time of the user from the initial search of the resource component library to the end;

[0088] S104. Obtain the total editing time of low-code development according to the total dwell time and the total dragging time, and extract the editing feature information of the low-code development operation process in unit time according to the total editing time based on the API to obtain the dragging operation feature information.

[0089] As described in the above steps S101-S104, since the editing of low code is mainly through dragging the mouse to the pre-set graphical interface, and each graphical interface corresponds to a corresponding function, memory is occupied during the dragging process. Therefore, it is necessary to first obtain the multiple drag times from the initial press of the user's mouse to the release, and then obtain the number of drags of the user's mouse, and calculate the total drag time based on the multiple drag times and the number of drags, and then obtain the total stay time from the user's initial search for the resource component library to the end, and then obtain the total editing time of the low-code development based on the total stay time and the total drag time. In this way, the total editing time can be used to obtain the memory occupied by the application itself, and then the total editing time of the low-code development is obtained based on the total stay time and the total drag time, and based on the API, the editing feature information of the low-code development operation process per unit time is extracted according to the total editing time to obtain the drag operation feature information, where the API (Application Programming An API is a set of specifications that define the interactions between software components, usually including functions, protocols, tools, etc. The API in this solution is an operating system tool that enables applications to interact with the underlying operating system. The interaction is editing feature information, so that after accurately obtaining the drag operation feature information, the memory occupied by the drag operation can be accurately obtained based on the drag operation feature information, and then the memory occupied by the actual editing of the low code can be obtained by adding the memory occupied by the drag operation.

[0090] In one embodiment, the step S2 of calculating the usage of the running memory according to the plurality of the drag operation characteristic information and the component configuration characteristic information comprises:

[0091] S201, acquiring the amount of drag memory occupied by the dragging according to the dragging operation characteristic information;

[0092] S202, obtaining the number of times the mouse clicks on the components in the resource library, and calculating the amount of memory configured by the general editor component according to the number of movements and the preset amount of memory occupied by the components, wherein the calculation formula is:

[0093] ;

[0094] Among them, B(J) represents the memory size configured by the general editing component, C(s) represents the number of moves, and N(c) represents the memory size occupied by the preset components;

[0095] S203, calculating the usage of the running memory according to the memory amount configured by the editor-in-chief component and the drag memory amount, wherein the calculation formula is:

[0096] Y(x)=B(J)+Z(h);

[0097] Among them, Y(x) represents the usage of running memory, B(J) represents the memory configured by the general editing component, and Z(h) represents the dragging memory.

[0098] As described in the above steps S201-S203, since the user will occupy memory when editing low-code, and the dragged image interface itself also occupies memory, so that memory movement will occupy memory, it is necessary to first obtain the amount of drag memory occupied by dragging according to the drag operation feature information, and then obtain the number of times the mouse clicks on the component in the resource library, and calculate the total amount of memory configured for the editing component according to the number of movements and the preset amount of memory occupied by the component. For example: the number of movements is 10 times, and the preset amount of memory occupied by the component is 100MB. In low-code development, moving a component means that the code will be run immediately. Therefore, the system will allocate a certain amount of memory for running, thereby generating mobile memory. The total amount of memory configured for the editing component can be calculated = 10*100=1000MB, where , the preset components are displayed graphically, and then the running memory usage is calculated according to the memory configured by the general editing component and the dragging memory. For example, the dragging memory occupied by dragging is 50MB. In this scheme, the factors with high frequency in editing are taken as samples. In practice, the search occupies more memory. Therefore, no specific reference is made here, and only a specific embodiment is provided as an example. The running memory usage = 50MB + 1000MB = 1500MB. The running memory usage calculated in this way is the total memory generated by the dragging component. In this way, the corresponding memory is equipped according to the running memory usage to avoid the problem that the application becomes slow during operation due to lack of memory. It should be noted that the above-mentioned numbers are all examples for the purpose of clearly explaining the embodiments, and are not the only limitation here.

[0099] In one embodiment, the step S3 of obtaining the organizational structure information of the user editing the low-code includes:

[0100] S301. Obtain multiple component configurations required by the user to edit the low code, and obtain the number of adjustments when each component configuration is finally completed based on the multiple component configurations;

[0101] S302, obtaining the total number of edits of the organizational structure of the low-code editor according to the number of adjustments corresponding to the multiple component configurations, and counting the total number of edits to obtain the number of edits information;

[0102] S304. Extract the running memory of the organizational structure of the low-code editor to obtain the test running memory, and define the test feature information of the test running memory as running test feature information.

[0103] As described in the above steps S301-S304, the present invention obtains multiple component configurations required for users to edit low-code, and obtains the number of adjustments when each component configuration is finally completed based on the multiple component configurations. Since multiple component configurations will occupy corresponding memory during repeated use, it is necessary to obtain the total number of edits for editing the organizational structure of the low-code according to the multiple component configurations and their corresponding adjustment times, and count the total number of edits to obtain the number of edits information. After obtaining the number of edits information, the memory required for multiple component configurations can be accurately calculated based on the number of edits. Since the low code needs to test the completed application after editing the application, the running memory of the organizational structure for editing the low code is extracted, so that the test running memory can be obtained, and the process of testing the application will also occupy memory. Therefore, it is necessary to calculate the obtained test occupied memory into the total low-code running memory requirement, so as to avoid the increase of test memory exceeding the preset memory, and further avoid the problem that the memory exceeds the preset memory and causes the application to become slow at run time.

[0104] In one embodiment, the step S7 of calculating the low-code total running memory value according to the memory values ​​occupied by multiple low-code development operations and the total running memory value of the test includes:

[0105] S701, obtaining the loss base of memory released and recycled;

[0106] S702. Calculate the total low-code running memory value based on the memory values ​​occupied by multiple low-code development operations, the memory values ​​occupied by multiple application operations, and the loss base of memory release and recovery, where the calculation formula is:

[0107] ;

[0108] Among them, Z(y) represents the total running memory value of low-code, C represents the memory value occupied by low-code development operations, Y represents the memory value occupied by application operation, X represents the loss base of memory release and recovery, a represents the number of edits, where a=1, 2, 3...n, b represents the number of tests, where b=1, 2, 3...m.

[0109] As described in the above steps S701-S702, since the components will be deleted during the editing process, the memory occupied by the deleted components will be released and recovered over time, and the cache of the used components will still occupy a certain amount of memory, which will result in residual component memory release. Therefore, it is necessary to first obtain the loss base of memory release and recovery, and then calculate the total low-code running memory value based on the memory occupied values ​​of multiple low-code development operations, the memory occupied values ​​of multiple application operations, and the loss base of memory release and recovery. For example: the memory occupied by low-code development operations is 10MB, the memory occupied by application operation is 100MB, the loss base of memory release and recovery is 10%, the number of edits is 3, and the number of tests is 2. The calculation process is: total low-code running memory value = [10+(10-10*10%)]+2[10+(10-10*10%)]+3[10+(10-10*10%)]+ [100+(100-100*10%)]+2[100+(100-100*10%)]=684MB. In this way, after calculating the total low-code running memory value, it is necessary to allocate corresponding memory according to the total low-code running memory value. After allocating the corresponding actual memory, the problem of slow running of low-code edited applications due to insufficient memory can be avoided. It should be noted that the above-mentioned numbers are all examples for the purpose of clearly explaining the embodiments, and are not the only limitation here.

[0110] In one embodiment, the step S8 of automatically scaling the total low-code running memory value required for the current low-code development with the preset total memory resources based on the virtual machine to obtain the load quota memory, and expanding the memory capacity of the current low-code development according to the load quota memory includes:

[0111] S801, obtain the initial preset memory for low-code development;

[0112] S802. Calculate the load quota memory based on the total low-code running memory value and the initial preset memory for low-code development, where the calculation formula is:

[0113] Z(L)=Z(y)-Y(p);

[0114] Among them, Z(L) represents the load quota memory, Z(y) represents the total running memory value of low-code, and Y(p) represents the initial preset memory of low-code development;

[0115] S803. Obtain the automatic scaling memory quota according to the load quota memory, and the virtual machine allocates the automatic scaling memory quota to obtain the allocated memory, and expand the memory capacity of the current low-code development based on the allocated memory.

[0116] As described in the above steps S801-S803, since the total memory of the cloud SaaS platform is fixed, the cloud SaaS platform will allocate a certain amount of running memory when authorizing the user. Based on this, it is necessary to first obtain the initial preset memory of the low-code development, wherein the initial preset memory of the low-code development is the fixed memory allocated to the user by the cloud SaaS platform, and then calculate the load quota memory according to the total running memory value of the low-code and the initial preset memory of the low-code development. In this way, the memory exceeded by the user during the editing process can be calculated. Therefore, it is necessary to obtain the automatic scaling allocation memory quota according to the load quota memory, wherein the automatic scaling allocation needs to monitor the current running memory value of the low-code application in real time and set the trigger value of automatic scaling. For example: the current memory usage rate reaches the set threshold, the trigger condition is met, the automatic scaling mechanism will be started, and the virtual machine will allocate the automatic scaling allocation memory quota to obtain the allocated memory, wherein the allocated memory can be a percentage relative to the total memory resources, or it can be a specific value, and the memory capacity of the current low-code development is expanded based on the allocated memory, so that the currently developed application can meet the actual memory quota, thereby avoiding the problem that the application becomes slow at runtime due to excessive memory occupation.

[0117] This application also provides a low-code development system based on a cloud SaaS platform, including:

[0118] The first acquisition module 1 is used to obtain editing feature information when a user uses the SaaS platform to develop low-code, wherein the editing feature information includes drag operation feature information and component configuration feature information;

[0119] A first calculation module 2, used for calculating the usage of the running memory according to the plurality of drag operation characteristic information and component configuration characteristic information;

[0120] The first judgment module 3 is used to judge whether the usage of the running memory exceeds the preset running memory usage;

[0121] If the usage of the running memory exceeds the preset running memory usage, the organizational structure information of the user editing the low code is obtained, wherein the organizational structure information includes the number of edits information and the running test feature information;

[0122] A second acquisition module 4 is used to acquire application characteristics of low-code development according to the organizational structure information, and acquire sample low-code based on the application characteristics, and acquire corresponding sample editing steps according to the sample low-code;

[0123] A second correction module 5 is used to correct the steps corresponding to the editing number information according to the example editing steps to obtain the corrected editing number, and obtain the memory occupied values ​​of multiple low-code development operations according to the corrected editing number;

[0124] A third acquisition module 6 is used to obtain the total test running memory value occupied by multiple test applications according to the running test feature information;

[0125] A first calculation module 7, used to calculate the low-code total running memory value according to the memory values ​​occupied by multiple low-code development operations and the total running memory value of the test;

[0126] The first automatic scaling processing module 8 is used to automatically scale the preset total memory resources to the low-code total running memory value required for the current low-code development based on the virtual machine, obtain the load quota memory, and expand the memory capacity of the current low-code development according to the load quota memory.

[0127] In one embodiment, the first acquisition module includes:

[0128] A first acquisition unit is used to acquire multiple drag times from the initial pressing of the mouse by the user to the release;

[0129] Get the number of times the user's mouse is dragged, and calculate the total drag time based on multiple drag times and the number of drag times. The calculation formula is:

[0130] ;

[0131] Where f(x) represents the total dragging time, T(s)i represents the dragging time, i=1, 2, 3...n, where i represents the number of dragging times;

[0132] The second acquisition unit is used to acquire the total stay time of the user from the initial search of the resource component library to the end;

[0133] The third acquisition unit is used to obtain the total editing time of the low-code development according to the total dwell time and the total dragging time, and to extract the editing feature information of the low-code development operation process per unit time according to the total editing time based on the API to obtain the dragging operation feature information.

[0134] like Figure 3 As shown, the present application also provides a computer device, which may be a server, and its internal structure may be as shown in Figure 3As shown. The computer device includes a processor, a memory, a network interface and a database connected by a system bus. Among them, the processor designed by the computer is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used for all data required for the process of the low-code development method based on the cloud SaaS platform. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a low-code development method based on the cloud SaaS platform is implemented.

[0135] Those skilled in the art will understand that Figure 3 The structure shown in is merely a block diagram of a portion of the structure related to the present application solution and does not constitute a limitation on the computer device to which the present application solution is applied.

[0136] An embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, any one of the above-mentioned low-code development methods, systems and computer devices based on the cloud SaaS platform is implemented.

[0137] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media provided in this application and used in the embodiments may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0138] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, device, article or method including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, device, article or method. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the presence of other identical elements in the process, device, article or method including the element.

[0139] The above description is only a preferred embodiment of the present invention, and does not limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made by using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A low-code development method based on a cloud SaaS platform, characterized in that: include: Obtaining editing feature information when a user develops low-code using a SaaS platform, wherein the editing feature information includes drag-and-drop operation feature information and component configuration feature information; Acquire the amount of drag memory occupied by the dragging according to the dragging operation characteristic information; The number of times the mouse clicks on the components in the resource library is moved is obtained, and the amount of memory configured for the total editing component is calculated based on the number of moves and the preset amount of memory occupied by the components, wherein the calculation formula is: ; Among them, B(J) represents the memory size configured by the general editing component, C(s) represents the number of moves, and N(c) represents the memory size occupied by the preset components; The amount of running memory is calculated according to the memory amount configured by the general editing component and the drag memory amount, wherein the calculation formula is: Y(x)=B(J)+Z(h); Among them, Y(x) represents the amount of running memory, B(J) represents the amount of memory configured by the general editing component, and Z(h) represents the amount of dragging memory; Determining whether the usage of the operating memory exceeds the preset operating memory usage; If the usage of the running memory exceeds the preset running memory usage, the organizational structure information of the user editing the low code is obtained, wherein the organizational structure information includes the number of edits information and the running test feature information; Obtain application characteristics of low-code development according to the organizational structure information, obtain sample low-code based on the application characteristics, and obtain corresponding sample editing steps according to the sample low-code; According to the example editing steps, the steps corresponding to the editing times information are modified to obtain the modified editing times, and the memory occupied values ​​of multiple low-code development operations are obtained according to the modified editing times; Acquire the total test running memory value occupied by multiple test applications according to the running test feature information; Calculate the total low-code running memory value based on the memory values ​​occupied by multiple low-code development operations and the total test running memory value; Based on the virtual machine, the preset total memory resources are automatically scaled for the total low-code running memory value required for the current low-code development to obtain the load quota memory, and the memory capacity of the current low-code development is expanded according to the load quota memory.

2. The low-code development method based on the cloud SaaS platform according to claim 1, characterized in that: The step of obtaining editing feature information when a user uses a SaaS platform to develop low-code includes: Get the multiple drag times from the initial mouse press to the release of the mouse; Get the number of times the user's mouse is dragged, and calculate the total drag time based on multiple drag times and the number of drag times. The calculation formula is: ; Where f(x) represents the total dragging time, T(s)i represents the dragging time, i=1, 2, 3...n, where i represents the number of dragging times; Get the total stay time from the initial search of the resource component library to the end of the search; The total editing time of low-code development is obtained according to the total dwell time and the total dragging time, and the editing feature information of the low-code development operation process per unit time is extracted according to the total editing time based on the API to obtain the dragging operation feature information.

3. The low-code development method based on the cloud SaaS platform according to claim 1, characterized in that: The step of obtaining the organizational structure information of the user editing the low-code includes: Obtain multiple component configurations required by the user to edit the low code, and obtain the number of adjustments when each component configuration is finally completed based on the multiple component configurations; Obtain the total number of edits of the organizational structure of the low-code editor according to the number of adjustments corresponding to the multiple component configurations, and count the total number of edits to obtain edit number information; The running memory of the organizational structure of the low-code editor is extracted to obtain the test running memory, and the test feature information of the test running memory is defined as the running test feature information.

4. The low-code development method based on the cloud SaaS platform according to claim 1, characterized in that: The step of calculating the low-code total running memory value according to the memory values ​​occupied by multiple low-code development operations and the total running memory value of the test includes: Get the loss base of memory being released and recycled; The total low-code running memory value is calculated based on the memory values ​​occupied by multiple low-code development operations, the memory values ​​occupied by multiple application operations, and the loss base of memory release and recovery. The calculation formula is: ; Among them, Z(y) represents the total running memory value of low-code, C represents the memory value occupied by low-code development operations, Y represents the memory value occupied by application operation, X represents the loss base of memory release and recovery, a represents the number of edits, where a=1, 2, 3...n, b represents the number of tests, where b=1, 2, 3...m.

5. The low-code development method based on the cloud SaaS platform according to claim 1, characterized in that: The step of automatically scaling the preset total memory resources to the low-code total running memory value required for the current low-code development based on the virtual machine to obtain the load quota memory, and expanding the memory capacity of the current low-code development according to the load quota memory includes: Get the initial preset memory for low-code development; The load quota memory is calculated based on the total low-code running memory value and the initial preset memory for low-code development. The calculation formula is: Z(L)=Z(y)-Y(p); Among them, Z(L) represents the load quota memory, Z(y) represents the total running memory value of low-code, and Y(p) represents the initial preset memory of low-code development; The automatic scaling memory quota is obtained according to the load quota memory, and the virtual machine allocates the automatic scaling memory quota to obtain the allocated memory, and the memory capacity of the current low-code development is expanded based on the allocated memory.

6. A low-code development system based on a cloud SaaS platform, characterized in that: include: The first acquisition module is used to acquire editing feature information when a user uses the SaaS platform to develop low-code, wherein the editing feature information includes drag operation feature information and component configuration feature information; A first calculation module, used to calculate the usage of the running memory according to the plurality of drag operation characteristic information and component configuration characteristic information; A first judgment module, used to judge whether the usage of the running memory exceeds the preset running memory usage; If the usage of the running memory exceeds the preset running memory usage, the organizational structure information of the user editing the low code is obtained, wherein the organizational structure information includes the number of edits information and the running test feature information; A second acquisition module is used to acquire application characteristics of low-code development according to the organizational structure information, and acquire sample low-code based on the application characteristics, and acquire corresponding sample editing steps according to the sample low-code; A second correction module is used to correct the steps corresponding to the editing times information according to the example editing steps to obtain the corrected editing times, and obtain the memory occupied values ​​of multiple low-code development operations according to the corrected editing times; A third acquisition module is used to obtain the total test running memory value occupied by multiple test applications according to the running test feature information; The first calculation module is used to calculate the low-code total running memory value according to the memory values ​​occupied by multiple low-code development operations and the total running memory value of the test; The first automatic scaling processing module is used to automatically scale the preset total memory resources to the low-code total running memory value required for the current low-code development based on the virtual machine, obtain the load quota memory, and expand the memory capacity of the current low-code development according to the load quota memory.

7. The low-code development system based on the cloud SaaS platform according to claim 6, characterized in that: The first acquisition module includes: A first acquisition unit is used to acquire multiple drag times from the initial pressing of the mouse by the user to the release; Get the number of times the user's mouse is dragged, and calculate the total drag time based on multiple drag times and the number of drag times. The calculation formula is: ; Where f(x) represents the total dragging time, T(s)i represents the dragging time, i=1, 2, 3...n, where i represents the number of dragging times; The second acquisition unit is used to acquire the total stay time of the user from the initial search of the resource component library to the end; The third acquisition unit is used to obtain the total editing time of the low-code development according to the total dwell time and the total dragging time, and to extract the editing feature information of the low-code development operation process per unit time according to the total editing time based on the API to obtain the dragging operation feature information.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • System resources allocation method and system based on dynamic load

    CN114064271A

  • Low-code development application and method based on cloud SaaS platform

    CN114461200A

  • Browser webpage end-based video stream rendering component type dragging editing tool

    CN116088824A

  • System and method to manage and share managed runtime memory for JAVA virtual machine

    US20190042406A1