High-concurrency python algorithm calling method based on environment isolation and medium
An environment isolation and algorithm technology, applied in software deployment, software design, etc., can solve the problems of different dependent environments, insufficient support, only a few minutes, etc., to save network resources and improve performance.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0033] figure 1 It is a flow chart of a high-concurrency python algorithm calling method based on environment isolation provided by this embodiment. The method can be executed by an environment-isolated high-concurrency python algorithm calling device, which can be composed of software and / or hardware, and is generally integrated in electronic equipment.
[0034] see figure 1 , the method includes the following steps:
[0035] S110. Deploy the python algorithm script into the docker.
[0036] Preferably, the deployment of the python algorithm script into the docker includes:
[0037] According to the python algorithm script, write the container image file dockerfile, and create a mirror image containing python basic environment in different language versions;
[0038] Saving the deployment work order information to the mysql database, the deployment work order information including the script file and the language environment required by the script;
[0039] According to ...
Embodiment 2
[0077] see figure 2 , this embodiment provides a high-concurrency python algorithm calling device based on environment isolation, including:
[0078] Algorithm script deployment module 101, for deploying python algorithm script in docker;
[0079] The message queue builds and receives module 102, is used for setting up Kafka message queue and receiving message;
[0080] Algorithm calling module 103, used to call the python algorithm in the python algorithm script;
[0081] The execution result return module 104 is used to return the execution result of the python algorithm through the Kafka message queue.
[0082] The device is used for executing the above-mentioned high-concurrency python algorithm calling method based on environment isolation, and thus at least has functional modules corresponding to the method and beneficial effects.
Embodiment 3
[0084] like image 3 As shown, this embodiment provides an electronic device, including:
[0085] at least one processor; and
[0086] a memory communicatively coupled to at least one of said processors; wherein,
[0087] The memory stores instructions executable by at least one of the processors, and the instructions are executed by at least one of the processors, so that at least one of the processors can execute the above method. At least one processor in the electronic device is capable of executing the above method, and thus has at least the same advantages as the above method.
[0088] Optionally, the electronic device further includes interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. The various components are interconnected using different buses and can be mounted on a common motherboard or otherwise as desired. The processor can process instructions executed in the electronic device, including storing in or on ...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com