CN110851254A - Equipment production method, device, server and storage medium based on microservice - Google Patents
Equipment production method, device, server and storage medium based on microservice Download PDFInfo
- Publication number
- CN110851254A CN110851254A CN201911076458.4A CN201911076458A CN110851254A CN 110851254 A CN110851254 A CN 110851254A CN 201911076458 A CN201911076458 A CN 201911076458A CN 110851254 A CN110851254 A CN 110851254A
- Authority
- CN
- China
- Prior art keywords
- production
- service
- microservice
- equipment
- acquiring
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000004519 manufacturing process Methods 0.000 title claims abstract description 182
- 238000004458 analytical method Methods 0.000 claims abstract description 22
- 238000000034 method Methods 0.000 claims abstract description 19
- 238000012360 testing method Methods 0.000 claims description 33
- 238000004590 computer program Methods 0.000 claims description 6
- 238000013500 data storage Methods 0.000 claims description 5
- 230000007613 environmental effect Effects 0.000 claims description 5
- 230000009977 dual effect Effects 0.000 claims description 4
- 230000000694 effects Effects 0.000 abstract description 6
- 239000000047 product Substances 0.000 description 41
- 230000006870 function Effects 0.000 description 23
- 244000035744 Hura crepitans Species 0.000 description 7
- 230000003287 optical effect Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 5
- 238000011161 development Methods 0.000 description 3
- 210000000577 adipose tissue Anatomy 0.000 description 2
- 238000003491 array Methods 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 239000013307 optical fiber Substances 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 239000011265 semifinished product Substances 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000008707 rearrangement Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/48—Program initiating; Program switching, e.g. by interrupt
- G06F9/4806—Task transfer initiation or dispatching
- G06F9/4843—Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/50—Service provisioning or reconfiguring
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W88/00—Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
- H04W88/02—Terminal devices
- H04W88/06—Terminal devices adapted for operation in multiple networks or having at least two operational modes, e.g. multi-mode terminals
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The embodiment of the invention provides a method and a device for producing equipment based on microservice, a server and a storage medium. The micro-service-based device production method comprises the following steps: receiving a production request sent to a micro service gateway by a user through equipment; acquiring the basic attribute of the equipment based on a pre-registered analysis scheduling service according to the production request; acquiring corresponding production parameters from a pre-registered business service according to the basic attribute; producing the device based on the production parameters. The effects of simplifying production modes and improving production efficiency are achieved.
Description
Technical Field
The embodiment of the invention relates to the technical field of production, in particular to a method and a device for producing equipment based on micro-service, a server and a storage medium.
Background
In the production mode of the intelligent electronic scale in the market at present, configuration information such as a communication protocol agreed in advance is written into firmware, the electronic scale of one type is developed based on a single service provider under most conditions, only one single client is supported to be accessed, customized software development is often required for the client in the face of different client customization requirements, and software upgrading is carried out in an OTA mode.
However, the current production mode requires customized software development for different customers, and is very complex and inefficient.
Disclosure of Invention
The embodiment of the invention provides a micro-service-based equipment production method, a device, a server and a storage medium, so as to realize the effects of simplifying a production mode and improving the production efficiency.
In a first aspect, an embodiment of the present invention provides a method for producing a device based on a microservice, including:
receiving a production request sent to a micro service gateway by a user through equipment;
acquiring the basic attribute of the equipment based on a pre-registered analysis scheduling service according to the production request;
acquiring corresponding production parameters from a pre-registered business service according to the basic attribute;
producing the device based on the production parameters.
Optionally, the device is a dual-mode device, where the dual-mode device includes a bluetooth module and a WiFi module, and the receiving a production request sent by a user to the micro service gateway through the device includes:
receiving a production request directly sent to the micro service gateway by a user through a WiFi module of the equipment; or
And receiving a production request sent to the micro service gateway by a mobile terminal connected with the equipment through a Bluetooth module of the equipment.
Optionally, the basic attribute includes a customer identifier, the business service includes a first cloud service of different customers, and acquiring the corresponding production parameter from the pre-registered business service according to the basic attribute includes:
matching a corresponding target client according to the client identifier;
and acquiring a first cloud service corresponding to the target customer according to the target customer.
Optionally, the basic attribute includes a first product identifier, the business service includes a second cloud service of a product function, and acquiring the corresponding production parameter from the pre-registered business service according to the basic attribute includes:
matching a corresponding target product according to the first product identifier;
and acquiring a second cloud service corresponding to the target product according to the target product.
Optionally, the basic attribute includes a second product identifier, the business service includes a third cloud service for environment testing, and acquiring the corresponding production parameter from the pre-registered business service according to the basic attribute includes:
matching corresponding target environment test conditions according to the second product identification;
and acquiring a third cloud service corresponding to the target environment test condition according to the target environment test condition.
Optionally, after the producing the device based on the production parameter, the method further includes:
and storing the production data generated in the production process based on the pre-registered data storage service.
Optionally, the production data includes one or more items of a device serial number, a MAC address, a device model, access information, and order information.
In a second aspect, an embodiment of the present invention provides a device production apparatus based on microservice, including:
the receiving module is used for receiving a production request sent to the micro service gateway by a user through equipment;
the analysis module is used for acquiring the basic attribute of the equipment based on the pre-registered analysis scheduling service according to the production request;
the acquisition module is used for acquiring corresponding production parameters from pre-registered business services according to the basic attributes;
a production module for producing the device based on the production parameters.
In a third aspect, an embodiment of the present invention provides a server, including:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a microservice-based device production method as in any embodiment of the invention.
In a fourth aspect, embodiments of the present invention provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a microservice-based device production method according to any of the embodiments of the present invention.
The embodiment of the invention receives a production request sent to a micro service gateway by a user through equipment; acquiring the basic attribute of the equipment based on a pre-registered analysis scheduling service according to the production request; acquiring corresponding production parameters from a pre-registered business service according to the basic attribute; the equipment is produced based on the production parameters, the problems that customized software development needs to be carried out on different customers, the production mode is very complex, and the efficiency is low are solved, the production mode is simplified, and the production efficiency is improved.
Drawings
FIG. 1 is a schematic flow chart of a method for manufacturing a microservice-based device according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of a microservice-based device production method according to a second embodiment of the present invention;
FIG. 3 is a schematic structural diagram of a microservice-based device manufacturing apparatus according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a server according to a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the steps as a sequential process, many of the steps can be performed in parallel, concurrently or simultaneously. In addition, the order of the steps may be rearranged. A process may be terminated when its operations are completed, but may have additional steps not included in the figure. A process may correspond to a method, a function, a procedure, a subroutine, a subprogram, etc.
Furthermore, the terms "first," "second," and the like may be used herein to describe various orientations, actions, steps, elements, or the like, but the orientations, actions, steps, or elements are not limited by these terms. These terms are only used to distinguish one direction, action, step or element from another direction, action, step or element. For example, the first information may be referred to as second information, and similarly, the second information may be referred to as first information, without departing from the scope of the present application. The first information and the second information are both information, but they are not the same information. The terms "first", "second", etc. are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
Example one
Fig. 1 is a flowchart of a method for producing a device based on a microservice according to an embodiment of the present invention, which is applicable to a scenario of producing a device, and the method can be executed by a device for producing a device based on a microservice, and the device can be implemented in a software and/or hardware manner and can be integrated on a server.
As shown in fig. 1, a method for producing a device based on microservices according to an embodiment of the present invention includes:
and S110, receiving a production request sent to the micro service gateway by a user through equipment.
The device refers to a semi-finished product or a finished product with a wireless connection function, and is not limited herein. In this embodiment, the device is an intelligent electronic scale. The micro service gateway is that an API gateway is added between a client and a server, all external requests pass through the micro service gateway firstly, and the micro service gateway only needs to interact with the gateway and call each service by the gateway. A production request refers to a request related to production. For example, the production request may be a request for environment testing, a burning request for software, an upgrading request for software, and the like, which is not limited herein.
Specifically, the production request is generated and then sent to the service gateway through the wireless connection function of the device, so as to call each service registered in advance. Specifically, the request may be sent to the microservice gateway through an http protocol according to the configured URL address. The production request may be sent directly through the device or may be sent through a mobile terminal connected to the device, which is not limited herein.
In an optional implementation manner, the apparatus is a dual mode apparatus, the dual mode apparatus includes a bluetooth module and a WiFi module, and the receiving a production request sent by a user to a micro service gateway through the apparatus includes:
receiving a production request directly sent to the micro service gateway by a user through a WiFi module of the equipment; or receiving a production request sent to the micro service gateway by a mobile terminal connected with the equipment through a Bluetooth module of the equipment.
Specifically, the production request may be directly sent to the microservice gateway through a WiFi module of the device; the Bluetooth module can be connected with the mobile terminal, and the production request can be sent to the micro-service gateway through the mobile terminal. In this embodiment, the mobile terminal refers to a device or equipment with bluetooth function, including but not limited to a mobile phone, a computer, an IPAD, etc. with bluetooth function, and the specific type of the mobile terminal is not limited herein. The mobile terminal connected through the Bluetooth module of the equipment sends the production request, so that a user does not need to be beside the equipment, and convenience is improved.
S120, obtaining the basic attribute of the equipment based on the pre-registered analysis scheduling service according to the production request.
The analysis scheduling service is used for analyzing the production request to obtain the basic attribute of the equipment. In this embodiment, the resolution scheduling service may be a program or code. The analysis scheduling service needs to be registered in advance and can be called. Specifically, the method for registering a service on the micro service gateway may include: deploying a micro-service gateway based on an open source platform (KONG); and developing a resolution scheduling service which can be a piece of code or a program, constructing a single service by using Docker containerization, and registering the address and the port number exposed by the service to a Kong platform of the micro service gateway through an Http protocol. There is no particular limitation on how the resolution scheduling service is registered with the microservice gateway. Basic attributes refer to data related to the production of the device. Specifically, the basic attributes include, but are not limited to, a unique ID of the device, a model of the device, customer information, and the like, and are not limited herein.
S130, acquiring corresponding production parameters from the pre-registered business service according to the basic attributes.
The business service refers to a service related to a business. For example, a business service may be a service of different customers' differentiated needs; or services related to device functionality; or may be an environment test-related service, and the specific type of the business service is not limited herein. Optionally, the service may also be registered in the micro service gateway in advance through the above steps, so as to invoke the service for use. For example, when the basic attribute is customer information, that is, when customer identifiers are provided, different customers have different requirements, the firmware which meets the customized requirements of the customer can be acquired from the business service according to the customer identifiers, so that the differentiated requirements of different customers can be met. Production parameters refer to production-related parameters. The production parameter may be specific data, or may be a program or code, and is not limited herein. Specifically, the production parameters include, but are not limited to, conditions of environmental testing, customized demand functions of different customers, different functions of the same product model, and the like, and are not limited herein.
In an optional embodiment, the basic attribute includes a customer identifier, the business service includes a first cloud service of different customers, and acquiring the corresponding production parameter from the pre-registered business service according to the basic attribute includes:
matching a corresponding target client according to the client identifier; and acquiring a first cloud service corresponding to the target customer according to the target customer.
The client identification is an identification capable of determining a specific client, has uniqueness, and can determine the identity of the client according to the client identification. The target client refers to a target client corresponding to the client identification. The first cloud service refers to a service of differentiated needs of target customers. Specifically, the first cloud service may be developed by a client independently and registered in the location service gateway in advance, and each client has a unique client identifier. The corresponding first cloud service can be called for use according to the customer identification.
In another optional implementation, the basic attribute includes a first product identifier, the business service includes a second cloud service of a product function, and acquiring the corresponding production parameter from the pre-registered business service according to the basic attribute includes:
matching a corresponding target product according to the first product identifier; and acquiring a second cloud service corresponding to the target product according to the target product.
The first product identification refers to identification for determining the product type of the equipment. Specifically, the first product identifier may be a product model of the device. The target product refers to a product corresponding to the product model. The second cloud service refers to a service of different functions of the same product model. The service of the function of the same product type is registered in the micro-service gateway in advance, and calling is carried out when needed, so that one or more functions of the first cloud service can be selected to be used by different equipment of the same type according to needs, and the convenience of generation is improved.
In another optional implementation, the basic attribute includes a second product identifier, the business service includes a third cloud service for environment testing, and acquiring the corresponding production parameter from the pre-registered business service according to the basic attribute includes:
matching corresponding target environment test conditions according to the second product identification; and acquiring a third cloud service corresponding to the target environment test condition according to the target environment test condition.
During the production process, the equipment needs to be tested to ensure the integrity and correctness of the equipment functions. The second product identification refers to an identification that determines a specific device. In particular, the second product identifier may be a device serial number, which is not limited herein. The target environment test condition refers to the parameters of the test and the environment of the test. Specifically, the testing environment may be a sandbox environment, which is an auxiliary environment for assisting developers in function development and joint debugging, and independent testing service containers are deployed according to the requirements of products. The third cloud service refers to a service for environmental testing of different devices. And the corresponding third cloud service is directly obtained according to the second product identifier, and switching is not required according to different test conditions, so that the production efficiency is improved.
And S140, producing the equipment based on the production parameters.
In this embodiment, the device is produced according to production parameters. For example, when the production parameter is customized software, the software is burned into a hardware module storing the software to realize the corresponding function; when the production parameters are conditions for environmental testing, a tested sandbox environment is constructed to enable testing of the equipment in the sandbox environment. The sandbox environment is an auxiliary environment for assisting developers in function development and joint debugging. The online debugging and acceptance check can be carried out more quickly and smoothly during online.
According to the technical scheme of the embodiment of the invention, a production request sent to a micro service gateway by a user through equipment is received; acquiring the basic attribute of the equipment based on a pre-registered analysis scheduling service according to the production request; acquiring corresponding production parameters from a pre-registered business service according to the basic attribute; the equipment is produced based on the production parameters, and the production parameters can be directly obtained from the pre-registered business service, so that the equipment is produced, and the technical effects of simplifying the production mode and improving the production efficiency are achieved.
Example two
Fig. 2 is a schematic flow chart of a microservice-based device production method according to a second embodiment of the present invention. The embodiment is further detailed in the technical scheme and is suitable for a scene of producing equipment. The method may be performed by a microservice-based device production apparatus, which may be implemented in software and/or hardware, and may be integrated on a server.
As shown in fig. 2, a method for producing a device based on microservices according to a second embodiment of the present invention includes:
s210, receiving a production request sent by a user to the micro service gateway through equipment.
The device refers to a semi-finished product or a finished product with a wireless connection function, and is not limited herein. In this embodiment, the device is an intelligent electronic scale. The micro service gateway is that an API gateway is added between a client and a server, all external requests pass through the micro service gateway firstly, and the micro service gateway only needs to interact with the gateway and call each service by the gateway. A production request refers to a request related to production. For example, the production request may be a request for environment testing, a burning request for software, an upgrading request for software, and the like, which is not limited herein.
S220, obtaining the basic attribute of the equipment based on the pre-registered analysis scheduling service according to the production request.
The analysis scheduling service is used for analyzing the production request to obtain the basic attribute of the equipment. In this embodiment, the resolution scheduling service may be a program or code. The analysis scheduling service needs to be registered in advance and can be called.
And S230, acquiring corresponding production parameters from the pre-registered business service according to the basic attributes.
The business service refers to a service related to a business. For example, a business service may be a service of different customers' differentiated needs; or services related to device functionality; or may be an environment test-related service, and the specific type of the business service is not limited herein. Optionally, the service may also be registered in the micro service gateway in advance through the above steps, so as to invoke the service for use.
S240, producing the equipment based on the production parameters.
In this embodiment, the device is produced according to production parameters. For example, when the production parameter is customized software, the software is burned into a hardware module storing the software to realize the corresponding function; when the production parameters are conditions for environmental testing, a tested sandbox environment is constructed to enable testing of the equipment in the sandbox environment. The sandbox environment is an auxiliary environment for assisting developers in function development and joint debugging. The online debugging and acceptance check can be carried out more quickly and smoothly during online.
And S250, storing the production data generated in the production process based on the pre-registered data storage service.
The data storage service refers to a service for storing data. By storing the production data, the production data can be inquired to obtain specific data during production, and the production data can be obtained to analyze reasons when equipment fails. Alternatively, the production parameters may include a device serial number, a MAC address, a device model number, access information, order information, and the like, which are not limited herein. The device serial number has a unique identification. The access information refers to information for connecting the device using the mobile terminal. The order information refers to information of an order to which the device belongs.
It should be noted that, this embodiment may store not only production data generated during production, but also usage data generated by a customer using the device, so as to be queried by the customer. Taking the electronic scale of the body fat as an example, the data of the body fat weighed by the customer can be stored for subsequent inquiry.
According to the technical scheme of the embodiment of the invention, a production request sent to a micro service gateway by a user through equipment is received; acquiring the basic attribute of the equipment based on a pre-registered analysis scheduling service according to the production request; acquiring corresponding production parameters from a pre-registered business service according to the basic attribute; the equipment is produced based on the production parameters, and the production parameters can be directly obtained from the pre-registered business service, so that the equipment is produced, and the technical effects of simplifying the production mode and improving the production efficiency are achieved.
EXAMPLE III
Fig. 3 is a schematic structural diagram of an apparatus for producing a device based on microservices according to a third embodiment of the present invention, where the third embodiment is applicable to a scenario of producing a device, and the apparatus may be implemented in a software and/or hardware manner and may be integrated on a server.
As shown in fig. 3, the microservice-based device production apparatus provided in this embodiment may include a receiving module 310, an analyzing module 320, an obtaining module 330, and a producing module 340, where:
a receiving module 310, configured to receive a production request sent by a user to a microservice gateway through a device;
the analysis module 320 is used for acquiring the basic attribute of the equipment according to the production request based on a pre-registered analysis scheduling service;
an obtaining module 330, configured to obtain a corresponding production parameter from a pre-registered service according to the basic attribute;
a production module 340 for producing the device based on the production parameters.
Optionally, the device is a dual-mode device, where the dual-mode device includes a bluetooth module and a WiFi module, and the receiving module 310 is specifically configured to receive a production request directly sent to the micro service gateway by a user through the WiFi module of the device; or receiving a production request sent to the micro service gateway by a mobile terminal connected with the equipment through a Bluetooth module of the equipment.
Optionally, the basic attribute includes a customer identifier, the business service includes a first cloud service of different customers, and the obtaining module 330 includes:
the client matching unit is used for matching the corresponding target client according to the client identification;
and the first cloud service acquisition unit is used for acquiring a first cloud service corresponding to the target customer according to the target customer.
Optionally, the basic attribute includes a first product identifier, the business service includes a second cloud service of a product function, and the obtaining module 330 further includes:
the target product matching unit is used for matching a corresponding target product according to the first product identifier;
and the second cloud service acquisition unit is used for acquiring a second cloud service corresponding to the target product according to the target product.
Optionally, the basic attribute includes a second product identifier, the business service includes a third cloud service for environment testing, and the obtaining module 330 further includes:
the test condition matching unit is used for matching corresponding target environment test conditions according to the second product identification;
and the third cloud service acquisition unit is used for acquiring a third cloud service corresponding to the target environment test condition according to the target environment test condition.
Optionally, the apparatus further comprises:
and the storage module is used for storing the production data generated in the production process based on the pre-registered data storage service.
Optionally, the production data includes one or more items of a device serial number, a MAC address, a device model, access information, and order information.
The micro-service-based equipment production device provided by the embodiment of the invention can execute the micro-service-based equipment production method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method. Reference may be made to the description of any method embodiment of the invention not specifically described in this embodiment.
Example four
Fig. 4 is a schematic structural diagram of a server according to a fourth embodiment of the present invention. FIG. 4 illustrates a block diagram of an exemplary server 612 suitable for use in implementing embodiments of the present invention. The server 612 shown in fig. 4 is only an example, and should not bring any limitation to the function and the scope of the use of the embodiments of the present invention.
As shown in fig. 4, the server 612 is in the form of a general-purpose server. The components of server 612 may include, but are not limited to: one or more processors 616, a memory device 628, and a bus 618 that couples the various system components including the memory device 628 and the processors 616.
The server 612 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by server 612 and includes both volatile and nonvolatile media, removable and non-removable media.
A program/utility 640 having a set (at least one) of program modules 642 may be stored, for example, in storage 628, such program modules 642 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. The program modules 642 generally perform the functions and/or methods of the described embodiments of the present invention.
The server 612 may also communicate with one or more external devices 614 (e.g., keyboard, pointing terminal, display 624, etc.), with one or more terminals that enable a user to interact with the server 612, and/or with any terminals (e.g., network card, modem, etc.) that enable the server 612 to communicate with one or more other computing terminals. Such communication may occur via input/output (I/O) interfaces 622. Further, server 612 may communicate with one or more networks (e.g., a Local Area Network (LAN), Wide Area Network (WAN), and/or a public Network such as the internet) via Network adapter 620. As shown in FIG. 4, the network adapter 620 communicates with the other modules of the server 612 via the bus 618. It should be appreciated that although not shown, other hardware and/or software modules may be used in conjunction with the server 612, including but not limited to: microcode, end drives, Redundant processors, external disk drive Arrays, RAID (Redundant Arrays of Independent Disks) systems, tape drives, and data backup storage systems, among others.
The processor 616 executes various functional applications and data processing by running programs stored in the storage device 628, for example, implementing a microservice-based device production method provided by any embodiment of the present invention, which may include:
receiving a production request sent to a micro service gateway by a user through equipment;
acquiring the basic attribute of the equipment based on a pre-registered analysis scheduling service according to the production request;
acquiring corresponding production parameters from a pre-registered business service according to the basic attribute;
producing the device based on the production parameters.
According to the technical scheme of the embodiment of the invention, a production request sent to a micro service gateway by a user through equipment is received; acquiring the basic attribute of the equipment based on a pre-registered analysis scheduling service according to the production request; acquiring corresponding production parameters from a pre-registered business service according to the basic attribute; the equipment is produced based on the production parameters, and the production parameters can be directly obtained from the pre-registered business service, so that the equipment is produced, and the technical effects of simplifying the production mode and improving the production efficiency are achieved.
EXAMPLE five
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a microservice-based device production method provided in any embodiment of the present invention, where the method may include:
receiving a production request sent to a micro service gateway by a user through equipment;
acquiring the basic attribute of the equipment based on a pre-registered analysis scheduling service according to the production request;
acquiring corresponding production parameters from a pre-registered business service according to the basic attribute;
producing the device based on the production parameters.
The computer-readable storage media of embodiments of the invention may take any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or terminal. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
According to the technical scheme of the embodiment of the invention, a production request sent to a micro service gateway by a user through equipment is received; acquiring the basic attribute of the equipment based on a pre-registered analysis scheduling service according to the production request; acquiring corresponding production parameters from a pre-registered business service according to the basic attribute; the equipment is produced based on the production parameters, and the production parameters can be directly obtained from the pre-registered business service, so that the equipment is produced, and the technical effects of simplifying the production mode and improving the production efficiency are achieved.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims (10)
1. A microservice-based device production method, comprising:
receiving a production request sent to a micro service gateway by a user through equipment;
acquiring the basic attribute of the equipment based on a pre-registered analysis scheduling service according to the production request;
acquiring corresponding production parameters from a pre-registered business service according to the basic attribute;
producing the device based on the production parameters.
2. The method for manufacturing a microservice-based device according to claim 1, wherein the device is a dual mode device, the dual mode device comprises a bluetooth module and a WiFi module, and the receiving a manufacturing request sent by a user to a microservice gateway through the device comprises:
receiving a production request directly sent to the micro service gateway by a user through a WiFi module of the equipment; or
And receiving a production request sent to the micro service gateway by a mobile terminal connected with the equipment through a Bluetooth module of the equipment.
3. The microservice-based device production method of claim 1, wherein the basic attributes comprise customer identities, the business services comprise first cloud services of different customers, and obtaining corresponding production parameters from pre-registered business services according to the basic attributes comprises:
matching a corresponding target client according to the client identifier;
and acquiring a first cloud service corresponding to the target customer according to the target customer.
4. The microservice-based device production method of claim 1, wherein the basic attributes comprise a first product identifier, the business services comprise a second cloud service of product functionality, and obtaining corresponding production parameters from pre-registered business services according to the basic attributes comprises:
matching a corresponding target product according to the first product identifier;
and acquiring a second cloud service corresponding to the target product according to the target product.
5. The microservice-based device production method of claim 1, wherein the basic attributes comprise a second product identifier, the business service comprises a third cloud service for environmental testing, and the obtaining corresponding production parameters from pre-registered business services according to the basic attributes comprises:
matching corresponding target environment test conditions according to the second product identification;
and acquiring a third cloud service corresponding to the target environment test condition according to the target environment test condition.
6. The microservice-based device production method of claim 1, further comprising, after the producing the device based on the production parameters:
and storing the production data generated in the production process based on the pre-registered data storage service.
7. The microservice-based device production method of claim 6, wherein the production data comprises one or more of a device serial number, a MAC address, a device model number, access information, order information.
8. A microservice-based device production apparatus, comprising:
the receiving module is used for receiving a production request sent to the micro service gateway by a user through equipment;
the analysis module is used for acquiring the basic attribute of the equipment based on the pre-registered analysis scheduling service according to the production request;
the acquisition module is used for acquiring corresponding production parameters from pre-registered business services according to the basic attributes;
a production module for producing the device based on the production parameters.
9. A server, comprising:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the microservice-based device production method of any of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, is adapted to carry out the microservice-based device production method of any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911076458.4A CN110851254A (en) | 2019-11-06 | 2019-11-06 | Equipment production method, device, server and storage medium based on microservice |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911076458.4A CN110851254A (en) | 2019-11-06 | 2019-11-06 | Equipment production method, device, server and storage medium based on microservice |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110851254A true CN110851254A (en) | 2020-02-28 |
Family
ID=69598551
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911076458.4A Pending CN110851254A (en) | 2019-11-06 | 2019-11-06 | Equipment production method, device, server and storage medium based on microservice |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110851254A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111459770A (en) * | 2020-04-01 | 2020-07-28 | 深圳市伊欧乐科技有限公司 | Server operation state warning method and device, server and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160127199A1 (en) * | 2014-11-04 | 2016-05-05 | Futurewei Technologies, Inc. | Adaptive Allocation of Server Resources |
CN108306917A (en) * | 2017-01-13 | 2018-07-20 | 中国移动通信集团江西有限公司 | The register method and device of data processing method and device, micro services module |
CN110189013A (en) * | 2019-05-23 | 2019-08-30 | 上海上湖信息技术有限公司 | A kind of determination method, apparatus, equipment and the medium of operation flow |
-
2019
- 2019-11-06 CN CN201911076458.4A patent/CN110851254A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160127199A1 (en) * | 2014-11-04 | 2016-05-05 | Futurewei Technologies, Inc. | Adaptive Allocation of Server Resources |
CN108306917A (en) * | 2017-01-13 | 2018-07-20 | 中国移动通信集团江西有限公司 | The register method and device of data processing method and device, micro services module |
CN110189013A (en) * | 2019-05-23 | 2019-08-30 | 上海上湖信息技术有限公司 | A kind of determination method, apparatus, equipment and the medium of operation flow |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111459770A (en) * | 2020-04-01 | 2020-07-28 | 深圳市伊欧乐科技有限公司 | Server operation state warning method and device, server and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110554958B (en) | Graph database testing method, system, device and storage medium | |
CN110320378B (en) | Method, apparatus, device and computer readable storage medium for applying for a quality control test | |
CN107436844B (en) | Method and device for generating interface use case collection | |
CN107329890A (en) | Test method and device based on Mock and server | |
CN109726108B (en) | Front-end code testing method, device, system and medium based on analog data | |
CN108255701B (en) | Scene testing method and mobile terminal | |
CN109684188B (en) | Test method and device | |
CN111858296A (en) | Interface test method, device, equipment and storage medium | |
CN111158987B (en) | Health check method and device for micro-service architecture | |
CN113485927B (en) | Test data generation method, device, equipment and storage medium | |
CN111813685A (en) | Automatic testing method and device | |
CN114116480A (en) | Method, device, medium and equipment for determining application program test coverage rate | |
CN112241362A (en) | Test method, test device, server and storage medium | |
CN109218393A (en) | A kind of implementation method of push, device, equipment and computer storage medium | |
CN112379967B (en) | Simulator detection method, device, equipment and medium | |
CN112084114B (en) | Method and apparatus for testing interfaces | |
CN110851254A (en) | Equipment production method, device, server and storage medium based on microservice | |
CN112561690A (en) | Method, system, equipment and storage medium for testing credit card staging service interface | |
CN115022201B (en) | Data processing function test method, device, equipment and storage medium | |
CN109144864B (en) | Method and device for testing window | |
CN117294630A (en) | Communication protocol testing method, device, computer equipment and storage medium | |
CN111581431A (en) | Data exploration method and device based on dynamic evaluation | |
CN117130933A (en) | Baffle service method, system, equipment and storage medium | |
CN111190811A (en) | Method, device, equipment and storage medium for testing resource allocation system | |
CN112579428A (en) | Interface testing method and device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200228 |
|
RJ01 | Rejection of invention patent application after publication |