CN116455896A - Intelligent illumination management and control system, resource service method and related device - Google Patents

Intelligent illumination management and control system, resource service method and related device Download PDF

Info

Publication number
CN116455896A
CN116455896A CN202310094567.9A CN202310094567A CN116455896A CN 116455896 A CN116455896 A CN 116455896A CN 202310094567 A CN202310094567 A CN 202310094567A CN 116455896 A CN116455896 A CN 116455896A
Authority
CN
China
Prior art keywords
request
database
service
resources
resource service
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
Application number
CN202310094567.9A
Other languages
Chinese (zh)
Inventor
徐素
冯敏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Haiyangwang Petroleum Lighting Technology Co ltd
Shenzhen Haiyangwang Power Grid Lighting Technology Co ltd
Shenzhen Haiyangwang Railway Lighting Technology Co ltd
Shenzhen Ocean King Green Lighting Technology Co ltd
Shenzhen Ocean King Metallurgical Lighting Technology Co ltd
Shenzhen Ocean King Petrochemical Lighting Technology Co ltd
Shenzhen Ocean King Ship Venue Lighting Technology Co ltd
Shenzhen Ocean Wanggongxiao Lighting Technology Co ltd
Oceans King Lighting Science and Technology Co Ltd
Oceans King Dongguan Lighting Technology Co Ltd
Shenzhen Oceans King Lighting Engineering Co Ltd
Original Assignee
Shenzhen Haiyangwang Petroleum Lighting Technology Co ltd
Shenzhen Haiyangwang Power Grid Lighting Technology Co ltd
Shenzhen Haiyangwang Railway Lighting Technology Co ltd
Shenzhen Ocean King Green Lighting Technology Co ltd
Shenzhen Ocean King Metallurgical Lighting Technology Co ltd
Shenzhen Ocean King Petrochemical Lighting Technology Co ltd
Shenzhen Ocean King Ship Venue Lighting Technology Co ltd
Shenzhen Ocean Wanggongxiao Lighting Technology Co ltd
Oceans King Lighting Science and Technology Co Ltd
Oceans King Dongguan Lighting Technology Co Ltd
Shenzhen Oceans King Lighting Engineering Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Haiyangwang Petroleum Lighting Technology Co ltd, Shenzhen Haiyangwang Power Grid Lighting Technology Co ltd, Shenzhen Haiyangwang Railway Lighting Technology Co ltd, Shenzhen Ocean King Green Lighting Technology Co ltd, Shenzhen Ocean King Metallurgical Lighting Technology Co ltd, Shenzhen Ocean King Petrochemical Lighting Technology Co ltd, Shenzhen Ocean King Ship Venue Lighting Technology Co ltd, Shenzhen Ocean Wanggongxiao Lighting Technology Co ltd, Oceans King Lighting Science and Technology Co Ltd, Oceans King Dongguan Lighting Technology Co Ltd, Shenzhen Oceans King Lighting Engineering Co Ltd filed Critical Shenzhen Haiyangwang Petroleum Lighting Technology Co ltd
Priority to CN202310094567.9A priority Critical patent/CN116455896A/en
Publication of CN116455896A publication Critical patent/CN116455896A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0815Network architectures or network communication protocols for network security for authentication of entities providing single-sign-on or federations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Abstract

The embodiment of the invention discloses an intelligent illumination management and control system, a resource service method and a related device, wherein the intelligent illumination management and control system comprises a front end, a nginx, a gateway service, a micro service, a database, a gateway centralized module and terminal equipment. In addition, the resource data is firstly obtained from the first database, so that the obtaining speed can be effectively improved, and the performance of service processing gateway data can be improved.

Description

Intelligent illumination management and control system, resource service method and related device
Technical Field
The invention relates to the technical field of computer software application, in particular to an intelligent illumination management and control system, a resource service method and a related device.
Background
The existing intelligent working lighting system adopts a single service and adopts an architecture mode of coupling all functions and modules in one application; one server is used to run all functions. Under the condition that the number of gateways and devices which are accessed into the system is large, the number of single services to the processing devices is limited, meanwhile, the service expansibility is poor, and when the service is down, the system can not be used. When using a distributed framework, a large application is split into multiple small applications (micro-services) that are relatively independent. When the number of the devices is larger than the number of the service processes, the capacity of improving the number of the processing devices can be achieved by adding corresponding services through the newly added servers. If one service is down, other services can normally run without affecting the normal use of the system.
However, since the distributed intelligent lighting system has a plurality of resource services, how to efficiently and rapidly enable the front end to acquire the resources so as to realize business services is a problem to be solved.
Disclosure of Invention
The invention mainly aims to provide an intelligent illumination management and control system, a resource service method and a related device, wherein the related device comprises a resource service device, computer equipment and a storage medium, and the problem of low resource acquisition efficiency in the prior art can be solved.
In order to achieve the above object, a first aspect of the present invention provides an intelligent lighting management and control system, where the intelligent lighting management and control system includes a front end, a rginx, a gateway service, a micro service, a database, a gateway centralized module, and a terminal device;
the front end is used for initiating a request;
the nginx is used for selecting server jump according to a request path of a request and the number of servers deployed by the intelligent illumination management and control system;
the gateway service is used for appointing authentication service in the micro service to the login request and verifying and skipping resource service in the micro service to other requests; wherein the other requests are of a request type other than the login request; the resource service is used for acquiring the resources required by the request through a database and sending a command to the gateway centralized module through a socket according to the resources; the authentication service is used for verifying the account passwords which are logged in by the login request;
the gateway centralization module is used for forwarding the command to terminal equipment;
the terminal equipment is used for executing the command;
the gateway centralized module is also used for returning the execution result of the terminal equipment to the resource service;
the resource service is further configured to return the execution result to the front end.
To achieve the above object, a second aspect of the present invention provides a resource service method, which is applied to the above intelligent lighting management and control system, and the method includes:
receiving a request from a front end, judging whether the request is other requests except an authentication request, and if the request is other requests except the authentication request, jumping to a corresponding resource service in the micro service;
determining whether a first database of the resource service contains the resources required by the request, if the first database does not contain the resources required by the request, enabling the resource service to acquire the resources required by the request from a second database, and if the first database contains the resources required by the request, enabling the resource service to acquire the resources required by the request from the first database.
With reference to the first aspect, in one possible implementation manner, the resource service obtains resources required by the request from the second database, and further includes: synchronizing the resource into the first database.
With reference to the first aspect, in one possible implementation manner, the method further includes: and updating the resources in the second database at intervals of preset time.
With reference to the first aspect, in one possible implementation manner, after updating the resources in the second database at the preset interval, the method includes: and inquiring whether the resources in the second database exist in the first database, and if so, deleting the resources in the first database which are the same as the resources in the second database.
With reference to the first aspect, in one possible implementation manner, the querying whether the resource in the second database exists in the first database includes: obtaining a query data table according to the resources in the second database; and sequentially extracting data according to the query data table, comparing the data with the data in the first database, and querying whether the resources in the second database exist in the first database.
To achieve the above object, a third aspect of the present invention provides a resource service apparatus, the apparatus comprising:
and a receiving judging module: the method comprises the steps of receiving a request from a front end, judging whether the request is other requests except an authentication request, and if the request is other requests except the authentication request, jumping to a corresponding resource service in a micro service through gateway service;
and a determining and acquiring module: and determining whether the first database of the resource service contains the resources required by the request, if the first database does not contain the resources required by the request, enabling the resource service to acquire the resources required by the request from the second database, and if the first database contains the resources required by the request, enabling the resource service to acquire the resources required by the request from the first database.
With reference to the third aspect, in one possible implementation manner, the determining and acquiring module is further configured to: synchronizing the resource into the first database.
To achieve the above object, a fourth aspect of the present invention provides a computer-readable storage medium storing a computer program which, when executed by a processor, causes the processor to perform the steps of:
receiving a request from a front end, judging whether the request is other requests except an authentication request, and if the request is other requests except the authentication request, jumping to a corresponding resource service in the micro service;
determining whether a first database of the resource service contains the resources required by the request, if the first database does not contain the resources required by the request, enabling the resource service to acquire the resources required by the request from a second database, and if the first database contains the resources required by the request, enabling the resource service to acquire the resources required by the request from the first database.
To achieve the above object, a fifth aspect of the present invention provides a computer device comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, causes the processor to perform the steps of:
receiving a request from a front end, judging whether the request is other requests except an authentication request, and if the request is other requests except the authentication request, jumping to a corresponding resource service in the micro service;
determining whether a first database of the resource service contains the resources required by the request, if the first database does not contain the resources required by the request, enabling the resource service to acquire the resources required by the request from a second database, and if the first database contains the resources required by the request, enabling the resource service to acquire the resources required by the request from the first database.
The embodiment of the invention has the following beneficial effects:
the embodiment of the invention provides an intelligent illumination management and control system and a resource service method, wherein the intelligent illumination management and control system comprises a front end, a nginx, a gateway service, a micro service, a database, a gateway centralized module and terminal equipment, wherein the front end is used for initiating a request; the nginx is used for selecting server jump according to the request path of the request and the number of servers deployed by the intelligent illumination management and control system, and the gateway service is used for appointing authentication service in the micro-service for the login request and verifying and jumping resource service in the micro-service for other requests; the resource service is used for acquiring the resources required by the request through the database and sending a command to the gateway centralized module through the socket according to the resources; the authentication service is used for verifying the account passwords which are logged in by the login request; the gateway centralizing module is used for forwarding the command to the terminal equipment and returning the execution result of the terminal equipment to the resource service; the resource service is also used for returning the execution result to the front end, and the terminal equipment is used for executing the command. The method comprises the steps of receiving a request from a front end, judging whether the request is other requests except an authentication request, and if the request is other requests except the authentication request, jumping to a corresponding resource service in a micro service through a gateway service; and determining whether the first database of the resource service contains the resources required by the request, and if the first database does not contain the resources required by the request, acquiring the resources required by the request from the second database. The intelligent illumination management and control system based on the distributed structure can realize that other resource services can normally run under the condition that a certain resource service is down, the normal use of the system is not influenced, and the practicability is improved. In addition, if the resources are acquired from the second database for the next time, the whole service is easy to block, so that the resource data is acquired from the first database first, the acquisition speed can be effectively improved, and the performance of the service processing gateway data is improved.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Wherein:
FIG. 1 is a block diagram of an intelligent lighting management and control system according to an embodiment of the present invention;
FIG. 2 is a flowchart of a resource service method based on an intelligent illumination management and control system according to an embodiment of the present invention;
FIG. 3 is a block diagram illustrating a resource service device according to an embodiment of the present invention;
fig. 4 is a block diagram of a computer device in an embodiment of the invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Referring to fig. 1, fig. 1 is a structural block diagram of an intelligent lighting management and control system according to an embodiment of the present invention, as shown in fig. 1, the intelligent lighting management and control system includes a front end, a nginx, a gateway service, a micro service, a database, a gateway centralized module, and a terminal device. The front end may be a software device, such as a mobile phone, a computer, etc., and the user may control the front end to initiate a request, where the request is used to control the state of the terminal device, and the terminal device may be understood as a lighting device, for example, the user may control the lighting scheme of the terminal device by operating the front end to initiate a request; the rginx is used for selecting a server to jump according to a request path of a request and the number of servers deployed by the distributed intelligent lighting system; the gateway service is used for appointing authentication service in the micro service to the login request and verifying and skipping resource service in the micro service to other requests, wherein the other requests are request types except the login request; the resource service is used for acquiring the resources required by the request through the database and sending a command to the gateway centralized module through the socket according to the resources; the authentication service is used for verifying the account passwords which are logged in by the login request; the gateway centralizing module is used for forwarding the command to the terminal equipment; the terminal equipment is used for executing the command; the gateway centralized module is also used for returning the execution result of the terminal equipment to the resource service; the resource service is also used for returning the execution result to the front end.
Specifically, the micro service is in communication connection with a gateway centralized module, the gateway centralized module is in communication connection with a terminal device, and wireless or wired communication is included between the terminal device and the gateway centralized module, wherein the wired communication mode can be as follows: the gateway centralized module is connected with a gateway with a power carrier communication function, namely a PLC gateway serial port, and the PLC gateway is communicated with the terminal equipment through a power line.
Based on the above intelligent illumination management and control system, a resource service method is described in detail below, referring to fig. 2, fig. 2 is a flow chart of a resource service method based on the intelligent illumination management and control system provided by the embodiment of the invention, as shown in fig. 2, the resource service method specifically includes the following steps:
step S101, receiving a request from a front end, judging whether the request is other requests except an authentication request, and if the request is other requests except the authentication request, jumping to a corresponding resource service in the micro service.
The user controls the front end to send out the request, the gateway service receives the request sent by the front end, checks whether the front end is qualified for the request, intercepts the request if the front end is not qualified for the request, judges the type of the request if the front end is qualified for the request, and jumps to the corresponding resource service in the micro service if the request is other than the authentication request. Specifically, there are multiple resource services in the micro service, each resource service corresponds to one resource server, and different resource services can enable the terminal device to execute different business services, for example, the micro service includes a video monitoring service, and the video monitoring service can enable the terminal device to execute a video monitoring function. In this embodiment, all the resource servers may be found according to the request address of the request, and the corresponding resource service is determined from all the resource servers and is skipped to the corresponding resource service.
Step S102, determining whether a first database of the resource service contains the resources required by the request, if the first database does not contain the resources required by the request, enabling the resource service to acquire the resources required by the request from a second database, and if the first database contains the resources required by the request, enabling the resource service to acquire the resources required by the request from the first database.
After the jump to the corresponding resource service, the gateway service determines whether the first database of the resource service contains the resources required by the request, if the first database does not contain the resources required by the request, the resource service acquires the resources required by the request from the second database, and if the first database contains the resources required by the request, the gateway service acquires the resources required by the request from the first database. In this embodiment, in order to increase the speed of resource acquisition, the first database may be a Redis database, and the database may be a mysql database.
The MySql database comprises a master database and a slave database, wherein the master database and the slave database can copy data, and specifically comprises the following steps:
the IO thread of the slave database establishes connection with the dump thread of the master database, the slave database initiates a binlog request to the master database according to the file name and the position number provided by the change master to statement,
the main database dump thread sends the local binlog to the auxiliary database IO thread in the form of events according to the request of the auxiliary database, wherein the returned information comprises the bin-log file and bin-log position of the returned information, the binlog events are received from the database IO thread and stored in the local relay-log, and the transmitted information is recorded in the master-info so that the relay-log is applied from the database SQL thread and the applied record is recorded in the relay-log info in the next reading, and in a default case, the applied relay can be automatically cleaned.
Further, if the first database does not contain the resources required by the request, the resource service synchronizes the resources into the first database after acquiring the resources required by the request from the second database.
In this embodiment, the resources in the second database are updated at intervals of a preset time, and meanwhile, whether the resources in the second database exist in the first database is queried, and if so, the resources in the first database, which are the same as those in the second database, are deleted.
The method for inquiring whether the resources in the second database exist in the first database is as follows:
and obtaining a query data table according to the resources in the second database, sequentially extracting data according to the query data table, comparing the data with the data in the first database, and querying whether the resources in the second database exist in the first database.
Based on the method, the intelligent illumination management and control system comprises a front end, a nginx, a gateway service, a micro service, a database, a gateway centralized module and terminal equipment, wherein the front end is used for initiating a request; the nginx is used for selecting server jump according to the request path of the request and the number of servers deployed by the intelligent illumination management and control system, and the gateway service is used for appointing authentication service in the micro-service for the login request and verifying and jumping resource service in the micro-service for other requests; the resource service is used for acquiring the resources required by the request through the database and sending a command to the gateway centralized module through the socket according to the resources; the authentication service is used for verifying the account passwords which are logged in by the login request; the gateway centralizing module is used for forwarding the command to the terminal equipment and returning the execution result of the terminal equipment to the resource service; the resource service is also used for returning the execution result to the front end, and the terminal equipment is used for executing the command. The method comprises the steps of receiving a request from a front end, judging whether the request is other requests except an authentication request, and if the request is other requests except the authentication request, jumping to a corresponding resource service in a micro service through a gateway service; and determining whether the first database of the resource service contains the resources required by the request, and if the first database does not contain the resources required by the request, acquiring the resources required by the request from the second database. The intelligent illumination management and control system based on the distributed structure can realize that other resource services can normally run under the condition that a certain resource service is down, the normal use of the system is not influenced, and the practicability is improved. In addition, if the resources are acquired from the second database for the next time, the whole service is easy to block, so that the resource data is acquired from the first database first, the acquisition speed can be effectively improved, and the performance of the service processing gateway data is improved.
In order to better implement the above method, the embodiment of the present invention provides a resource service device, which can implement all functions similar to those of the above method, referring to fig. 3, fig. 3 is a block diagram of a resource service device provided in the embodiment of the present invention, as shown in fig. 3, the device 30 includes:
the reception judgment module 301: and the gateway service is used for receiving the request from the front end, judging whether the request is other requests except the authentication request, and if the request is other requests except the authentication request, jumping to the corresponding resource service in the micro service through the gateway service.
The determination acquisition module 302: and determining whether the first database of the resource service contains the resources required by the request, if the first database does not contain the resources required by the request, enabling the resource service to acquire the resources required by the request from the second database, and if the first database contains the resources required by the request, enabling the resource service to acquire the resources required by the request from the first database.
In one possible design, the determination acquisition module 302 is further configured to synchronize the resource into the first database.
Based on the device, the intelligent illumination management and control system based on the distributed structure can realize that other resource services can normally run under the condition that certain resource service is down, the normal use of the system is not influenced, and the practicability is improved. In addition, if the resources are acquired from the second database for the next time, the whole service is easy to block, so that the resource data is acquired from the first database first, the acquisition speed can be effectively improved, and the performance of the service processing gateway data is improved.
FIG. 4 illustrates an internal block diagram of a computer device in one embodiment. The computer device may specifically be a terminal or a server. As shown in fig. 4, the computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the memory includes a non-volatile storage medium and a first database memory. The non-volatile storage medium of the computer device stores an operating system and may also store a computer program which, when executed by a processor, causes the processor to carry out all the steps of the above-described method. The first database memory may also store a computer program which, when executed by a processor, causes the processor to perform all the steps of the method described above. Those skilled in the art will appreciate that the structures shown in FIG. 4 are block diagrams only and do not constitute a limitation of the computer device on which the present aspects apply, and that a particular computer device may include more or less components than those shown, or may combine some of the components, or have a different arrangement of components.
In one embodiment, a computer device is presented comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of the aforementioned method.
In one embodiment, a computer-readable storage medium is provided, storing a computer program which, when executed by a processor, causes the processor to perform the steps of the aforementioned method.
Those skilled in the art will appreciate that all or part of the processes in the methods of the above embodiments may be implemented by a computer program for instructing relevant hardware, where the program may be stored in a non-volatile computer readable storage medium, and where the program, when executed, may include processes in the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the various embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples only represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the present application. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application is to be determined by the claims appended hereto.

Claims (10)

1. The intelligent illumination management and control system is characterized by comprising a front end, a nginx, a gateway service, a micro service, a database, a gateway centralized module and terminal equipment;
the front end is used for initiating a request;
the nginx is used for selecting server jump according to a request path of a request and the number of servers deployed by the intelligent illumination management and control system;
the gateway service is used for appointing authentication service in the micro service to the login request and verifying and skipping resource service in the micro service to other requests; wherein the other requests are of a request type other than the login request; the resource service is used for acquiring the resources required by the request through a database and sending a command to the gateway centralized module through a socket according to the resources; the authentication service is used for verifying the account passwords which are logged in by the login request;
the gateway centralization module is used for forwarding the command to terminal equipment;
the terminal equipment is used for executing the command;
the gateway centralized module is also used for returning the execution result of the terminal equipment to the resource service;
the resource service is further configured to return the execution result to the front end.
2. A resource service method, characterized in that the method is applied to an intelligent lighting management and control system as claimed in claim 1, the method comprising:
receiving a request from a front end, judging whether the request is other requests except an authentication request, and if the request is other requests except the authentication request, jumping to a corresponding resource service in the micro service;
determining whether a first database of the resource service contains the resources required by the request, if the first database does not contain the resources required by the request, enabling the resource service to acquire the resources required by the request from a second database, and if the first database contains the resources required by the request, enabling the resource service to acquire the resources required by the request from the first database.
3. The method of claim 2, wherein the resource service obtains the resources required for the request from a second database, further comprising:
synchronizing the resource into the first database.
4. The method according to claim 2, wherein the method further comprises:
and updating the resources in the second database at intervals of preset time.
5. The method of claim 4, wherein after updating the resources in the second database at the predetermined time intervals, comprising:
and inquiring whether the resources in the second database exist in the first database, and if so, deleting the resources in the first database which are the same as the resources in the second database.
6. The method of claim 5, wherein querying whether resources in the second database are present in the first database comprises:
obtaining a query data table according to the resources in the second database;
and sequentially extracting data according to the query data table, comparing the data with the data in the first database, and querying whether the resources in the second database exist in the first database.
7. A resource servicing device, the device comprising:
and a receiving judging module: the method comprises the steps of receiving a request from a front end, judging whether the request is other requests except an authentication request, and if the request is other requests except the authentication request, jumping to a corresponding resource service in a micro service through gateway service;
and a determining and acquiring module: and determining whether the first database of the resource service contains the resources required by the request, if the first database does not contain the resources required by the request, enabling the resource service to acquire the resources required by the request from the second database, and if the first database contains the resources required by the request, enabling the resource service to acquire the resources required by the request from the first database.
8. The apparatus of claim 7, wherein the determination acquisition module is further configured to: synchronizing the resource into the first database.
9. A computer readable storage medium storing a computer program, which when executed by a processor causes the processor to perform the steps of the method according to any one of claims 1 to 6.
10. A computer device comprising a memory and a processor, wherein the memory stores a computer program which, when executed by the processor, causes the processor to perform the steps of the method of any of claims 1 to 6.
CN202310094567.9A 2023-01-14 2023-01-14 Intelligent illumination management and control system, resource service method and related device Pending CN116455896A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310094567.9A CN116455896A (en) 2023-01-14 2023-01-14 Intelligent illumination management and control system, resource service method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310094567.9A CN116455896A (en) 2023-01-14 2023-01-14 Intelligent illumination management and control system, resource service method and related device

Publications (1)

Publication Number Publication Date
CN116455896A true CN116455896A (en) 2023-07-18

Family

ID=87119010

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310094567.9A Pending CN116455896A (en) 2023-01-14 2023-01-14 Intelligent illumination management and control system, resource service method and related device

Country Status (1)

Country Link
CN (1) CN116455896A (en)

Similar Documents

Publication Publication Date Title
CN112968967B (en) Block synchronization method and device
CN108256114B (en) Document online preview method and device, computer equipment and storage medium
US20110138079A1 (en) Information processing apparatus, information processing method, data management server and data synchronization system
CN107689976B (en) File transmission method and device
EP3125501A1 (en) File synchronization method, server, and terminal
CN109361525B (en) Method, device, control terminal and medium for restarting distributed deployment of multiple services
CN109739435B (en) File storage and updating method and device
CN105407117A (en) Distributed data backup method, device and system
CN109547524A (en) User behavior storage method, device, equipment and storage medium based on Physical Network
US11444998B2 (en) Bit rate reduction processing method for data file, and server
CN113342746A (en) File management system, file management method, electronic device, and storage medium
CN109547253B (en) File downloading method and device, computer equipment and storage medium
CN116455896A (en) Intelligent illumination management and control system, resource service method and related device
CN101442458B (en) System and method for sending sequence type data
EP3174322A1 (en) Method for deleting notification resource, and common service entity
CN107305581B (en) Table connection method in distributed database system and distributed database system
KR20160026138A (en) Rapid sync method for cloud file system and cloud file system using the same
CN114595115A (en) Model data extraction method, system, electronic device and computer storage medium
CN111431951B (en) Data processing method, node equipment, system and storage medium
CN110099208B (en) Method and device for cross-level and cross-domain upgrading of camera in video monitoring system
CN109525675B (en) Northbound server file downloading method and device, computer equipment and storage medium
CN107528797B (en) Data processing method, device and system
CN112383633B (en) Session management method and system
CN116991333B (en) Distributed data storage method, device, electronic equipment and storage medium
CN116455594A (en) Distributed intelligent lighting system, access method and related device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination