CN109960502B - Software system announcement method applied to electronic channel of telecom operator - Google Patents
Software system announcement method applied to electronic channel of telecom operator Download PDFInfo
- Publication number
- CN109960502B CN109960502B CN201711399828.9A CN201711399828A CN109960502B CN 109960502 B CN109960502 B CN 109960502B CN 201711399828 A CN201711399828 A CN 201711399828A CN 109960502 B CN109960502 B CN 109960502B
- Authority
- CN
- China
- Prior art keywords
- announcement
- service
- notice
- bulletin
- cache
- 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.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/34—Graphical or visual programming
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/38—Creation or generation of source code for implementing user interfaces
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/568—Storing data temporarily at an intermediate stage, e.g. caching
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention relates to a software system announcement method applied to an electronic channel of a telecom operator, which comprises the following steps: the method comprises the following steps: presetting the content of the bulletin and the information of a redis cache server in the application service to be published; the announcement content comprises the starting and ending time of the announcement, the specific content of the announcement and an announcement switch; the information of the redis cache server includes a port and an IP of a public cache server used by the application issuing the advertisement. The system operator issues announcements; the system initializes the issued notice content according to the preset notice content in the step one, and caches the initialized notice in the nginx cache dictionary by using the lua script. Step three, requesting by a user; recognizing a user request, and reading the notice from the nginx cache dictionary; and if the condition is not met, entering a service interface requested by the user. By adopting the method, the risk of manually operating the application service and the database can be eliminated.
Description
Technical Field
The invention belongs to the field of mobile internet communication software, and particularly relates to a software system announcement method applied to an electronic channel of a telecom operator.
Background
In a mobile internet application system, most of system maintenance notices are manually modified page contents, and then an execution server script is manually set to execute a script within a specified time, so that notices are displayed; the service-level announcement is directly carried out by manually modifying the page or replacing the content. The solution for displaying the system announcement or the service announcement has the following problems: firstly, the system level maintenance bulletin is executed and displayed through the script, the visual management of the system maintenance bulletin content cannot be carried out, and once the system maintenance bulletin script is executed, the content updating cannot be reversed, so that a large number of users browse wrong system maintenance bulletin information. Secondly, the service-level bulletin replaces the original service content information by modifying the page content or replacing the content in a manual mode, on one hand, the existing program content needs to be repeatedly and manually modified by a development background, and in this case, the repeated labor of development labor force is caused, so that the development resources are wasted, and on the other hand, the bulletin error is increased by manual operation. Thirdly, both the system maintenance bulletin and the service bulletin need to modify the original internet application system program to display the system maintenance bulletin or the service bulletin, and the implementation of the scheme has a very high coupling degree with the system, so that the consistency of the system version can be damaged.
Under the circumstances, a lightweight and compact scripting language embedded in an internet application system program is needed, which provides flexible system maintenance bulletin or service bulletin function extension for the internet application system program, and reduces the coupling degree of the system maintenance bulletin and service bulletin and the original internet application system program, thereby maintaining the consistency of the internet application system program.
Disclosure of Invention
1. The technical problem to be solved is as follows:
the invention provides a software system announcement method applied to an electronic channel of a telecom operator; the scheme adopts a lightweight scripting language, is embedded into an Internet application system program, provides flexible system maintenance bulletin or service bulletin function extension for the Internet application system program, and reduces the coupling degree of the system maintenance bulletin and the service bulletin and the original Internet application system program, thereby keeping the consistency of the Internet application system program.
2. The technical scheme is as follows:
a software system announcement method applied to an electronic channel of a telecom operator is characterized in that: comprises the following steps
The method comprises the following steps: presetting the content of the bulletin and the information of a redis cache server in the application service to be published; the announcement content comprises the starting and ending time of the announcement, the specific content of the announcement and an announcement switch; the information of the redis cache server includes a port and an IP of a public cache server used by the application issuing the advertisement.
The system operator issues announcements; the system initializes the issued notice content according to the preset notice content in the step one, and caches the initialized notice in the nginx cache dictionary by using the lua script. At this time, the lua script is fused in the nginx service and is not associated with the existing service, so that the coupling of the system bulletin, the service bulletin and the service system is released, and the decoupling of the bulletin system and the web service system is realized. By the aid of the lua announcement intercepting script, service requests to the server are directly blocked when system announcements or service announcements are made, and communication pressure between user requests and the server is reduced. The lua cache script and the announcement interception script unify the scripts and provide services through the nginx service.
Step three, requesting by a user; identifying a user request, if the user request relates to the notice, and returning the information related to the notice of the user within the effective time related to the notice, namely reading the notice from the nginx cache dictionary; and if the condition is not met, entering a service interface requested by the user.
Further, the step two also includes: and reading the initialized announcements from the redis cache container through the lua service script and storing the announcements in the nginx shared dictionary cache.
Further, the system is configured as a visualization interface; the method specifically comprises the following steps: the system maintenance bulletin and the service bulletin information can be visually seen, and the verification of the bulletin push information can be carried out through a visual page.
Redis is an open source log-type and Key-Value database which is written by using ANSI C language, supports network, can be based on memory and can also be persistent, and provides API of multiple languages. In the invention, the content of the announcement and the information of the redis cache server are combined.
In step one, a redis service cluster is deployed. Because the background operation cluster server is configured to push the information of the system maintenance bulletin and the service bulletin, a temporary storage place of a public cache is needed, and the read-write of the system maintenance bulletin and the service bulletin information is carried out by the redis cluster sharing cache service on the premise of high access rate, the consistency of the system maintenance bulletin and the service bulletin is met, and the access rate of the system maintenance bulletin and the service bulletin is also improved.
Under the current internet web service system, most systems are deployed in a cluster, port load is carried out through nginx, access capacity is in the level of millions or even tens of millions, pressure of redis service can be caused if redis service is directly requested by high concurrent request capacity, temporary bulletins are pushed to the shared cache dictionary through redis cache through configuration of the nginx shared cache dictionary, all requests of business are read through the nginx shared cache dictionary, and the request pressure of redis is relieved to a great extent.
And in the second step, the notice is developed by the lua interception script. The Lua script is a small script language, is compiled by standard C, and can be compiled and run on almost all operating systems and platforms. Lua does not provide a powerful library, not only serves as an extension script, but also can serve as a common configuration file, replaces file formats such as XML and ini, can be compiled and run on almost all operating systems and platforms, and is easier to understand and maintain. Writing system announcement interception script by using lua script can be easily embedded into nginx software configuration without coupling with web system service, and decoupling of system announcement, service announcement and web service system is eliminated to the greatest extent.
The system maintenance bulletin and the service bulletin information can be visually seen, the bulletin and the service bulletin information can be visually verified through a visual page, and the risk of manually operating the server is reduced.
3. Has the advantages that:
(1) the method adopts the content of the preset bulletin and the information of the redis cache server, and automatically leads the content of the bulletin into the content template of the preset bulletin when the system collects the bulletin, thereby eliminating the risk of manually operating the application service and the database.
(2) In the method, the system maintenance announcement and the service announcement are separated from the service application without mutual influence, and the decoupling separation of the announcement service and the deployed application system is realized.
(3) The lightweight lua language script is embedded in the method, so that the original service architecture is not influenced, and the request pressure of the server on the request is relieved.
(4) The system in the method maintains the visual configuration of the announcements and the service announcements, improves the readability and verifiability of the announcements, and greatly improves the correctness of the content of the announcements and the expandability of the announcements to the server.
(5) The use of the shared dictionary cache of nginx in the method reduces the request pressure of the service to the redis cache, and realizes the consistency of the announcements of the cluster service.
Drawings
FIG. 1 is a flow chart of the present invention.
Detailed Description
The present invention will be described with reference to the accompanying drawings. As shown in fig. 1, the present invention provides a software system advertisement method applied to an electronic channel of a telecom operator, and as shown in the accompanying drawings, it can be seen that the functions of the method are: (1) the system maintenance announcement and service announcement service logic is decoupled from the deployed application system. (2) And intercepting the nginx request by using a lightweight scripting language, and analyzing the request information. (3) The system maintains visual editing and verification of the announcement and service announcement content. And (4) displaying the system maintenance bulletin and the service bulletin automatically. And (5) under the service environment of the cluster system, the announcement content of the system maintenance announcement and the service announcement can be shared and synchronously updated in real time. (6) And the service automatic retrieval, configuration and pushing system maintenance notice and service notice content under the condition of compatible server capacity expansion.
Specifically, the method comprises the following steps: a software system announcement method applied to an electronic channel of a telecom operator is characterized in that: the method comprises the following steps:
the method comprises the following steps: presetting the content of the bulletin and the information of a redis cache server in the application service to be published; the announcement content comprises the starting and ending time of the announcement, the specific content of the announcement and an announcement switch; the information of the redis cache server comprises a port and an IP (Internet protocol) of a public cache server used by an application issuing an announcement;
step two: the system operator issues announcements; the system initializes the issued announcement content according to the preset announcement content in the step one, and caches the initialized announcement to the nginx cache dictionary by using the lua script;
step three, requesting by a user; identifying a user request, if the user request relates to the notice, and returning the information related to the notice of the user within the effective time related to the notice, namely reading the notice from the nginx cache dictionary; and if the condition is not met, entering a service interface requested by the user.
Step three, requesting by a user; identifying a user request, if the user request relates to the notice, and returning the information related to the notice of the user within the effective time related to the notice, namely reading the notice from the nginx cache dictionary; and if the condition is not met, entering a service interface requested by the user.
Further, the step two also includes: and reading the initialized announcements from the redis cache container through the lua service script and storing the announcements in the nginx shared dictionary cache.
Further, the system is configured as a visualization interface; the method specifically comprises the following steps: the system maintenance bulletin and the service bulletin information can be visually seen, and the verification of the bulletin push information can be carried out through a visual page.
Although the present invention has been described with reference to the preferred embodiments, it should be understood that various changes and modifications can be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.
Claims (1)
1. A software system announcement method applied to an electronic channel of a telecom operator is characterized in that: the method comprises the following steps:
the method comprises the following steps: configuring an application service system which is about to issue the notice; presetting the content of the bulletin and the information of a redis cache server in the application service to be published; the announcement content comprises the starting and ending time of the announcement, the specific content of the announcement and an announcement switch; the information of the redis cache server comprises a port and an IP (Internet protocol) of a public cache server used by an application issuing an announcement; the redis cluster shared cache service performs system maintenance announcement and reading and writing of service announcement information on the premise of high access rate;
step two: the system operator issues announcements; the system initializes the issued announcement content according to the preset announcement content in the first step; reading the initialized announcements from a redis cache container through a lua service script and storing the announcements in the nginx shared dictionary cache; pushing the temporary announcement to the shared cache dictionary through a redis cache by the configuration of the nginx shared cache dictionary, so that all requests of the service are read through the nginx shared cache dictionary;
step three: a user request; identifying a user request, if the user request relates to the notice, and returning the information related to the notice of the user within the effective time related to the notice, namely reading the notice from the nginx cache dictionary; if the condition is not met, entering a service interface requested by the user;
wherein the system configuration is configured through a visual interface; the method specifically comprises the following steps: the system maintenance bulletin and the service bulletin information can be visually seen, and the verification of the bulletin push information can be carried out through a visual page.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711399828.9A CN109960502B (en) | 2017-12-22 | 2017-12-22 | Software system announcement method applied to electronic channel of telecom operator |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711399828.9A CN109960502B (en) | 2017-12-22 | 2017-12-22 | Software system announcement method applied to electronic channel of telecom operator |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109960502A CN109960502A (en) | 2019-07-02 |
CN109960502B true CN109960502B (en) | 2022-04-05 |
Family
ID=67018726
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711399828.9A Active CN109960502B (en) | 2017-12-22 | 2017-12-22 | Software system announcement method applied to electronic channel of telecom operator |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109960502B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103336815A (en) * | 2013-06-27 | 2013-10-02 | 北京京东尚科信息技术有限公司 | System and method of pushing network advertising |
WO2016112826A1 (en) * | 2015-01-12 | 2016-07-21 | 北京京东尚科信息技术有限公司 | Method and system for increasing page loading rate |
CN106202505A (en) * | 2016-07-20 | 2016-12-07 | 北京京东尚科信息技术有限公司 | Data processing method and system thereof |
CN106599153A (en) * | 2016-12-07 | 2017-04-26 | 河北中废通网络技术有限公司 | Multi-data-source-based waste industry search system and method |
CN106657258A (en) * | 2016-11-04 | 2017-05-10 | 成都视达科信息技术有限公司 | Realization method and device of safe acceleration middleware based on NGINX+LUA |
-
2017
- 2017-12-22 CN CN201711399828.9A patent/CN109960502B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103336815A (en) * | 2013-06-27 | 2013-10-02 | 北京京东尚科信息技术有限公司 | System and method of pushing network advertising |
WO2016112826A1 (en) * | 2015-01-12 | 2016-07-21 | 北京京东尚科信息技术有限公司 | Method and system for increasing page loading rate |
CN106202505A (en) * | 2016-07-20 | 2016-12-07 | 北京京东尚科信息技术有限公司 | Data processing method and system thereof |
CN106657258A (en) * | 2016-11-04 | 2017-05-10 | 成都视达科信息技术有限公司 | Realization method and device of safe acceleration middleware based on NGINX+LUA |
CN106599153A (en) * | 2016-12-07 | 2017-04-26 | 河北中废通网络技术有限公司 | Multi-data-source-based waste industry search system and method |
Non-Patent Citations (1)
Title |
---|
基于nginx和redis高并发web服务负载均衡的研究;蒲晓阳;《内江科技》;20160503;第37卷(第01期);33,40 * |
Also Published As
Publication number | Publication date |
---|---|
CN109960502A (en) | 2019-07-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103077024B (en) | A kind of device and method supporting the on-demand customization of SaaS application flow and operation | |
US20100088695A1 (en) | System and method for localizing a server application using a client-side translator | |
CN111949693B (en) | Data processing device, data processing method, storage medium and electronic equipment | |
US10558438B2 (en) | Context information based on type of routine being called | |
CN114547076A (en) | Data processing method and data processing system | |
US20190129743A1 (en) | Method and apparatus for managing virtual machine | |
US20180165091A1 (en) | Marking sibling caller routines | |
CN115795211A (en) | Page display method, device, system, equipment and storage medium | |
CN108399046B (en) | File operation request processing method and device | |
CN110389859A (en) | Method, equipment and computer program product for copied chunks | |
US10944824B2 (en) | Method and apparatus for processing media type in rest software architecture | |
CN114064113A (en) | Host version control method and device | |
CN114168269A (en) | WebAssembly data execution method, device, equipment and medium | |
CN109960502B (en) | Software system announcement method applied to electronic channel of telecom operator | |
CN112181393B (en) | Front-end and back-end code generation method and device, computer equipment and storage medium | |
CN113271307A (en) | Data assembling method, device, computer system and storage medium | |
CN113377770A (en) | Data processing method and device | |
CN110674426B (en) | Webpage behavior reporting method and device | |
CN109684207B (en) | Method and device for packaging operation sequence, electronic equipment and storage medium | |
CN110717134A (en) | Product description issuing method and device, storage medium and electronic equipment | |
US11860883B2 (en) | System and method for implementing data usage analysis for database systems | |
CN109634636B (en) | Application processing method, device, equipment and medium | |
CN112988583A (en) | Method and device for testing syntax compatibility of database | |
CN111639010A (en) | Kong-based Prometheus plug-in transformation method | |
CN112579117A (en) | Data upgrading method and 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |