WO2022142536A1 - Grayscale publishing method, system and apparatus, and device and storage medium - Google Patents

Grayscale publishing method, system and apparatus, and device and storage medium Download PDF

Info

Publication number
WO2022142536A1
WO2022142536A1 PCT/CN2021/120918 CN2021120918W WO2022142536A1 WO 2022142536 A1 WO2022142536 A1 WO 2022142536A1 CN 2021120918 W CN2021120918 W CN 2021120918W WO 2022142536 A1 WO2022142536 A1 WO 2022142536A1
Authority
WO
WIPO (PCT)
Prior art keywords
grayscale
page
client
configuration information
server
Prior art date
Application number
PCT/CN2021/120918
Other languages
French (fr)
Chinese (zh)
Inventor
张恒
刘菁
刘威
杜强强
雒玉石
王昌亮
马帅
赵丹琳
Original Assignee
京东科技控股股份有限公司
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 京东科技控股股份有限公司 filed Critical 京东科技控股股份有限公司
Publication of WO2022142536A1 publication Critical patent/WO2022142536A1/en

Links

Images

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/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • 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/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Definitions

  • the present application relates to the field of Internet technologies, for example, to a grayscale publishing method, system, apparatus, device, and storage medium.
  • Grayscale release refers to a release method with a smooth transition between black and white, which can well avoid the running risk of a new version going online.
  • Grayscale publishing selects some users to use product feature A, and another part of users to use product feature B. If the operation of product feature A is normal, gradually expand the scope of users of product feature A until all users use product feature A, even if it appears Operational exceptions can minimize their impact.
  • Grayscale publishing mainly cooperates with operators to publish the pages that need grayscale publishing to a designated server, and connect the designated server to the designated operator's network. Only terminals using the operator's network can access the website. Specifies the page on the server.
  • the present application provides a grayscale publishing method, system, device, device and storage medium, so as to solve the problem of cooperation with operators in grayscale publishing, and improve the controllability and publishing efficiency of grayscale publishing.
  • the present application provides a grayscale publishing method, which includes:
  • the grayscale identification information in the page configuration download request is obtained; wherein the grayscale identification information includes the value of the preset grayscale filter parameter determined by the client value;
  • the grayscale configuration information includes a value range of a preset grayscale filter parameter preset for the page of the client;
  • the grayscale identification information and the grayscale configuration information are successfully matched, send a page configuration list that records the offline download address corresponding to the page of the client to the client, so that the client can be based on the
  • the page configuration list downloads the offline resource file from the first server to the local storage unit, and renders and displays the page of the client based on the offline resource file in the local storage unit.
  • the present application also provides a grayscale publishing method, which includes:
  • the gateway server sends a page configuration list that records the offline download address corresponding to the page of the client to the client; wherein the grayscale identification information includes a preset grayscale determined by the client the value of the grayscale filter parameter, and the grayscale configuration information includes the value range of the preset grayscale filter parameter preset for the page of the client;
  • the offline resource file is downloaded from the first server to the local storage unit, and the page of the client is rendered and displayed based on the offline resource file in the local storage unit.
  • the present application also provides a grayscale publishing system, the system includes: a gateway server, a client and a first server; wherein,
  • the gateway server is configured to obtain the grayscale identification information in the page configuration download request when receiving the page configuration download request, and match the grayscale identification information with the grayscale configuration information. If the identification information and the grayscale configuration information are successfully matched, the page configuration list that records the offline download address corresponding to the page of the client is sent to the client; wherein the grayscale identification information includes the client the determined value of the preset grayscale filtering parameter, and the grayscale configuration information includes the value range of the preset grayscale filtering parameter preset for the page of the client;
  • the client is configured to send the page configuration download request to the gateway server, and download the offline resource file from the first server to the local storage unit based on the page configuration list sent by the gateway server, and rendering and displaying the page of the client based on the offline resource file in the local storage unit;
  • the first server is configured to store offline resource files of at least one page.
  • the present application also provides a grayscale distribution device, which includes:
  • the grayscale identification information acquisition module is configured to acquire the grayscale identification information in the page configuration download request when receiving the page configuration download request sent by the client; wherein the grayscale identification information includes the information determined by the client The value of the preset grayscale filter parameter;
  • the grayscale identification information matching module is configured to match the grayscale identification information with the grayscale configuration information; wherein the grayscale configuration information includes a selection of preset grayscale filtering parameters preset for the page of the client value range;
  • a page configuration list sending module configured to send a page configuration list that records the offline download address corresponding to the page of the client to the client if the grayscale identification information and the grayscale configuration information are successfully matched, so that the client downloads the offline resource file from the first server to the local storage unit based on the page configuration list, and renders and displays the page of the client based on the offline resource file in the local storage unit.
  • the present application also provides a grayscale distribution device, which includes:
  • the page configuration download request sending module is configured to send the page configuration download request including the grayscale identification information to the gateway server, so that the gateway server matches the grayscale identification information with the grayscale configuration information, and if the grayscale identification information is matched If the grayscale identification information and the grayscale configuration information are successfully matched, the gateway server sends a page configuration list that records the offline download address corresponding to the page of the client to the client; wherein the grayscale identification information includes the value of the preset grayscale filtering parameter determined by the client, and the grayscale configuration information includes the value range of the preset grayscale filtering parameter preset for the page of the client;
  • the page rendering and display module is configured to download the offline resource file from the first server to the local storage unit based on the page configuration list sent by the gateway server, and based on the offline resource file in the local storage unit, the offline resource file in the local storage unit is set to the client.
  • the page is rendered and displayed.
  • the application also provides an electronic device, the electronic device includes:
  • processors one or more processors
  • memory arranged to store one or more programs
  • the one or more processors are caused to implement any one of the grayscale publishing methods mentioned above.
  • the present application also provides a storage medium containing computer-executable instructions, where the computer-executable instructions, when executed by a computer processor, are used to execute any of the above-mentioned grayscale publishing methods.
  • FIG. 2 is a flowchart of a grayscale publishing method provided in Embodiment 2 of the present application.
  • FIG. 3 is a flowchart of a grayscale publishing method provided in Embodiment 3 of the present application.
  • FIG. 4 is a flowchart of a grayscale publishing method provided in Embodiment 4 of the present application.
  • FIG. 5 is a schematic structural diagram of a grayscale publishing system provided in Embodiment 5 of the present application.
  • FIG. 6 is a schematic structural diagram of a specific example of a grayscale publishing system provided in Embodiment 5 of the present application;
  • FIG. 7 is a schematic diagram of a grayscale distribution device provided in Embodiment 6 of the present application.
  • FIG. 8 is a schematic diagram of a grayscale distribution device provided in Embodiment 7 of the present application.
  • FIG. 9 is a schematic structural diagram of an electronic device according to Embodiment 8 of the present application.
  • FIG. 1 is a flow chart of a grayscale publishing method provided in Embodiment 1 of the present application. This embodiment is applicable to the case of conducting grayscale publishing on a page of a client.
  • the method can be executed by a grayscale publishing device. It can be implemented in software and/or hardware, and the device can be configured in a gateway server. It includes the following steps:
  • the grayscale identification information includes the value of the preset grayscale filtering parameter determined by the client.
  • the client detects a page configuration trigger event, it determines the value of the preset grayscale filtering parameter based on the preset grayscale filtering parameter, and generates grayscale based on the value of the preset grayscale filtering parameter. identifying information.
  • the preset grayscale filtering parameters include: client operating system type, client operating system version, client type, client version, user information, crowd portrait, user city, operator, and At least one of the user equipment types.
  • the client operating system type can be a mobile operating system (iPad/iPhone/iPod touch Operating System, IOS), Android system, Windows7 system or Windows10 system developed by Apple;
  • the client operating system version can be The version number of the operating system;
  • the client type can be used to characterize the client name, such as client A and client B, exemplarily, client A and client B can belong to the same e-shopping client, or client A and client B Client B belongs to an electronic shopping client and a map navigation client respectively;
  • the client version can be the version number of the client;
  • the user information includes at least one of user name, user gender, user login password and user age;
  • the crowd portrait includes Crowd characteristics and crowd information, for example, crowd portraits include information such as age, gender, average income, and occupation of low-income people; operators can
  • the values of the preset grayscale filtering parameters in the grayscale identification information include IOS, IOS14.3 version, client A (application), 9.3.0 version, Zhang San, and a low-income 28-year-old Crowd, Beijing, China Mobile Operators and B-brand mobile phones.
  • the preset grayscale filtering parameters are only exemplarily explained, but not limited.
  • the settings and value ranges of the preset grayscale filtering parameters can be set according to requirements.
  • the grayscale configuration information includes a value range of preset grayscale filtering parameters preset for the page of the client.
  • the page of the client includes a page used for grayscale publishing.
  • the preset grayscale filtering parameters in the grayscale configuration information correspond to the preset grayscale filtering parameters in the grayscale identification information. If the grayscale identification information and the grayscale configuration information match successfully, it means that the preset grayscale in the grayscale identification information
  • the value of the filter parameter is the same as the value of a set of preset grayscale filter parameters in the grayscale configuration information. If the grayscale identification information fails to match the grayscale configuration information, it means that the grayscale identification information and the grayscale configuration information have The values of any set of preset grayscale filtering parameters are different.
  • the values of a group of preset grayscale filtering parameters include the value of at least one preset grayscale filtering parameter.
  • the grayscale configuration information includes four sets of preset grayscale filtering parameters The values of , respectively, are Beijing and China Mobile operators, Beijing and China Unicom operators, Shanghai and China Mobile operators, and Shanghai and China Unicom operators. If the user city and operator in the grayscale identification information are Beijing and China Mobile, respectively, the grayscale identification information and the grayscale configuration information are successfully matched. If the user city and operator in the grayscale identification information are Shenzhen and China If it is a mobile operator, the grayscale identification information fails to match the grayscale configuration information.
  • the method further includes: acquiring the grayscale configuration information from the data storage server; wherein the grayscale configuration information is the third The server is pre-written to the data store server.
  • the grayscale configuration information is initial grayscale configuration information input by the user and received by the third server.
  • an offline platform system is deployed on the third server, and the offline platform system is compiled based on Nodejs statements.
  • the user can input initial grayscale configuration information based on the offline platform system built on the third server.
  • the first server is a cloud server.
  • the cloud server is a server that can provide simple, efficient, safe and reliable computing services with elastically scalable processing capabilities.
  • the cloud server may be a Jingdong Storage Service (JSS).
  • JSS server can provide users with management functions such as file storage, access, backup and sharing.
  • the offline resource file is downloaded from the first server according to the offline download address corresponding to the page recorded in the page configuration list.
  • the offline download address is used to represent the storage address of the offline resource file corresponding to the page in the first server.
  • the offline resource file contains information for rendering the page, and exemplarily, the offline resource file includes a HyperText Markup Language (HTML) file and rendering resources.
  • the offline resource path referenced by the HTML file is the storage path of the rendering resource in the local storage unit.
  • the rendering resource includes, but is not limited to, at least one of a Cascading Style Sheets (Cascading Style Sheets, CSS) file, a Java script (JavaScript, JS) file, a video, and a picture.
  • the offline download address corresponding to the page will be recorded.
  • the page configuration list is sent to the client, realizing the purpose of grayscale publishing of offline resource files based on pages, solving the problem that online grayscale publishing needs to cooperate with operators, thereby improving the controllability of grayscale publishing and The grayscale publishing efficiency of the page.
  • FIG. 2 is a flowchart of a grayscale publishing method provided in Embodiment 2 of the present application. The technical solution of this embodiment is described on the basis of the above-mentioned embodiment.
  • the method before sending the page configuration list in which the offline download address corresponding to the page is recorded to the client, the method further includes: acquiring the sent times of the page configuration list; comparing the sent times with the sent times. The maximum number of visits is compared, and if the number of sent times is less than or equal to the maximum number of allowed visits, the operation of sending the page configuration list that records the offline download address corresponding to the page to the client is triggered.
  • the method also includes: if the sent times is greater than the maximum allowable number of visits, sending a Uniform Resource Locator (URL) address corresponding to the page to the client, so that the client is based on the URL address.
  • URL Uniform Resource Locator
  • S220 Match the grayscale identification information with the grayscale configuration information, and if the grayscale identification information and the grayscale configuration information are successfully matched, obtain the sent times of the page configuration list.
  • the number of times sent may be used to represent the number of times the client downloads the offline resource file corresponding to the page from the first server.
  • acquiring the sent times of the page configuration list includes: while sending the page configuration list in which the offline download address corresponding to the page is recorded to the client, performing an operation of adding one to the times to obtain the sent times .
  • the step of "obtaining the sent times of the page configuration list” may also be performed before “matching the grayscale identification information with the grayscale configuration information", and this embodiment only uses the step of "obtaining the sent times of the page configuration list" An example is performed after “matching grayscale identification information with grayscale configuration information” for explanation.
  • S230 Determine whether the number of times sent is greater than the maximum number of visits, if the number of times sent is greater than the maximum number of visits, execute S240, and if the number of times sent is less than or equal to the maximum number of visits, execute S250.
  • the maximum number of visits can be used to represent the maximum number of times of sending the page configuration list that records the offline download address corresponding to the page, and can also represent the maximum number of downloads of the offline resource file corresponding to the page downloaded by the client from the first server.
  • the maximum number of accesses is obtained from the data storage server, where the maximum number of accesses is pre-written into the database storage by the third server.
  • the grayscale configuration information includes the maximum number of accesses
  • matching the grayscale identification information with the grayscale configuration information includes: adding the number of times sent to the grayscale identification information, Match the grayscale identification information with the grayscale configuration information. If the grayscale identification information matches the grayscale configuration information successfully, it means that the number of times sent is less than or equal to the maximum number of visits. If the grayscale identification information and the grayscale configuration information fail to match, it means that the number of times sent is greater than the maximum number of visits.
  • S240 Send the URL address corresponding to the page to the client, so that the client obtains the HTML file on the second server based on the URL address, and renders and displays the page based on the HTML file.
  • a URL address is a representation of the location address of an accessible resource on the Internet.
  • a URL address is composed of a string of characters, which can be letters, numbers and special symbols.
  • sending the URL address corresponding to the page to the client includes: sending a page configuration list in which the URL address corresponding to the page is recorded to the client.
  • the second server is a website server.
  • the website server may be a physical server configured with an independent domain name address.
  • the website server may be an Apache server, an Nginx server or an Internet Information Services (Internet Information Services, IIS) server.
  • the resource path referenced by the HTML file in the website server is different from the resource path referenced by the HTML file in the offline resource file.
  • the resource path referenced by the HTML file in the website server is a path related to the domain name address of the website server, and the resource path referenced by the HTML file in the offline resource file is a path related to the storage path of the offline resource file in the local storage unit.
  • the HTML file downloaded from the website server and the HTML file in the offline resource file are different HTML files.
  • the technical solution of this embodiment solves the problem of limiting the number of downloads of offline resource files by obtaining the sent times of the page configuration list and comparing the sent times with the maximum number of visits, so that a limited number of offline-based resource files can be obtained.
  • the resource file renders the grayscale test data corresponding to the page displayed, and performs quantitative data analysis on a limited number of grayscale test data.
  • the URL address corresponding to the page is sent to the client, which ensures that the client corresponding to the grayscale identification information matching the grayscale configuration information can also render and display the page.
  • the purpose of online grayscale publishing of the page is realized.
  • FIG. 3 is a flowchart of a grayscale publishing method provided in Embodiment 3 of the present application. The technical solution of this embodiment is described on the basis of the above-mentioned embodiment.
  • the grayscale configuration information is obtained after the third server adjusts the target grayscale configuration information corresponding to the grayscale test data in the existing grayscale configuration information based on the grayscale test data of the page. update grayscale configuration information.
  • S320 Obtain page-based grayscale test data of the third server from the data storage server, and obtain updated grayscale configuration information obtained by adjusting target grayscale configuration information corresponding to the grayscale test data in the existing grayscale configuration information.
  • the grayscale test data can be used to describe the test data when the page is rendered and displayed on the client.
  • the grayscale test data includes, but is not limited to, the number of page display errors, the number of times the page is displayed overtime, the number of times the page is accessed, and feedback information sent by the client.
  • the feedback information may be page satisfaction.
  • the data content included in the grayscale test data is not limited here.
  • the existing grayscale information includes initial grayscale configuration information input by the user, second grayscale configuration information corresponding to the first adjustment operation, third grayscale configuration information corresponding to the second adjustment operation, and the like.
  • the target grayscale configuration information corresponding to the grayscale test data represents the grayscale configuration information currently used for matching with the grayscale identification information. For example, assuming that the target grayscale information corresponding to the grayscale test data is the third grayscale configuration information, the updated grayscale configuration information is the fourth grayscale configuration information corresponding to the third adjustment operation.
  • updating the grayscale configuration information includes the first updated grayscale configuration information obtained by the third server performing an information modification operation on the target grayscale configuration information according to the grayscale test data of the page, or, the first update grayscale configuration information.
  • the third server performs the second update grayscale configuration information obtained by performing an information addition operation on the target grayscale configuration information according to the grayscale test data of the page.
  • the information modification operation may be to modify the value range A of the preset grayscale filtering parameter in the target grayscale configuration information to the value range B, and the value range A and the value range B do not intersect.
  • the client operating system type in the target grayscale configuration information is IOS
  • the client operating system type in the first updated grayscale configuration information is Android system.
  • the information adding operation may be to modify the value range A of the preset grayscale filtering parameter in the target grayscale configuration information to the value range B, and the value range A is included in the value range B.
  • the client operating system type in the target grayscale configuration information is IOS
  • the client operating system types in the second update grayscale configuration information are the IOS system and the Android system.
  • the third server performs an information modification operation on the target grayscale configuration information corresponding to the grayscale test data that satisfies the preset failure standard.
  • the preset failure criterion may be that the number of page display errors is greater than the preset number of times threshold and/or the page access rate is less than the preset access threshold.
  • the IOS system is modified to the Android system.
  • the third server performs an information addition operation on the target grayscale configuration information corresponding to the grayscale test data that meets the preset verification standard.
  • the preset verification standard may be opposite to the preset failure standard.
  • the preset verification standard may be that the number of page display errors is less than or equal to the preset number of times threshold and/or the page access rate is greater than or equal to the predetermined number of times. Set the access threshold. For example, if the grayscale test data corresponding to IOS satisfies the preset verification standard, the value range of the client operating system type is modified to IOS and Android systems.
  • the advantage of this setting is that by performing an information addition operation on the grayscale configuration information, when the grayscale test information meets the preset verification standard, the applicable scope of clients that meet the grayscale publishing conditions can be expanded in time, thereby improving the performance of the grayscale test information. Transition efficiency from full release to full release.
  • the method further includes: reading from the data storage server corresponding to the first updated grayscale configuration information target grayscale configuration information, and match the grayscale identification information with the target grayscale configuration information; if the grayscale identification information matches the target grayscale configuration information successfully, send the URL address corresponding to the page to the client, so that the The client obtains the HTML file on the second server based on the URL address, and renders and displays the page based on the HTML file.
  • the target grayscale configuration information is the grayscale configuration information corresponding to the first updated grayscale configuration information before the information modification operation is performed.
  • the advantage of this setting is that although the target grayscale configuration information is adjusted to the first updated grayscale configuration information, although the target grayscale configuration information causes the client to generate grayscale test data that meets the preset failure criteria, the target grayscale configuration information can be adjusted. Clients with grayscale configuration information may still belong to clients that require grayscale testing.
  • the purpose of performing an online grayscale test on the client that satisfies the target grayscale configuration information is realized. This ensures the integrity of the grayscale test data in the grayscale release process.
  • updating the grayscale configuration information includes the first updated grayscale configuration information and the second updated grayscale configuration information for performing an information modification operation or performing an information addition operation. It solves the problem of updating the grayscale configuration information, improves the page display effect of the client that meets the grayscale publishing conditions, and improves the transition efficiency of the page from grayscale publishing to full publishing.
  • FIG. 4 is a flow chart of a grayscale publishing method provided in Embodiment 4 of the present application. This embodiment is applicable to the case of conducting grayscale publishing on a page of a client.
  • the method can be executed by a grayscale publishing device. It can be implemented in software and/or hardware, and the device can be configured in a gateway server. It includes the following steps:
  • the grayscale identification information includes the value of the preset grayscale filtering parameter determined by the client
  • the grayscale configuration information includes the value range of the preset grayscale filtering parameter preset for the page of the client.
  • the preset grayscale filtering parameters include: client operating system type, client operating system version, client type, client version, user information, crowd portrait, user city, operator, and At least one of the user equipment types.
  • client operating system type can be IOS, Android system, Windows7 system or Windows10 system, etc.
  • client operating system version can be the version number of the operating system
  • client type can be used to represent the client name, such as the client Client A and Client B.
  • Client A and Client B may both belong to the electronic shopping client, or Client A and Client B belong to the electronic shopping client and the map navigation client respectively;
  • the client version can be the version number of the client;
  • the user information includes at least one of the user name, user gender, user login password, and user age;
  • the crowd portrait includes crowd characteristics and crowd information, for example, the crowd portrait includes the age of low-income people , gender, average income and occupation;
  • the operator can be a provider of network services for user equipment, such as China Mobile operator, China Unicom operator or China Telecom operator;
  • user equipment type can be used to describe the equipment on which the client is installed Type, such as mobile terminal, laptop or tablet, user device type can also include device brand.
  • the values of the preset grayscale filtering parameters in the grayscale identification information include IOS, IOS14.3 version, client A (application), 9.3.0 version, Zhang San, and a low-income 28-year-old Crowd, Beijing, China Mobile Operators and B-brand mobile phones.
  • the preset grayscale filtering parameters are only exemplarily explained, but not limited.
  • the settings and value ranges of the preset grayscale filtering parameters can be set according to requirements.
  • the client's pages include pages for grayscale publishing.
  • the preset grayscale filtering parameters in the grayscale configuration information correspond to the preset grayscale filtering parameters in the grayscale identification information. If the grayscale identification information and the grayscale configuration information match successfully, it means that the preset grayscale in the grayscale identification information
  • the value of the filter parameter is the same as the value of a set of preset grayscale filter parameters in the grayscale configuration information. If the grayscale identification information fails to match the grayscale configuration information, it means that the grayscale identification information and the grayscale configuration information have The values of any set of preset grayscale filtering parameters are different.
  • the values of a group of preset grayscale filtering parameters include the value of at least one preset grayscale filtering parameter.
  • the grayscale configuration information includes four sets of preset grayscale filtering parameters
  • the values of , respectively, are Beijing and China Mobile operators, Beijing and China Unicom operators, Shanghai and China Mobile operators, and Shanghai and China Unicom operators. If the user city and operator in the grayscale identification information are Beijing and China Mobile, respectively, the grayscale identification information and the grayscale configuration information are successfully matched. If the user city and operator in the grayscale identification information are Shenzhen and China If it is a mobile operator, the grayscale identification information fails to match the grayscale configuration information.
  • the gateway server may be a Java gateway interface server.
  • a page configuration download request is generated, wherein the page configuration trigger event includes at least one of a page display trigger event, a client startup event, and a client front-background switching event A sort of.
  • a page configuration download request is generated when at least one of a page display trigger event, a client startup event, a client switching from foreground running to background event, and a client switching from background running to foreground event is detected.
  • the client determines the value of the preset grayscale filtering parameter based on the preset grayscale filtering parameter, and generates grayscale identification information based on the value of the preset grayscale filtering parameter.
  • the local storage unit is a storage unit set in the client, and the storage unit has the functions of storing data and reading and writing data.
  • the offline resource file is downloaded from the first server according to the offline download address corresponding to the page recorded in the page configuration list.
  • the offline download address is used to represent the storage address of the offline resource file corresponding to the page in the first server.
  • the first server is a cloud server.
  • the cloud server is a server that can provide simple, efficient, safe and reliable computing services with elastically scalable processing capabilities.
  • the cloud server may be a JSS server.
  • the JSS server can provide users with management functions such as file storage, access, backup and sharing.
  • Offline resource files contain information for rendering pages, and exemplarily, offline resource files include HTML files and rendering resources.
  • the offline resource path referenced by the HTML file is the storage path of the rendering resource in the local storage unit.
  • the rendering resources include, but are not limited to, at least one of CSS files, JS files, videos, and pictures.
  • FIG. 5 is a schematic structural diagram of a grayscale publishing system provided in Embodiment 5 of the present application.
  • This embodiment of the present application provides services for the implementation of the grayscale publishing method in the above-mentioned embodiments of the present application, and the grayscale publishing device provided by the present application can be configured. .
  • the grayscale publishing system includes: a gateway server 510, a client 520, and a first server 530; wherein, the gateway server 510 is configured to obtain the grayscale identification information in the page configuration download request when receiving a page configuration download request, and store the grayscale identification information in the page configuration download request.
  • the grayscale identification information and the grayscale configuration information are matched, and if the grayscale identification information and the grayscale configuration information are successfully matched, the page configuration list that records the offline download address corresponding to the page is sent to the client 520;
  • the information includes the value of the preset grayscale filtering parameter determined by the client 520, and the grayscale configuration information includes the value range of the preset grayscale filtering parameter preset for the page of the client 520; the client 520 is set to The configuration download request is sent to the gateway server 510, and based on the page configuration list sent by the gateway server 510, the offline resource file is downloaded from the first server 530 to the local storage unit, and based on the offline resource file in the local storage unit. Rendering and displaying; the first server 530 is configured to store the offline resource file of at least one page.
  • the gateway server 510 may be a Java gateway interface server.
  • the pages of the client 520 include pages for grayscale publishing.
  • the local storage unit is a storage unit set in the client 520, and the storage unit has functions of storing data and reading and writing data.
  • the offline download address is used to represent the storage address of the offline resource file corresponding to the page in the first server 530 .
  • the first server 530 is a cloud server.
  • the cloud server is a server that can provide simple, efficient, safe and reliable computing services with elastically scalable processing capabilities.
  • the cloud server may be a JSS server.
  • the JSS server can provide users with management functions such as file storage, access, backup and sharing.
  • the system further includes a third server and a data storage server; wherein, the third server is set to write the acquired grayscale configuration information into the data storage server; the data storage server is set to In order to store the grayscale configuration information; correspondingly, the gateway server 510 is configured to obtain the grayscale configuration information from the data storage server.
  • an offline platform system is deployed on the third server, and the offline platform system is compiled based on Nodejs statements.
  • the data storage server is a server constructed based on a database, wherein the database can be a relational database or a non-relational database, wherein the relational database includes but is not limited to Oracle database, DB2 database, Microsoft structured query language server. (Microsoft Structured Query Language Server, Microsoft SQL Server) database, Microsoft Access database or MySQL database, non-relational database including but limited to NoSql database, Cloudant database, MongoDb database, redis database or HBase database.
  • the type of database in the data storage server is not limited here.
  • the data storage server is constructed based on the MySQL database and the redis database.
  • the third server writes the grayscale configuration information and the page configuration list into the MySQL database in the data storage server, and the redis database synchronously stores the grayscale configuration information and the page configuration list in the MySQL database, so that the gateway server 510 Read grayscale configuration information and page configuration list from the redis database.
  • the advantage of this setting is that when a database is used for data reading, writing and processing, the processing efficiency of the database will be greatly reduced when the amount of access is large. Synchronizing the data in the MySQL database to the redis database for synchronous storage can effectively ensure the data reading speed of the gateway server, thereby ensuring the page loading speed.
  • the third server is configured to: receive the initial grayscale configuration information input by the user, and write the initial grayscale configuration information into the data storage server; or, obtain the grayscale test data corresponding to the page , and based on the grayscale test data, the target grayscale configuration information corresponding to the grayscale test data in the existing grayscale configuration information is adjusted to obtain updated grayscale configuration information, and the updated grayscale configuration information is written into the data storage server.
  • the system further includes: a second server configured to store an HTML file corresponding to at least one page; the gateway server 510 is further configured to: obtain the sent times of the page configuration list; Compared with the maximum number of visits, if the number of times sent is greater than the maximum number of allowed visits, the URL address corresponding to the page is sent to the client, so that the client can obtain the HTML file on the second server based on the URL address, and based on the HTML file.
  • the page is rendered and displayed.
  • the second server is a website server.
  • the website server may be a physical server configured with an independent domain name address.
  • the website server may be an Apache server, an Nginx server or an IIS server.
  • the system further includes a login management platform server, configured to generate login success information according to the received user login information sent by the third server, and send the login success information to the third server; wherein , the user login information is sent when the third server detects that the login state corresponding to the user login information is an unlogin state.
  • the server of the login management platform can deploy a server security audit (Server Security Audit, SSA) system.
  • SSA is a new generation that integrates single sign-on, account management, identity authentication, resource authorization, access control and operation audit. Operation and maintenance of security audit system.
  • FIG. 6 is a schematic structural diagram of a specific example of a grayscale publishing system provided in Embodiment 5 of the present application.
  • the grayscale publishing system is divided into three layers, from top to bottom are the application layer, the service layer and the data layer.
  • SSA represents the login management platform server
  • Nodejs interface service represents the third server
  • JSS cloud service represents the first server 530
  • H5 Nginx represents the second server
  • online APP represents the client 520
  • Java gateway interface represents the gateway server 510
  • MySQL and redis cache represents the data storage server.
  • the background user inputs the initial grayscale configuration information through the Nodejs interface service provided by the third server, and the grayscale configuration information includes the value range of the preset grayscale filtering parameter.
  • the preset grayscale filtering parameter includes the client operation. System type, client OS version, client type, client version, user information, crowd portrait, user city, operator, and user device type.
  • the Nodejs interface service can publish offline packages (corresponding to offline resource files) to the JSS cloud service based on grayscale publishing or full publishing, and generate a page configuration list.
  • the Nodejs interface service writes the initial grayscale configuration information and page configuration list into the MySQL database, and the initial grayscale configuration information and page configuration list are synchronized in the redis cache.
  • the online APP sends the page configuration download request containing the grayscale identification information to the Java gateway interface, and the Java gateway interface matches the grayscale identification information with the initial grayscale configuration information read from the redis cache. If the initial grayscale configuration information matches successfully, the page configuration list corresponding to the page read from the redis cache is sent to the online APP.
  • the online APP downloads the offline package of the page in the JSS cloud service to the local storage unit based on the offline download address in the page configuration list, and renders and displays the page based on the offline package in the local storage unit.
  • the offline download address corresponding to the page will be recorded.
  • the page configuration list is sent to the client, realizing the purpose of grayscale publishing of offline resource files based on pages, solving the problem that online grayscale publishing needs to cooperate with operators, thereby improving the controllability of grayscale publishing and The grayscale publishing efficiency of the page.
  • FIG. 7 is a schematic diagram of a grayscale distribution device according to Embodiment 6 of the present application.
  • This embodiment may be applicable to the case of performing grayscale publishing on the page of the client, the apparatus may be implemented by means of software and/or hardware, and the apparatus may be configured on a gateway server.
  • the grayscale publishing apparatus includes: a grayscale identification information acquisition module 610 , a grayscale identification information matching module 620 and a page configuration list sending module 630 .
  • the grayscale identification information acquisition module 610 is configured to obtain grayscale identification information in the page configuration download request when receiving a page configuration download request sent by the client; wherein the grayscale identification information includes a preset grayscale determined by the client The value of the filtering parameter; the grayscale identification information matching module 620 is configured to match the grayscale identification information with the grayscale configuration information; wherein, the grayscale configuration information includes the preset grayscale filter parameters preset for the page of the client.
  • the value range; the page configuration list sending module 630 is configured to send the page configuration list that records the offline download address corresponding to the page to the client if the grayscale identification information and the grayscale configuration information are successfully matched, so that the client can be based on
  • the page configuration list downloads the offline resource file from the first server to the local storage unit, and renders and displays the page based on the offline resource file in the local storage unit.
  • the offline download address corresponding to the page will be recorded.
  • the page configuration list is sent to the client, realizing the purpose of grayscale publishing of offline resource files based on pages, solving the problem that online grayscale publishing needs to cooperate with operators, thereby improving the controllability of grayscale publishing and The grayscale publishing efficiency of the page.
  • the device further includes:
  • the sent times acquisition module is set to obtain the sent times of the page configuration list before sending the page configuration list that records the offline download address corresponding to the page to the client;
  • the maximum access times comparison module is set to send the sent times Compared with the maximum number of visits, if the number of sent times is less than or equal to the maximum number of allowed visits, the operation of sending the page configuration list with the offline download address corresponding to the page recorded to the client is triggered.
  • the maximum access times comparison module is also set to:
  • the URL address of the URL corresponding to the page is sent to the client, so that the client can obtain the HTML file on the second server based on the URL address, and based on the HTML file Render the page.
  • the device further includes:
  • the grayscale configuration information acquisition module is configured to obtain the grayscale configuration information from the data storage server before matching the grayscale identification information with the grayscale configuration information; wherein, the grayscale configuration information is pre-written into the data storage by the third server server's.
  • the grayscale configuration information is the initial grayscale configuration information input by the user received by the third server, or, based on the grayscale test data of the page, the third server The updated grayscale configuration information obtained by adjusting the target grayscale configuration information corresponding to the grayscale test data in the configuration information.
  • updating the grayscale configuration information includes the first updated grayscale configuration information obtained by the third server performing an information modification operation on the target grayscale configuration information according to the grayscale test data of the page, or , the third server performs the second update grayscale configuration information obtained by performing an information addition operation on the target grayscale configuration information according to the grayscale test data of the page.
  • the device when updating the grayscale configuration information to first update the grayscale configuration information, the device further includes:
  • the target grayscale configuration information matching module is configured to read the target grayscale configuration information corresponding to the first updated grayscale configuration information from the data storage server, and match the grayscale identification information with the target grayscale configuration information; If the degree identification information matches the target grayscale configuration information successfully, the URL address corresponding to the page is sent to the client, so that the client obtains the HTML file on the second server based on the URL address, and renders and displays the page based on the HTML file.
  • optional preset grayscale filtering parameters include: client operating system type, client operating system version, client type, client version, user information, crowd portrait, user city, operation at least one of the vendor and the user equipment type.
  • FIG. 8 is a schematic diagram of a grayscale distribution apparatus according to Embodiment 7 of the present application. This embodiment is applicable to the case where the page of the client is published in grayscale, the apparatus may be implemented in software and/or hardware, and the apparatus may be configured on the client.
  • the grayscale publishing apparatus includes: a page configuration download request sending module 710 and a page rendering display module 720 .
  • the page configuration download request sending module 710 is configured to send the page configuration download request containing the grayscale identification information to the gateway server, so that the gateway server matches the grayscale identification information with the grayscale configuration information, and if the grayscale identification information matches the grayscale identification information and the grayscale configuration information.
  • the page configuration list that records the offline download address corresponding to the page is sent to the client; wherein, the grayscale identification information includes the value of the preset grayscale filter parameter determined by the client, and the grayscale configuration The information includes the value range of the preset grayscale filtering parameters preset for the page of the client; the page rendering display module 720 is set to download the offline resource file from the first server to the local storage unit based on the page configuration list sent by the gateway server , and render and display the page based on the offline resource file in the local storage unit.
  • the device further includes:
  • the page configuration download request generation module is configured to generate a page configuration download request when a page configuration trigger event is detected, wherein the page configuration trigger event includes at least one of a page display trigger event, a client startup event, and a client front-background switching event. kind.
  • the grayscale publishing apparatus provided by the embodiment of the present application can be used to execute the grayscale publishing method provided by the embodiment of the present application, and has functions and effects corresponding to the execution method.
  • the multiple units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be realized; in addition, the names of the functional units It is only for the convenience of distinguishing from each other, and is not used to limit the protection scope of the present application.
  • FIG. 9 is a schematic structural diagram of an electronic device according to Embodiment 8 of the present application.
  • This embodiment of the present application provides services for the implementation of the grayscale publishing methods in Embodiments 1 to 3 of the present application, and can be configured in Embodiment 6 above.
  • the grayscale distribution device of the above-mentioned embodiment, or the embodiment of the present application provides services for the realization of the grayscale distribution method of the above-mentioned Embodiment 4 of the present application, and the grayscale distribution device in the above-mentioned Embodiment 7 can be configured.
  • FIG. 9 shows a block diagram of an exemplary electronic device 12 suitable for use in implementing embodiments of the present application.
  • the electronic device 12 shown in FIG. 9 is only an example, and should not impose any limitations on the functions and scope of use of the embodiments of the present application.
  • the electronic device 12 takes the form of a general-purpose computing device.
  • Components of electronic device 12 may include, but are not limited to, one or more processors or processing units 16 , system memory 28 , and a bus 18 connecting various system components including system memory 28 and processing unit 16 .
  • Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor, or a local bus using any of a variety of bus structures.
  • these architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, MicroChannel Architecture (MCA) bus, Enhanced ISA bus, Video Electronics Standards Association (Video Electronics Standards Association) , VESA) local bus and Peripheral Component Interconnect (PCI) bus.
  • Electronic device 12 includes a variety of computer system readable media. These media can be any available media that can be accessed by electronic device 12, including both volatile and non-volatile media, removable and non-removable media.
  • System memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and/or cache 32 .
  • Electronic device 12 may include other removable/non-removable, volatile/non-volatile computer system storage media.
  • storage system 34 may be configured to read and write to non-removable, non-volatile magnetic media (not shown in FIG. 9, commonly referred to as a "hard drive").
  • a magnetic disk drive configured to read and write to removable non-volatile magnetic disks (eg "floppy disks") and removable non-volatile optical disks (eg compact disk-read only memory) may be provided Disc Read-Only Memory, CD-ROM), portable compact disk read-only memory (Digital Video Disc-ROM, DVD-ROM) or other optical media) read and write optical drives.
  • each drive may be connected to bus 18 through one or more data media interfaces.
  • System memory 28 may include at least one program product having a set (eg, at least one) of program modules configured to perform the functions of embodiments of the present application.
  • a program/utility 40 having a set (at least one) of program modules 42, which may be stored, for example, in system memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and programs Data, each or a combination of these examples may include an implementation of a network environment.
  • Program modules 42 generally perform the functions and/or methods of the embodiments described herein.
  • the electronic device 12 may also communicate with one or more external devices 14 (eg, a keyboard, pointing device, display 24, etc.), with one or more devices that enable a user to interact with the electronic device 12, and/or with Any device (eg, network card, modem, etc.) that enables the electronic device 12 to communicate with one or more other computing devices. Such communication may take place through an input/output (I/O) interface 22 . Also, the electronic device 12 may communicate with one or more networks (eg, Local Area Network (LAN), Wide Area Network (WAN), and/or public networks, such as the Internet) through a network adapter 20. As shown in FIG. 9 , the network adapter 20 communicates with other modules of the electronic device 12 via the bus 18 .
  • I/O input/output
  • the electronic device 12 may communicate with one or more networks (eg, Local Area Network (LAN), Wide Area Network (WAN), and/or public networks, such as the Internet) through a network adapter 20. As shown in FIG. 9 , the network adapter 20 communicates with
  • the processing unit 16 executes a variety of functional applications and data processing by running the program stored in the system memory 28 , for example, implements the grayscale publishing method provided by the embodiments of the present application.
  • the above electronic device solves the problem of updating the grayscale configuration information, improves the page display effect of the client that meets the grayscale publishing conditions, and improves the transition efficiency of the page from grayscale publishing to full publishing.
  • the ninth embodiment of the present application also provides a storage medium containing computer-executable instructions, where the computer-executable instructions are used to execute a grayscale publishing method when executed by a computer processor, and the method includes:
  • the grayscale identification information includes the value of the preset grayscale filtering parameter determined by the client;
  • the information is matched with the grayscale configuration information; wherein, the grayscale configuration information includes the value range of the preset grayscale filtering parameters preset for the page of the client; if the grayscale identification information and the grayscale configuration information are successfully matched, the record will be recorded.
  • a page configuration list with an offline download address corresponding to the page is sent to the client, so that the client downloads the offline resource file from the first server to the local storage unit based on the page configuration list, and pairs the offline resource file based on the offline resource file in the local storage unit.
  • the page is rendered and displayed.
  • the computer-executable instructions are used to execute a grayscale publishing method when executed by a computer processor, and the method includes:
  • the gateway server sends the page configuration download request containing the grayscale identification information to the gateway server, so that the gateway server matches the grayscale identification information with the grayscale configuration information, and if the grayscale identification information and the grayscale configuration information match successfully, record the The page configuration list with the offline download address corresponding to the page is sent to the client; wherein, the grayscale identification information includes the value of the preset grayscale filtering parameter determined by the client, and the grayscale configuration information includes the preset preset for the page of the client.
  • Set the value range of the grayscale filtering parameter download the offline resource file from the first server to the local storage unit based on the page configuration list sent by the gateway server, and render and display the page based on the offline resource file in the local storage unit.
  • the computer storage medium of the embodiments of the present application may adopt 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.
  • the computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or a combination of any of the above.
  • Examples (non-exhaustive list) of computer-readable storage media include: electrical connections with one or more wires, portable computer disks, hard disks, RAM, ROM, Erasable Programmable Read-Only Memory (Erasable Programmable Read-Only Memory) Memory, EPROM or flash memory), optical fiber, CD-ROM, optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
  • a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
  • a computer-readable signal medium may include a propagated data signal in baseband or as part of a carrier wave, with computer-readable program code embodied thereon. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing.
  • a computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device .
  • Program code embodied on a computer-readable medium may be transmitted using any suitable medium, including but not limited to wireless, wire, optical fiber cable, radio frequency (RF), etc., or any suitable combination of the foregoing.
  • suitable medium including but not limited to wireless, wire, optical fiber cable, radio frequency (RF), etc., or any suitable combination of the foregoing.
  • Computer program code for carrying out the operations of the present application may be written in one or more programming languages, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural languages, or a combination thereof.
  • a programming language such as the "C" language or similar programming language.
  • 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 server.
  • the remote computer may be connected to the user's computer through any kind of network, including a LAN or WAN, or may be connected to an external computer (such as through an Internet connection using an Internet service provider).
  • a storage medium containing computer-executable instructions provided by an embodiment of the present application the computer-executable instructions of which are not limited to the above method operations, and can also perform related operations in the grayscale publishing method provided by any embodiment of the present application.

Abstract

Disclosed are a grayscale publishing method, system and apparatus, and a device and a storage medium The grayscale publishing method comprises: when a page configuration download request sent by a client is received, acquiring grayscale recognition information in the page configuration download request; matching the grayscale recognition information with grayscale configuration information; and if the grayscale recognition information and the grayscale configuration information are successfully matched, sending, to the client, a page configuration list in which an offline download address corresponding to a page of the client is recorded, such that the client downloads an offline resource file from a first server to a local storage unit on the basis of the page configuration list, and rendering and displaying the page of the client on the basis of the offline resource file in the local storage unit.

Description

灰度发布方法、系统、装置、设备及存储介质Grayscale publishing method, system, device, device and storage medium
本申请要求在2020年12月28日提交中国专利局、申请号为202011585155.8的中国专利申请的优先权,该申请的全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application with application number 202011585155.8 filed with the China Patent Office on December 28, 2020, the entire contents of which are incorporated herein by reference.
技术领域technical field
本申请涉及互联网技术领域,例如涉及一种灰度发布方法、系统、装置、设备及存储介质。The present application relates to the field of Internet technologies, for example, to a grayscale publishing method, system, apparatus, device, and storage medium.
背景技术Background technique
互联网产品用户规模大且版本更新频繁,在产品的新版本每次上线时,该产品都要承受极大的运行风险。灰度发布是指介于黑白之间进行平滑过渡的一种发布方式,可以很好地规避新版本上线的运行风险。灰度发布选择一部分用户使用产品特征A,另一部分用户使用产品特性B,如果产品特性A的运行无异常,则逐步扩大产品特征A的用户使用范围,直到所有用户均使用产品特征A,即便出现运行异常可以实现最大程度的降低其影响度。Internet products have a large number of users and frequent version updates. Every time a new version of a product is launched, the product has to bear great operational risks. Grayscale release refers to a release method with a smooth transition between black and white, which can well avoid the running risk of a new version going online. Grayscale publishing selects some users to use product feature A, and another part of users to use product feature B. If the operation of product feature A is normal, gradually expand the scope of users of product feature A until all users use product feature A, even if it appears Operational exceptions can minimize their impact.
灰度发布主要通过与运营商进行合作,将需要进行灰度发布的页面发布到指定服务器上,并且将该指定服务器接入指定的运营商网络,只有使用该运营商网络的终端才能访问到该指定服务器上的页面。Grayscale publishing mainly cooperates with operators to publish the pages that need grayscale publishing to a designated server, and connect the designated server to the designated operator's network. Only terminals using the operator's network can access the website. Specifies the page on the server.
发明内容SUMMARY OF THE INVENTION
本申请提供了一种灰度发布方法、系统、装置、设备及存储介质,以解决灰度发布需要与运营商合作的问题,提高灰度发布的可控性和发布效率。The present application provides a grayscale publishing method, system, device, device and storage medium, so as to solve the problem of cooperation with operators in grayscale publishing, and improve the controllability and publishing efficiency of grayscale publishing.
本申请提供了一种灰度发布方法,该方法包括:The present application provides a grayscale publishing method, which includes:
当接收到客户端发送的页面配置下载请求时,获取所述页面配置下载请求中的灰度识别信息;其中,所述灰度识别信息包括所述客户端确定的预设灰度过滤参数的取值;When a page configuration download request sent by the client is received, the grayscale identification information in the page configuration download request is obtained; wherein the grayscale identification information includes the value of the preset grayscale filter parameter determined by the client value;
将所述灰度识别信息与灰度配置信息进行匹配;其中,所述灰度配置信息包括针对所述客户端的页面预先设置的预设灰度过滤参数的取值范围;Matching the grayscale identification information with the grayscale configuration information; wherein the grayscale configuration information includes a value range of a preset grayscale filter parameter preset for the page of the client;
如果所述灰度识别信息与所述灰度配置信息匹配成功,则将记录有所述客户端的页面对应的离线下载地址的页面配置列表发送给所述客户端,以使所述客户端基于所述页面配置列表从第一服务器将离线资源文件下载到本地存储单元中,并基于所述本地存储单元中的离线资源文件对所述客户端的页面进行渲 染显示。If the grayscale identification information and the grayscale configuration information are successfully matched, send a page configuration list that records the offline download address corresponding to the page of the client to the client, so that the client can be based on the The page configuration list downloads the offline resource file from the first server to the local storage unit, and renders and displays the page of the client based on the offline resource file in the local storage unit.
本申请还提供了一种灰度发布方法,该方法包括:The present application also provides a grayscale publishing method, which includes:
将包含灰度识别信息的页面配置下载请求发送给网关服务器,以使所述网关服务器将所述灰度识别信息与灰度配置信息进行匹配,以及如果所述灰度识别信息与所述灰度配置信息匹配成功,则所述网关服务器将记录有客户端的页面对应的离线下载地址的页面配置列表发送给所述客户端;其中,所述灰度识别信息包括所述客户端确定的预设灰度过滤参数的取值,所述灰度配置信息包括针对所述客户端的页面预先设置的预设灰度过滤参数的取值范围;Send a page configuration download request containing grayscale identification information to a gateway server, so that the gateway server matches the grayscale identification information with the grayscale configuration information, and if the grayscale identification information matches the grayscale If the configuration information is successfully matched, the gateway server sends a page configuration list that records the offline download address corresponding to the page of the client to the client; wherein the grayscale identification information includes a preset grayscale determined by the client the value of the grayscale filter parameter, and the grayscale configuration information includes the value range of the preset grayscale filter parameter preset for the page of the client;
基于所述网关服务器发送的页面配置列表,从第一服务器将离线资源文件下载到本地存储单元中,并基于所述本地存储单元中的离线资源文件对所述客户端的页面进行渲染显示。Based on the page configuration list sent by the gateway server, the offline resource file is downloaded from the first server to the local storage unit, and the page of the client is rendered and displayed based on the offline resource file in the local storage unit.
本申请还提供了一种灰度发布系统,该系统包括:网关服务器、客户端和第一服务器;其中,The present application also provides a grayscale publishing system, the system includes: a gateway server, a client and a first server; wherein,
所述网关服务器,设置为当接收到页面配置下载请求时,获取所述页面配置下载请求中的灰度识别信息,将所述灰度识别信息与灰度配置信息进行匹配,如果所述灰度识别信息与所述灰度配置信息匹配成功,则将记录有所述客户端的页面对应的离线下载地址的页面配置列表发送给所述客户端;其中,所述灰度识别信息包括所述客户端确定的预设灰度过滤参数的取值,所述灰度配置信息包括针对所述客户端的页面预先设置的预设灰度过滤参数的取值范围;The gateway server is configured to obtain the grayscale identification information in the page configuration download request when receiving the page configuration download request, and match the grayscale identification information with the grayscale configuration information. If the identification information and the grayscale configuration information are successfully matched, the page configuration list that records the offline download address corresponding to the page of the client is sent to the client; wherein the grayscale identification information includes the client the determined value of the preset grayscale filtering parameter, and the grayscale configuration information includes the value range of the preset grayscale filtering parameter preset for the page of the client;
所述客户端,设置为将所述页面配置下载请求发送给所述网关服务器,并基于所述网关服务器发送的页面配置列表,从所述第一服务器将离线资源文件下载到本地存储单元中,并基于所述本地存储单元中的离线资源文件对所述客户端的页面进行渲染显示;The client is configured to send the page configuration download request to the gateway server, and download the offline resource file from the first server to the local storage unit based on the page configuration list sent by the gateway server, and rendering and displaying the page of the client based on the offline resource file in the local storage unit;
所述第一服务器,设置为存储至少一个页面的离线资源文件。The first server is configured to store offline resource files of at least one page.
本申请还提供了一种灰度发布装置,该装置包括:The present application also provides a grayscale distribution device, which includes:
灰度识别信息获取模块,设置为当接收到客户端发送的页面配置下载请求时,获取所述页面配置下载请求中的灰度识别信息;其中,所述灰度识别信息包括所述客户端确定的预设灰度过滤参数的取值;The grayscale identification information acquisition module is configured to acquire the grayscale identification information in the page configuration download request when receiving the page configuration download request sent by the client; wherein the grayscale identification information includes the information determined by the client The value of the preset grayscale filter parameter;
灰度识别信息匹配模块,设置为将所述灰度识别信息与灰度配置信息进行匹配;其中,所述灰度配置信息包括针对所述客户端的页面预先设置的预设灰度过滤参数的取值范围;The grayscale identification information matching module is configured to match the grayscale identification information with the grayscale configuration information; wherein the grayscale configuration information includes a selection of preset grayscale filtering parameters preset for the page of the client value range;
页面配置列表发送模块,设置为如果所述灰度识别信息与所述灰度配置信 息匹配成功,则将记录有所述客户端的页面对应的离线下载地址的页面配置列表发送给所述客户端,以使所述客户端基于所述页面配置列表从第一服务器将离线资源文件下载到本地存储单元中,并基于所述本地存储单元中的离线资源文件对所述客户端的页面进行渲染显示。a page configuration list sending module, configured to send a page configuration list that records the offline download address corresponding to the page of the client to the client if the grayscale identification information and the grayscale configuration information are successfully matched, so that the client downloads the offline resource file from the first server to the local storage unit based on the page configuration list, and renders and displays the page of the client based on the offline resource file in the local storage unit.
本申请还提供了一种灰度发布装置,该装置包括:The present application also provides a grayscale distribution device, which includes:
页面配置下载请求发送模块,设置为将包含灰度识别信息的页面配置下载请求发送给网关服务器,以使所述网关服务器将所述灰度识别信息与灰度配置信息进行匹配,以及如果所述灰度识别信息与所述灰度配置信息匹配成功,则所述网关服务器将记录有客户端的页面对应的离线下载地址的页面配置列表发送给所述客户端;其中,所述灰度识别信息包括所述客户端确定的预设灰度过滤参数的取值,所述灰度配置信息包括针对所述客户端的页面预先设置的预设灰度过滤参数的取值范围;The page configuration download request sending module is configured to send the page configuration download request including the grayscale identification information to the gateway server, so that the gateway server matches the grayscale identification information with the grayscale configuration information, and if the grayscale identification information is matched If the grayscale identification information and the grayscale configuration information are successfully matched, the gateway server sends a page configuration list that records the offline download address corresponding to the page of the client to the client; wherein the grayscale identification information includes the value of the preset grayscale filtering parameter determined by the client, and the grayscale configuration information includes the value range of the preset grayscale filtering parameter preset for the page of the client;
页面渲染显示模块,设置为基于所述网关服务器发送的页面配置列表,从第一服务器将离线资源文件下载到本地存储单元中,并基于所述本地存储单元中的离线资源文件对所述客户端的页面进行渲染显示。The page rendering and display module is configured to download the offline resource file from the first server to the local storage unit based on the page configuration list sent by the gateway server, and based on the offline resource file in the local storage unit, the offline resource file in the local storage unit is set to the client. The page is rendered and displayed.
本申请还提供了一种电子设备,该电子设备包括:The application also provides an electronic device, the electronic device includes:
一个或多个处理器;one or more processors;
存储器,设置为存储一个或多个程序;memory, arranged to store one or more programs;
当所述一个或多个程序被所述一个或多个处理器执行时,使得所述一个或多个处理器实现上述所涉及的任一所述的灰度发布方法。When the one or more programs are executed by the one or more processors, the one or more processors are caused to implement any one of the grayscale publishing methods mentioned above.
本申请还提供了一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时用于执行上述所涉及的任一所述的灰度发布方法。The present application also provides a storage medium containing computer-executable instructions, where the computer-executable instructions, when executed by a computer processor, are used to execute any of the above-mentioned grayscale publishing methods.
附图说明Description of drawings
图1是本申请实施例一提供的一种灰度发布方法的流程图;1 is a flowchart of a grayscale publishing method provided in Embodiment 1 of the present application;
图2是本申请实施例二提供的一种灰度发布方法的流程图;FIG. 2 is a flowchart of a grayscale publishing method provided in Embodiment 2 of the present application;
图3是本申请实施例三提供的一种灰度发布方法的流程图;3 is a flowchart of a grayscale publishing method provided in Embodiment 3 of the present application;
图4是本申请实施例四提供的一种灰度发布方法的流程图;4 is a flowchart of a grayscale publishing method provided in Embodiment 4 of the present application;
图5是本申请实施例五提供的一种灰度发布系统的结构示意图;5 is a schematic structural diagram of a grayscale publishing system provided in Embodiment 5 of the present application;
图6是本申请实施例五提供的一种灰度发布系统的具体实例的结构示意图;6 is a schematic structural diagram of a specific example of a grayscale publishing system provided in Embodiment 5 of the present application;
图7是本申请实施例六提供的一种灰度发布装置的示意图;FIG. 7 is a schematic diagram of a grayscale distribution device provided in Embodiment 6 of the present application;
图8是本申请实施例七提供的一种灰度发布装置的示意图;FIG. 8 is a schematic diagram of a grayscale distribution device provided in Embodiment 7 of the present application;
图9是本申请实施例八提供的一种电子设备的结构示意图。FIG. 9 is a schematic structural diagram of an electronic device according to Embodiment 8 of the present application.
具体实施方式Detailed ways
下面结合附图和实施例对本申请进行说明。此处所描述的具体实施例仅仅用于解释本申请。为了便于描述,附图中仅示出了与本申请相关的部分。The present application will be described below with reference to the accompanying drawings and embodiments. The specific embodiments described herein are merely used to explain the present application. For the convenience of description, only the parts related to the present application are shown in the drawings.
相关技术中,与运营商合作的方式涉及到签约合作,未知因素较多,当需要对灰度发布的配置信息进行更改时,需要经过运营商才能实现,从而导致灰度发布的可控性差和灰度发布的效率低。In the related art, the way of cooperating with operators involves contract cooperation, and there are many unknown factors. When it is necessary to change the configuration information released by Grayscale, it needs to be realized by the operator, resulting in poor controllability of grayscale release and poor performance. Grayscale publishing is inefficient.
实施例一Example 1
图1是本申请实施例一提供的一种灰度发布方法的流程图,本实施例可适用于对客户端的页面进行灰度发布的情况,该方法可以由灰度发布装置来执行,该装置可采用软件和/或硬件的方式实现,该装置可以配置于网关服务器中。包括如下步骤:FIG. 1 is a flow chart of a grayscale publishing method provided in Embodiment 1 of the present application. This embodiment is applicable to the case of conducting grayscale publishing on a page of a client. The method can be executed by a grayscale publishing device. It can be implemented in software and/or hardware, and the device can be configured in a gateway server. It includes the following steps:
S110、当接收到客户端发送的页面配置下载请求时,获取页面配置下载请求中的灰度识别信息。S110. When a page configuration download request sent by the client is received, obtain grayscale identification information in the page configuration download request.
在本实施例中,灰度识别信息包括客户端确定的预设灰度过滤参数的取值。其中,示例性的,客户端在检测到页面配置触发事件时,基于预设灰度过滤参数确定预设灰度过滤参数的取值,并基于预设灰度过滤参数的取值,生成灰度识别信息。In this embodiment, the grayscale identification information includes the value of the preset grayscale filtering parameter determined by the client. Exemplarily, when the client detects a page configuration trigger event, it determines the value of the preset grayscale filtering parameter based on the preset grayscale filtering parameter, and generates grayscale based on the value of the preset grayscale filtering parameter. identifying information.
在一个实施例中,可选的,预设灰度过滤参数包括:客户端操作系统类型、客户端操作系统版本、客户端类型、客户端版本、用户信息、人群画像、用户城市、运营商和用户设备类型中至少一种。其中,示例性的,客户端操作系统类型可以是苹果公司开发的移动操作系统(iPad/iPhone/iPod touch Operating System,IOS)、Android系统、Windows7系统或Windows10系统等;客户端操作系统版本可以是操作系统的版本号;客户端类型可用于表征客户端名称,如客户端A和客户端B,示例性的,客户端A和客户端B可同属于电子购物型客户端,或客户端A和客户端B分别属于电子购物型客户端和地图导航型客户端;客户端版本可以是客户端的版本号;用户信息包括用户名、用户性别、用户登录密码和用户年龄等至少一种;人群画像包括人群特征和人群信息,举例而言,人群画像包括低收入人群的年龄、性别、平均收入和职业等信息;运营 商可以是为用户设备提供网络服务的供应商,例如中国移动运营商、中国联通运营商或中国电信运营商;用户设备类型可用于描述安装客户端的设备类型,如移动终端、笔记本电脑或平板电脑,用户设备类型还可以包括设备品牌。In an embodiment, optionally, the preset grayscale filtering parameters include: client operating system type, client operating system version, client type, client version, user information, crowd portrait, user city, operator, and At least one of the user equipment types. Wherein, exemplarily, the client operating system type can be a mobile operating system (iPad/iPhone/iPod touch Operating System, IOS), Android system, Windows7 system or Windows10 system developed by Apple; the client operating system version can be The version number of the operating system; the client type can be used to characterize the client name, such as client A and client B, exemplarily, client A and client B can belong to the same e-shopping client, or client A and client B Client B belongs to an electronic shopping client and a map navigation client respectively; the client version can be the version number of the client; the user information includes at least one of user name, user gender, user login password and user age; the crowd portrait includes Crowd characteristics and crowd information, for example, crowd portraits include information such as age, gender, average income, and occupation of low-income people; operators can be providers of network services for user equipment, such as China Mobile Operators, China Unicom Operator or China Telecom Operator; User Equipment Type can be used to describe the device type on which the client is installed, such as a mobile terminal, laptop or tablet, and the User Equipment Type can also include the device brand.
举例而言,灰度识别信息中的预设灰度过滤参数的取值包括IOS、IOS14.3版本、客户端A(应用程序)、9.3.0版本、张三、年龄为28岁的低收入人群、北京、中国移动运营商和B品牌手机。For example, the values of the preset grayscale filtering parameters in the grayscale identification information include IOS, IOS14.3 version, client A (application), 9.3.0 version, Zhang San, and a low-income 28-year-old Crowd, Beijing, China Mobile Operators and B-brand mobile phones.
此处只是对预设灰度过滤参数进行示例性解释说明,并非对其进行限定,预设灰度过滤参数的设置和取值范围可根据需求进行设置。Here, the preset grayscale filtering parameters are only exemplarily explained, but not limited. The settings and value ranges of the preset grayscale filtering parameters can be set according to requirements.
S120、将灰度识别信息与灰度配置信息进行匹配。S120. Match the grayscale identification information with the grayscale configuration information.
在本实施例中,灰度配置信息包括针对客户端的页面预先设置的预设灰度过滤参数的取值范围。其中,客户端的页面包括用于进行灰度发布的页面。灰度配置信息中的预设灰度过滤参数与灰度识别信息中的预设灰度过滤参数对应,如果灰度识别信息与灰度配置信息匹配成功,说明灰度识别信息中预设灰度过滤参数的取值与灰度配置信息中的一组预设灰度过滤参数的取值相同,如果灰度识别信息与灰度配置信息匹配失败,说明灰度识别信息与灰度配置信息中的任一组预设灰度过滤参数的取值均不相同。其中,一组预设灰度过滤参数的取值包含至少一个预设灰度过滤参数的取值。举例而言,假设灰度配置信息中用户城市和运营商的取值范围分别为:北京&上海以及中国移动运营商&中国联通运营商,则灰度配置信息包括四组预设灰度过滤参数的取值,分别为北京和中国移动运营商、北京和中国联通运营商、上海和中国移动运营商,以及上海和中国联通运营商。如果灰度识别信息中的用户城市和运营商分别为北京和中国移动运营商,则灰度识别信息与灰度配置信息匹配成功,如果灰度识别信息中的用户城市和运营商为深圳和中国移动运营商,则灰度识别信息与灰度配置信息匹配失败。In this embodiment, the grayscale configuration information includes a value range of preset grayscale filtering parameters preset for the page of the client. Wherein, the page of the client includes a page used for grayscale publishing. The preset grayscale filtering parameters in the grayscale configuration information correspond to the preset grayscale filtering parameters in the grayscale identification information. If the grayscale identification information and the grayscale configuration information match successfully, it means that the preset grayscale in the grayscale identification information The value of the filter parameter is the same as the value of a set of preset grayscale filter parameters in the grayscale configuration information. If the grayscale identification information fails to match the grayscale configuration information, it means that the grayscale identification information and the grayscale configuration information have The values of any set of preset grayscale filtering parameters are different. The values of a group of preset grayscale filtering parameters include the value of at least one preset grayscale filtering parameter. For example, assuming that the value ranges of user cities and operators in the grayscale configuration information are: Beijing & Shanghai and China Mobile operator & China Unicom operator, the grayscale configuration information includes four sets of preset grayscale filtering parameters The values of , respectively, are Beijing and China Mobile operators, Beijing and China Unicom operators, Shanghai and China Mobile operators, and Shanghai and China Unicom operators. If the user city and operator in the grayscale identification information are Beijing and China Mobile, respectively, the grayscale identification information and the grayscale configuration information are successfully matched. If the user city and operator in the grayscale identification information are Shenzhen and China If it is a mobile operator, the grayscale identification information fails to match the grayscale configuration information.
在一个实施例中,可选的,在将灰度识别信息与灰度配置信息进行匹配之前,该方法还包括:从数据存储服务器中获取灰度配置信息;其中,灰度配置信息是第三服务器预先写入数据存储服务器的。In an embodiment, optionally, before matching the grayscale identification information with the grayscale configuration information, the method further includes: acquiring the grayscale configuration information from the data storage server; wherein the grayscale configuration information is the third The server is pre-written to the data store server.
在一个实施例中,可选的,灰度配置信息为第三服务器接收到的用户输入的初始灰度配置信息。其中,示例性的,第三服务器上部署离线化平台系统,该离线化平台系统是基于Nodejs语句编译的。用户可基于在第三服务器上构建的离线化平台系统输入初始灰度配置信息。In an embodiment, optionally, the grayscale configuration information is initial grayscale configuration information input by the user and received by the third server. Wherein, exemplarily, an offline platform system is deployed on the third server, and the offline platform system is compiled based on Nodejs statements. The user can input initial grayscale configuration information based on the offline platform system built on the third server.
S130、如果灰度识别信息与灰度配置信息匹配成功,则将记录有页面对应的离线下载地址的页面配置列表发送给客户端,以使客户端基于页面配置列表 从第一服务器将离线资源文件下载到本地存储单元中,并基于本地存储单元中的离线资源文件对页面进行渲染显示。S130. If the grayscale identification information and the grayscale configuration information are successfully matched, send a page configuration list in which the offline download address corresponding to the page is recorded to the client, so that the client downloads the offline resource file from the first server based on the page configuration list Download to the local storage unit, and render and display the page based on the offline resource file in the local storage unit.
在一个实施例中,可选的,第一服务器为云服务器。其中,云服务器是一种可提供简单高效、安全可靠、处理能力可弹性伸缩的计算服务的服务器。在一个实施例中,可选的,云服务器可以是京东存储服务器(Jingdong Storage Service,JSS)。JSS服务器可向用户提供文件存储、访问、备份和共享等管理功能。In an embodiment, optionally, the first server is a cloud server. The cloud server is a server that can provide simple, efficient, safe and reliable computing services with elastically scalable processing capabilities. In an embodiment, optionally, the cloud server may be a Jingdong Storage Service (JSS). The JSS server can provide users with management functions such as file storage, access, backup and sharing.
离线资源文件是根据页面配置列表中记录的页面对应的离线下载地址,从第一服务器上下载得到的。其中,离线下载地址用于表征页面对应的离线资源文件在第一服务器中的存储地址。The offline resource file is downloaded from the first server according to the offline download address corresponding to the page recorded in the page configuration list. The offline download address is used to represent the storage address of the offline resource file corresponding to the page in the first server.
离线资源文件包含用于渲染页面的信息,示例性的,离线资源文件包括超文本标记语言(HyperText Markup Language,HTML)文件和渲染资源。其中,HTML文件引用的离线资源路径为渲染资源在本地存储单元中的存储路径。示例性的,渲染资源包括但不限于层叠样式表(Cascading Style Sheets,CSS)文件、Java脚本(JavaScript,JS)文件、视频和图片中至少一种。The offline resource file contains information for rendering the page, and exemplarily, the offline resource file includes a HyperText Markup Language (HTML) file and rendering resources. The offline resource path referenced by the HTML file is the storage path of the rendering resource in the local storage unit. Exemplarily, the rendering resource includes, but is not limited to, at least one of a Cascading Style Sheets (Cascading Style Sheets, CSS) file, a Java script (JavaScript, JS) file, a video, and a picture.
本实施例的技术方案,通过将页面配置下载请求中的灰度识别信息与灰度配置信息进行匹配,如果灰度识别信息与灰度配置信息匹配成功,则将记录有页面对应的离线下载地址的页面配置列表发送给客户端,实现了基于页面的离线资源文件进行灰度发布的目的,解决了线上灰度发布需要与运营商合作的问题,从而提高了灰度发布的可控性以及页面的灰度发布效率。In the technical solution of this embodiment, by matching the grayscale identification information in the page configuration download request with the grayscale configuration information, if the grayscale identification information and the grayscale configuration information are successfully matched, the offline download address corresponding to the page will be recorded. The page configuration list is sent to the client, realizing the purpose of grayscale publishing of offline resource files based on pages, solving the problem that online grayscale publishing needs to cooperate with operators, thereby improving the controllability of grayscale publishing and The grayscale publishing efficiency of the page.
实施例二Embodiment 2
图2是本申请实施例二提供的一种灰度发布方法的流程图,本实施例的技术方案是在上述实施例的基础上进行说明。可选的,在将记录有所述页面对应的离线下载地址的页面配置列表发送给客户端之前,所述方法还包括:获取所述页面配置列表的已发送次数;将所述已发送次数与最大访问次数进行比较,如果所述已发送次数小于或等于最大允许访问次数,则触发执行将记录有所述页面对应的离线下载地址的页面配置列表发送给客户端的操作。FIG. 2 is a flowchart of a grayscale publishing method provided in Embodiment 2 of the present application. The technical solution of this embodiment is described on the basis of the above-mentioned embodiment. Optionally, before sending the page configuration list in which the offline download address corresponding to the page is recorded to the client, the method further includes: acquiring the sent times of the page configuration list; comparing the sent times with the sent times. The maximum number of visits is compared, and if the number of sent times is less than or equal to the maximum number of allowed visits, the operation of sending the page configuration list that records the offline download address corresponding to the page to the client is triggered.
所述方法还包括:如果所述已发送次数大于最大允许访问次数,则将所述页面对应的统一资源定位(Uniform Resource Locator,URL)地址发送给客户端,以使客户端基于所述URL地址获取第二服务器上的HTML文件,并基于所述HTML文件对页面进行渲染显示。The method also includes: if the sent times is greater than the maximum allowable number of visits, sending a Uniform Resource Locator (URL) address corresponding to the page to the client, so that the client is based on the URL address. The HTML file on the second server is acquired, and the page is rendered and displayed based on the HTML file.
本实施例的具体实施步骤包括:The specific implementation steps of this embodiment include:
S210、当接收到客户端发送的页面配置下载请求时,获取页面配置下载请 求中的灰度识别信息。S210. When receiving the page configuration download request sent by the client, obtain the grayscale identification information in the page configuration download request.
S220、将灰度识别信息与灰度配置信息进行匹配,如果灰度识别信息与灰度配置信息匹配成功,则获取页面配置列表的已发送次数。S220: Match the grayscale identification information with the grayscale configuration information, and if the grayscale identification information and the grayscale configuration information are successfully matched, obtain the sent times of the page configuration list.
示例性的,已发送次数可用于表征客户端从第一服务器下载页面对应的离线资源文件的下载次数。在一个实施例中,可选的,获取页面配置列表的已发送次数,包括:在将记录有页面对应的离线下载地址的页面配置列表发送给客户端的同时,执行次数加一操作得到已发送次数。Exemplarily, the number of times sent may be used to represent the number of times the client downloads the offline resource file corresponding to the page from the first server. In one embodiment, optionally, acquiring the sent times of the page configuration list includes: while sending the page configuration list in which the offline download address corresponding to the page is recorded to the client, performing an operation of adding one to the times to obtain the sent times .
“获取页面配置列表的已发送次数”的步骤还可以是在“将灰度识别信息与灰度配置信息进行匹配”之前执行,本实施例仅以“获取页面配置列表的已发送次数”的步骤在“将灰度识别信息与灰度配置信息进行匹配”之后执行为例进行解释说明。The step of "obtaining the sent times of the page configuration list" may also be performed before "matching the grayscale identification information with the grayscale configuration information", and this embodiment only uses the step of "obtaining the sent times of the page configuration list" An example is performed after “matching grayscale identification information with grayscale configuration information” for explanation.
S230、判断已发送次数是否大于最大访问次数,如果已发送次数大于最大访问次数,则执行S240,如果已发送次数小于或等于最大访问次数,则执行S250。S230: Determine whether the number of times sent is greater than the maximum number of visits, if the number of times sent is greater than the maximum number of visits, execute S240, and if the number of times sent is less than or equal to the maximum number of visits, execute S250.
最大访问次数可用于表征记录有页面对应的离线下载地址的页面配置列表的最大发送次数,还可表征客户端从第一服务器下载页面对应的离线资源文件的最大下载次数。The maximum number of visits can be used to represent the maximum number of times of sending the page configuration list that records the offline download address corresponding to the page, and can also represent the maximum number of downloads of the offline resource file corresponding to the page downloaded by the client from the first server.
在一个实施例中,可选的,从数据存储服务器中获取最大访问次数,其中,最大访问次数是第三服务器预先写入数据库存储器中的。In an embodiment, optionally, the maximum number of accesses is obtained from the data storage server, where the maximum number of accesses is pre-written into the database storage by the third server.
在另一个实施例中,可选的,灰度配置信息包括最大访问次数,相应的,将灰度识别信息与灰度配置信息进行匹配,包括:将已发送次数添加到灰度识别信息中,将灰度识别信息与灰度配置信息进行匹配。如果灰度识别信息与灰度配置信息匹配成功,说明已发送次数小于或等于最大访问次数,如果灰度识别信息与灰度配置信息匹配失败,说明已发送次数大于最大访问次数。In another embodiment, optionally, the grayscale configuration information includes the maximum number of accesses, and correspondingly, matching the grayscale identification information with the grayscale configuration information includes: adding the number of times sent to the grayscale identification information, Match the grayscale identification information with the grayscale configuration information. If the grayscale identification information matches the grayscale configuration information successfully, it means that the number of times sent is less than or equal to the maximum number of visits. If the grayscale identification information and the grayscale configuration information fail to match, it means that the number of times sent is greater than the maximum number of visits.
S240、将页面对应的URL地址发送给客户端,以使客户端基于URL地址获取第二服务器上的HTML文件,并基于HTML文件对页面进行渲染显示。S240: Send the URL address corresponding to the page to the client, so that the client obtains the HTML file on the second server based on the URL address, and renders and displays the page based on the HTML file.
URL地址是互联网上可访问的资源的位置地址的表示方式。示例性的,URL地址是由一串字符组成,这些字符可以是字母,数字和特殊符号。A URL address is a representation of the location address of an accessible resource on the Internet. Illustratively, a URL address is composed of a string of characters, which can be letters, numbers and special symbols.
示例性的,将页面对应的URL地址发送给客户端,包括:将记录有页面对应的URL地址的页面配置列表发送给客户端。Exemplarily, sending the URL address corresponding to the page to the client includes: sending a page configuration list in which the URL address corresponding to the page is recorded to the client.
在一个实施例中,可选的,第二服务器为网站服务器。其中,网站服务器可以是一种物理服务器,配置独立的域名地址。示例性的,网站服务器可以是Apache服务器、Nginx服务器或互联网信息服务(Internet Information Services, IIS)服务器。其中,网站服务器中的HTML文件引用的资源路径与离线资源文件中的HTML文件引用的资源路径不同。网站服务器中的HTML文件引用的资源路径是与网站服务器的域名地址相关的路径,而离线资源文件中的HTML文件引用的资源路径是与离线资源文件在本地存储单元中的存储路径相关的路径。相应的,从网站服务器下载的HTML文件与离线资源文件中的HTML文件为不同的HTML文件。In an embodiment, optionally, the second server is a website server. The website server may be a physical server configured with an independent domain name address. Exemplarily, the website server may be an Apache server, an Nginx server or an Internet Information Services (Internet Information Services, IIS) server. The resource path referenced by the HTML file in the website server is different from the resource path referenced by the HTML file in the offline resource file. The resource path referenced by the HTML file in the website server is a path related to the domain name address of the website server, and the resource path referenced by the HTML file in the offline resource file is a path related to the storage path of the offline resource file in the local storage unit. Correspondingly, the HTML file downloaded from the website server and the HTML file in the offline resource file are different HTML files.
S250、将记录有页面对应的离线下载地址的页面配置列表发送给客户端,以使客户端基于页面配置列表从第一服务器将离线资源文件下载到本地存储单元中,并基于本地存储单元中的离线资源文件对页面进行渲染显示。S250, sending a page configuration list that records the offline download address corresponding to the page to the client, so that the client downloads the offline resource file from the first server to the local storage unit based on the page configuration list, and based on the page configuration list The offline resource file renders and displays the page.
本实施例的技术方案,通过获取页面配置列表的已发送次数,并将已发送次数与最大访问次数进行比较,解决了对离线资源文件下载次数进行限定的问题,从而可以获取限定数量的基于离线资源文件渲染显示的页面对应的灰度测试数据,并对限定数量的灰度测试数据进行定量数据分析。本实施例在已发送次数大于最大允许访问次数时,将页面对应的URL地址发送给客户端,保证了与灰度配置信息匹配的灰度识别信息对应的客户端同样可以对页面进行渲染显示,从而实现页面的线上灰度发布的目的。The technical solution of this embodiment solves the problem of limiting the number of downloads of offline resource files by obtaining the sent times of the page configuration list and comparing the sent times with the maximum number of visits, so that a limited number of offline-based resource files can be obtained. The resource file renders the grayscale test data corresponding to the page displayed, and performs quantitative data analysis on a limited number of grayscale test data. In this embodiment, when the number of sent times is greater than the maximum allowable number of visits, the URL address corresponding to the page is sent to the client, which ensures that the client corresponding to the grayscale identification information matching the grayscale configuration information can also render and display the page. Thereby, the purpose of online grayscale publishing of the page is realized.
实施例三Embodiment 3
图3是本申请实施例三提供的一种灰度发布方法的流程图,本实施例的技术方案是在上述实施例的基础上进行说明。可选的,所述灰度配置信息为第三服务器基于所述页面的灰度测试数据,对已有灰度配置信息中与所述灰度测试数据对应的目标灰度配置信息进行调整后得到的更新灰度配置信息。FIG. 3 is a flowchart of a grayscale publishing method provided in Embodiment 3 of the present application. The technical solution of this embodiment is described on the basis of the above-mentioned embodiment. Optionally, the grayscale configuration information is obtained after the third server adjusts the target grayscale configuration information corresponding to the grayscale test data in the existing grayscale configuration information based on the grayscale test data of the page. update grayscale configuration information.
本实施例的具体实施步骤包括:The specific implementation steps of this embodiment include:
S310、当接收到客户端发送的页面配置下载请求时,获取页面配置下载请求中的灰度识别信息。S310. When receiving the page configuration download request sent by the client, obtain the grayscale identification information in the page configuration download request.
S320、从数据存储服务器中获取第三服务器基于页面的灰度测试数据,对已有灰度配置信息中与灰度测试数据对应的目标灰度配置信息进行调整后得到的更新灰度配置信息。S320: Obtain page-based grayscale test data of the third server from the data storage server, and obtain updated grayscale configuration information obtained by adjusting target grayscale configuration information corresponding to the grayscale test data in the existing grayscale configuration information.
灰度测试数据可用于描述页面在客户端进行渲染显示过程中的测试数据。示例性的,灰度测试数据包括但不限于页面显示错误的次数、页面超时显示的次数、页面的被访问次数和客户端发送的反馈信息,示例性的,反馈信息可以是页面的满意度。此处对灰度测试数据包含的数据内容不作限定。The grayscale test data can be used to describe the test data when the page is rendered and displayed on the client. Exemplarily, the grayscale test data includes, but is not limited to, the number of page display errors, the number of times the page is displayed overtime, the number of times the page is accessed, and feedback information sent by the client. Exemplarily, the feedback information may be page satisfaction. The data content included in the grayscale test data is not limited here.
已有灰度信息包括用户输入的初始灰度配置信息、第一次调整操作对应的第二灰度配置信息和第二次调整操作对应的第三灰度配置信息等等。与灰度测 试数据对应的目标灰度配置信息表示当前用于与灰度识别信息进行匹配的灰度配置信息。举例而言,假设与灰度测试数据对应的目标灰度信息为第三灰度配置信息,则更新灰度配置信息为与第三次调整操作对应的第四灰度配置信息。The existing grayscale information includes initial grayscale configuration information input by the user, second grayscale configuration information corresponding to the first adjustment operation, third grayscale configuration information corresponding to the second adjustment operation, and the like. The target grayscale configuration information corresponding to the grayscale test data represents the grayscale configuration information currently used for matching with the grayscale identification information. For example, assuming that the target grayscale information corresponding to the grayscale test data is the third grayscale configuration information, the updated grayscale configuration information is the fourth grayscale configuration information corresponding to the third adjustment operation.
在一个实施例中,可选的,更新灰度配置信息包括第三服务器根据页面的灰度测试数据,对目标灰度配置信息执行信息更改操作得到的第一更新灰度配置信息,或,第三服务器根据页面的灰度测试数据,对目标灰度配置信息执行信息添加操作得到的第二更新灰度配置信息。In an embodiment, optionally, updating the grayscale configuration information includes the first updated grayscale configuration information obtained by the third server performing an information modification operation on the target grayscale configuration information according to the grayscale test data of the page, or, the first update grayscale configuration information. The third server performs the second update grayscale configuration information obtained by performing an information addition operation on the target grayscale configuration information according to the grayscale test data of the page.
示例性的,信息更改操作可以是将目标灰度配置信息中的预设灰度过滤参数的取值范围A修改为取值范围B,取值范围A与取值范围B不相交。举例而言,目标灰度配置信息中的客户端操作系统类型为IOS,第一更新灰度配置信息中的客户端操作系统类型为Android系统。Exemplarily, the information modification operation may be to modify the value range A of the preset grayscale filtering parameter in the target grayscale configuration information to the value range B, and the value range A and the value range B do not intersect. For example, the client operating system type in the target grayscale configuration information is IOS, and the client operating system type in the first updated grayscale configuration information is Android system.
示例性的,信息添加操作可以是将目标灰度配置信息中的预设灰度过滤参数的取值范围A修改为取值范围B,取值范围A包含于取值范围B。举例而言,目标灰度配置信息中的客户端操作系统类型为IOS,第二更新灰度配置信息中的客户端操作系统类型为IOS系统和Android系统。Exemplarily, the information adding operation may be to modify the value range A of the preset grayscale filtering parameter in the target grayscale configuration information to the value range B, and the value range A is included in the value range B. For example, the client operating system type in the target grayscale configuration information is IOS, and the client operating system types in the second update grayscale configuration information are the IOS system and the Android system.
在一个实施例中,可选的,第三服务器对满足预设故障标准的灰度测试数据对应的目标灰度配置信息执行信息更改操作。其中,示例性的,预设故障标准可以是页面显示错误的次数大于预设次数阈值和/或页面访问率小于预设访问阈值。举例而言,与IOS对应的灰度测试数据满足预设故障标准,则将IOS系统修改为Android系统。这样设置的好处在于,通过对灰度配置信息执行信息更改操作,规避在客户端出现满足预设故障标准的灰度测试数据的问题,从而避免影响满足灰度发布条件的客户端的页面显示效果。In one embodiment, optionally, the third server performs an information modification operation on the target grayscale configuration information corresponding to the grayscale test data that satisfies the preset failure standard. Wherein, exemplarily, the preset failure criterion may be that the number of page display errors is greater than the preset number of times threshold and/or the page access rate is less than the preset access threshold. For example, if the grayscale test data corresponding to the IOS meets the preset failure criteria, the IOS system is modified to the Android system. The advantage of this setting is that, by performing an information modification operation on the grayscale configuration information, the problem of grayscale test data that meets the preset fault criteria is avoided on the client, thereby avoiding affecting the page display effect of the client that meets the grayscale publishing conditions.
在一个实施例中,可选的,第三服务器对满足预设校验标准的灰度测试数据对应的目标灰度配置信息执行信息添加操作。其中,示例性的,预设校验标准可以是与预设故障标准相反,如预设校验标准可以是页面显示错误的次数小于或等于预设次数阈值和/或页面访问率大于或等于预设访问阈值。举例而言,与IOS对应的灰度测试数据满足预设校验标准,则将客户端操作系统类型的取值范围修改为IOS和Android系统。这样设置的好处在于,通过对灰度配置信息执行信息添加操作,可以在灰度测试信息满足预设校验标准时,及时扩宽了满足灰度发布条件的客户端的适用范围,从而提高了从灰度发布到全量发布的过渡效率。In one embodiment, optionally, the third server performs an information addition operation on the target grayscale configuration information corresponding to the grayscale test data that meets the preset verification standard. Wherein, for example, the preset verification standard may be opposite to the preset failure standard. For example, the preset verification standard may be that the number of page display errors is less than or equal to the preset number of times threshold and/or the page access rate is greater than or equal to the predetermined number of times. Set the access threshold. For example, if the grayscale test data corresponding to IOS satisfies the preset verification standard, the value range of the client operating system type is modified to IOS and Android systems. The advantage of this setting is that by performing an information addition operation on the grayscale configuration information, when the grayscale test information meets the preset verification standard, the applicable scope of clients that meet the grayscale publishing conditions can be expanded in time, thereby improving the performance of the grayscale test information. Transition efficiency from full release to full release.
S330、将灰度识别信息与更新灰度配置信息进行匹配。S330. Match the grayscale identification information with the updated grayscale configuration information.
在上述实施例中的基础上,可选的,当更新灰度配置信息包括第一更新灰 度配置信息时,该方法还包括:从数据存储服务器中读取与第一更新灰度配置信息对应的目标灰度配置信息,并将灰度识别信息与目标灰度配置信息进行匹配;如果灰度识别信息与目标灰度配置信息匹配成功,则将页面对应的URL地址发送给客户端,以使客户端基于URL地址获取第二服务器上的HTML文件,并基于HTML文件对页面进行渲染显示。On the basis of the above embodiment, optionally, when the updated grayscale configuration information includes the first updated grayscale configuration information, the method further includes: reading from the data storage server corresponding to the first updated grayscale configuration information target grayscale configuration information, and match the grayscale identification information with the target grayscale configuration information; if the grayscale identification information matches the target grayscale configuration information successfully, send the URL address corresponding to the page to the client, so that the The client obtains the HTML file on the second server based on the URL address, and renders and displays the page based on the HTML file.
目标灰度配置信息为第一更新灰度配置信息对应的执行信息更改操作之前的灰度配置信息。The target grayscale configuration information is the grayscale configuration information corresponding to the first updated grayscale configuration information before the information modification operation is performed.
这样设置的好处在于,将目标灰度配置信息调整为第一更新灰度配置信息虽然及时规避了目标灰度配置信息导致客户端出现满足预设故障标准的灰度测试数据的问题,但满足目标灰度配置信息的客户端可能仍属于需要进行灰度测试的客户端。本实施例通过将目标灰度配置信息与灰度识别信息进行匹配,将URL地址发送给匹配成功的客户端,实现了对满足目标灰度配置信息的客户端的进行线上灰度测试的目的,进而保证了灰度发布过程中的灰度测试数据的完整性。The advantage of this setting is that although the target grayscale configuration information is adjusted to the first updated grayscale configuration information, although the target grayscale configuration information causes the client to generate grayscale test data that meets the preset failure criteria, the target grayscale configuration information can be adjusted. Clients with grayscale configuration information may still belong to clients that require grayscale testing. In this embodiment, by matching the target grayscale configuration information with the grayscale identification information, and sending the URL address to the successfully matched client, the purpose of performing an online grayscale test on the client that satisfies the target grayscale configuration information is realized. This ensures the integrity of the grayscale test data in the grayscale release process.
S340、如果灰度识别信息与更新灰度配置信息匹配成功,则将记录有页面对应的离线下载地址的页面配置列表发送给客户端,以使客户端基于页面配置列表从第一服务器将离线资源文件下载到本地存储单元中,并基于本地存储单元中的离线资源文件对页面进行渲染显示。S340. If the grayscale identification information and the updated grayscale configuration information are successfully matched, send the page configuration list that records the offline download address corresponding to the page to the client, so that the client can download the offline resource from the first server based on the page configuration list The file is downloaded to the local storage unit, and the page is rendered and displayed based on the offline resource file in the local storage unit.
本实施例的技术方案,通过将灰度识别信息与更新灰度配置信息进行匹配,更新灰度配置信息包括执行信息更改操作或执行信息添加操作的第一更新灰度配置信息和第二更新灰度配置信息,解决了灰度配置信息的更新问题,提高了满足灰度发布条件的客户端的页面显示效果,以及提高了页面从灰度发布到全量发布的过渡效率。In the technical solution of this embodiment, by matching the grayscale identification information with the updated grayscale configuration information, updating the grayscale configuration information includes the first updated grayscale configuration information and the second updated grayscale configuration information for performing an information modification operation or performing an information addition operation. It solves the problem of updating the grayscale configuration information, improves the page display effect of the client that meets the grayscale publishing conditions, and improves the transition efficiency of the page from grayscale publishing to full publishing.
实施例四Embodiment 4
图4是本申请实施例四提供的一种灰度发布方法的流程图,本实施例可适用于对客户端的页面进行灰度发布的情况,该方法可以由灰度发布装置来执行,该装置可采用软件和/或硬件的方式实现,该装置可以配置于网关服务器中。包括如下步骤:FIG. 4 is a flow chart of a grayscale publishing method provided in Embodiment 4 of the present application. This embodiment is applicable to the case of conducting grayscale publishing on a page of a client. The method can be executed by a grayscale publishing device. It can be implemented in software and/or hardware, and the device can be configured in a gateway server. It includes the following steps:
S410、将包含灰度识别信息的页面配置下载请求发送给网关服务器,以使网关服务器将灰度识别信息与灰度配置信息进行匹配,以及如果灰度识别信息与灰度配置信息匹配成功,则将记录有页面对应的离线下载地址的页面配置列表发送给客户端。S410. Send the page configuration download request including the grayscale identification information to the gateway server, so that the gateway server matches the grayscale identification information with the grayscale configuration information, and if the grayscale identification information and the grayscale configuration information are successfully matched, then Send the page configuration list that records the offline download address corresponding to the page to the client.
在本实施例中,灰度识别信息包括客户端确定的预设灰度过滤参数的取值, 灰度配置信息包括针对客户端的页面预先设置的预设灰度过滤参数的取值范围。In this embodiment, the grayscale identification information includes the value of the preset grayscale filtering parameter determined by the client, and the grayscale configuration information includes the value range of the preset grayscale filtering parameter preset for the page of the client.
在一个实施例中,可选的,预设灰度过滤参数包括:客户端操作系统类型、客户端操作系统版本、客户端类型、客户端版本、用户信息、人群画像、用户城市、运营商和用户设备类型中至少一种。其中,示例性的,客户端操作系统类型可以是IOS、Android系统、Windows7系统或Windows10系统等;客户端操作系统版本可以是操作系统的版本号;客户端类型可用于表征客户端名称,如客户端A和客户端B,示例性的,客户端A和客户端B可同属于电子购物型客户端,或客户端A和客户端B分别属于电子购物型客户端和地图导航型客户端;客户端版本可以是客户端的版本号;用户信息包括用户名、用户性别、用户登录密码和用户年龄等至少一种;人群画像包括人群特征和人群信息,举例而言,人群画像包括低收入人群的年龄、性别、平均收入和职业等信息;运营商可以是为用户设备提供网络服务的供应商,例如中国移动运营商、中国联通运营商或中国电信运营商;用户设备类型可用于描述安装客户端的设备类型,如移动终端、笔记本电脑或平板电脑,用户设备类型还可以包括设备品牌。In an embodiment, optionally, the preset grayscale filtering parameters include: client operating system type, client operating system version, client type, client version, user information, crowd portrait, user city, operator, and At least one of the user equipment types. Wherein, for example, the client operating system type can be IOS, Android system, Windows7 system or Windows10 system, etc.; the client operating system version can be the version number of the operating system; the client type can be used to represent the client name, such as the client Client A and Client B. Exemplarily, Client A and Client B may both belong to the electronic shopping client, or Client A and Client B belong to the electronic shopping client and the map navigation client respectively; The client version can be the version number of the client; the user information includes at least one of the user name, user gender, user login password, and user age; the crowd portrait includes crowd characteristics and crowd information, for example, the crowd portrait includes the age of low-income people , gender, average income and occupation; the operator can be a provider of network services for user equipment, such as China Mobile operator, China Unicom operator or China Telecom operator; user equipment type can be used to describe the equipment on which the client is installed Type, such as mobile terminal, laptop or tablet, user device type can also include device brand.
举例而言,灰度识别信息中的预设灰度过滤参数的取值包括IOS、IOS14.3版本、客户端A(应用程序)、9.3.0版本、张三、年龄为28岁的低收入人群、北京、中国移动运营商和B品牌手机。For example, the values of the preset grayscale filtering parameters in the grayscale identification information include IOS, IOS14.3 version, client A (application), 9.3.0 version, Zhang San, and a low-income 28-year-old Crowd, Beijing, China Mobile Operators and B-brand mobile phones.
此处只是对预设灰度过滤参数进行示例性解释说明,并非对其进行限定,预设灰度过滤参数的设置和取值范围可根据需求进行设置。Here, the preset grayscale filtering parameters are only exemplarily explained, but not limited. The settings and value ranges of the preset grayscale filtering parameters can be set according to requirements.
客户端的页面包括用于进行灰度发布的页面。灰度配置信息中的预设灰度过滤参数与灰度识别信息中的预设灰度过滤参数对应,如果灰度识别信息与灰度配置信息匹配成功,说明灰度识别信息中预设灰度过滤参数的取值与灰度配置信息中的一组预设灰度过滤参数的取值相同,如果灰度识别信息与灰度配置信息匹配失败,说明灰度识别信息与灰度配置信息中的任一组预设灰度过滤参数的取值均不相同。其中,一组预设灰度过滤参数的取值包含至少一个预设灰度过滤参数的取值。举例而言,假设灰度配置信息中用户城市和运营商的取值范围分别为:北京&上海以及中国移动运营商&中国联通运营商,则灰度配置信息包括四组预设灰度过滤参数的取值,分别为北京和中国移动运营商、北京和中国联通运营商、上海和中国移动运营商,以及上海和中国联通运营商。如果灰度识别信息中的用户城市和运营商分别为北京和中国移动运营商,则灰度识别信息与灰度配置信息匹配成功,如果灰度识别信息中的用户城市和运营商为深圳和中国移动运营商,则灰度识别信息与灰度配置信息匹配失败。The client's pages include pages for grayscale publishing. The preset grayscale filtering parameters in the grayscale configuration information correspond to the preset grayscale filtering parameters in the grayscale identification information. If the grayscale identification information and the grayscale configuration information match successfully, it means that the preset grayscale in the grayscale identification information The value of the filter parameter is the same as the value of a set of preset grayscale filter parameters in the grayscale configuration information. If the grayscale identification information fails to match the grayscale configuration information, it means that the grayscale identification information and the grayscale configuration information have The values of any set of preset grayscale filtering parameters are different. The values of a group of preset grayscale filtering parameters include the value of at least one preset grayscale filtering parameter. For example, assuming that the value ranges of user cities and operators in the grayscale configuration information are: Beijing & Shanghai and China Mobile operator & China Unicom operator, the grayscale configuration information includes four sets of preset grayscale filtering parameters The values of , respectively, are Beijing and China Mobile operators, Beijing and China Unicom operators, Shanghai and China Mobile operators, and Shanghai and China Unicom operators. If the user city and operator in the grayscale identification information are Beijing and China Mobile, respectively, the grayscale identification information and the grayscale configuration information are successfully matched. If the user city and operator in the grayscale identification information are Shenzhen and China If it is a mobile operator, the grayscale identification information fails to match the grayscale configuration information.
示例性的,网关服务器可以是Java网关接口服务器。Exemplarily, the gateway server may be a Java gateway interface server.
在一个实施例中,可选的,当检测到页面配置触发事件时,生成页面配置 下载请求,其中,页面配置触发事件包括页面显示触发事件、客户端启动事件和客户端前后台切换事件中至少一种。In an embodiment, optionally, when a page configuration trigger event is detected, a page configuration download request is generated, wherein the page configuration trigger event includes at least one of a page display trigger event, a client startup event, and a client front-background switching event A sort of.
当检测到页面显示触发事件、客户端启动事件、客户端从前台运行切换到后台事件和客户端从后台运行切换到前台事件中至少一种时,生成页面配置下载请求。A page configuration download request is generated when at least one of a page display trigger event, a client startup event, a client switching from foreground running to background event, and a client switching from background running to foreground event is detected.
示例性的,客户端基于预设灰度过滤参数确定预设灰度过滤参数的取值,并基于预设灰度过滤参数的取值,生成灰度识别信息。Exemplarily, the client determines the value of the preset grayscale filtering parameter based on the preset grayscale filtering parameter, and generates grayscale identification information based on the value of the preset grayscale filtering parameter.
S420、基于网关服务器发送的页面配置列表,从第一服务器将离线资源文件下载到本地存储单元中,并基于本地存储单元中的离线资源文件对页面进行渲染显示。S420. Download the offline resource file from the first server to the local storage unit based on the page configuration list sent by the gateway server, and render and display the page based on the offline resource file in the local storage unit.
本地存储单元是设置在客户端中的存储单元,存储单元具备存储数据和读写数据的功能。The local storage unit is a storage unit set in the client, and the storage unit has the functions of storing data and reading and writing data.
离线资源文件是根据页面配置列表中记录的页面对应的离线下载地址,从第一服务器上下载得到的。其中,离线下载地址用于表征页面对应的离线资源文件在第一服务器中的存储地址。The offline resource file is downloaded from the first server according to the offline download address corresponding to the page recorded in the page configuration list. The offline download address is used to represent the storage address of the offline resource file corresponding to the page in the first server.
在一个实施例中,可选的,第一服务器为云服务器。其中,云服务器是一种可提供简单高效、安全可靠、处理能力可弹性伸缩的计算服务的服务器。在一个实施例中,可选的,云服务器可以是JSS服务器。JSS服务器可向用户提供文件存储、访问、备份和共享等管理功能。In an embodiment, optionally, the first server is a cloud server. The cloud server is a server that can provide simple, efficient, safe and reliable computing services with elastically scalable processing capabilities. In one embodiment, optionally, the cloud server may be a JSS server. The JSS server can provide users with management functions such as file storage, access, backup and sharing.
离线资源文件包含用于渲染页面的信息,示例性的,离线资源文件包括HTML文件和渲染资源。其中,HTML文件引用的离线资源路径为渲染资源在本地存储单元中的存储路径。示例性的,渲染资源包括但不限于CSS文件、JS文件、视频和图片中至少一种。Offline resource files contain information for rendering pages, and exemplarily, offline resource files include HTML files and rendering resources. The offline resource path referenced by the HTML file is the storage path of the rendering resource in the local storage unit. Exemplarily, the rendering resources include, but are not limited to, at least one of CSS files, JS files, videos, and pictures.
本实施例的技术方案,通过将包含灰度识别信息的页面配置下载请求发送给网关服务器,并接收网关服务器在灰度识别信息与灰度配置信息匹配成功时发送的页面配置列表,基于页面配置列表从第一服务器将离线资源文件下载到本地存储单元中,并基于本地存储单元中的离线资源文件进行页面的渲染显示,实现了基于页面的离线资源文件进行灰度发布的目的,解决了线上灰度发布需要与运营商合作的问题,从而提高了灰度发布的可控性以及页面的灰度发布效率。In the technical solution of this embodiment, by sending a page configuration download request including grayscale identification information to the gateway server, and receiving a page configuration list sent by the gateway server when the grayscale identification information and the grayscale configuration information are successfully matched, based on the page configuration The list downloads the offline resource files from the first server to the local storage unit, and performs page rendering and display based on the offline resource files in the local storage unit. On the issue that the grayscale publishing needs to cooperate with the operator, thereby improving the controllability of the grayscale publishing and the grayscale publishing efficiency of the page.
实施例五Embodiment 5
图5是本申请实施例五提供的一种灰度发布系统的结构示意图,本申请实施例为本申请上述实施例的灰度发布方法的实现提供服务,可配置本申请提供 的灰度发布装置。FIG. 5 is a schematic structural diagram of a grayscale publishing system provided in Embodiment 5 of the present application. This embodiment of the present application provides services for the implementation of the grayscale publishing method in the above-mentioned embodiments of the present application, and the grayscale publishing device provided by the present application can be configured. .
该灰度发布系统包括:网关服务器510、客户端520和第一服务器530;其中,网关服务器510,设置为当接收到页面配置下载请求时,获取页面配置下载请求中的灰度识别信息,将灰度识别信息与灰度配置信息进行匹配,如果灰度识别信息与灰度配置信息匹配成功,则将记录有页面对应的离线下载地址的页面配置列表发送给客户端520;其中,灰度识别信息包括客户端520确定的预设灰度过滤参数的取值,灰度配置信息包括针对客户端520的页面预先设置的预设灰度过滤参数的取值范围;客户端520,设置为将页面配置下载请求发送给网关服务器510,并基于网关服务器510发送的页面配置列表,从第一服务器530将离线资源文件下载到本地存储单元中,并基于本地存储单元中的离线资源文件对待显示页面进行渲染显示;第一服务器530,设置为存储至少一个页面的离线资源文件。The grayscale publishing system includes: a gateway server 510, a client 520, and a first server 530; wherein, the gateway server 510 is configured to obtain the grayscale identification information in the page configuration download request when receiving a page configuration download request, and store the grayscale identification information in the page configuration download request. The grayscale identification information and the grayscale configuration information are matched, and if the grayscale identification information and the grayscale configuration information are successfully matched, the page configuration list that records the offline download address corresponding to the page is sent to the client 520; The information includes the value of the preset grayscale filtering parameter determined by the client 520, and the grayscale configuration information includes the value range of the preset grayscale filtering parameter preset for the page of the client 520; the client 520 is set to The configuration download request is sent to the gateway server 510, and based on the page configuration list sent by the gateway server 510, the offline resource file is downloaded from the first server 530 to the local storage unit, and based on the offline resource file in the local storage unit. Rendering and displaying; the first server 530 is configured to store the offline resource file of at least one page.
示例性的,网关服务器510可以是Java网关接口服务器。Exemplarily, the gateway server 510 may be a Java gateway interface server.
客户端520的页面包括用于进行灰度发布的页面。其中,本地存储单元是设置在客户端520中的存储单元,存储单元具备存储数据和读写数据的功能。The pages of the client 520 include pages for grayscale publishing. The local storage unit is a storage unit set in the client 520, and the storage unit has functions of storing data and reading and writing data.
离线下载地址用于表征页面对应的离线资源文件在第一服务器530中的存储地址。在一个实施例中,可选的,第一服务器530为云服务器。其中,云服务器是一种可提供简单高效、安全可靠、处理能力可弹性伸缩的计算服务的服务器。在一个实施例中,可选的,云服务器可以是JSS服务器。JSS服务器可向用户提供文件存储、访问、备份和共享等管理功能。The offline download address is used to represent the storage address of the offline resource file corresponding to the page in the first server 530 . In an embodiment, optionally, the first server 530 is a cloud server. The cloud server is a server that can provide simple, efficient, safe and reliable computing services with elastically scalable processing capabilities. In one embodiment, optionally, the cloud server may be a JSS server. The JSS server can provide users with management functions such as file storage, access, backup and sharing.
在上述实施例的基础上,可选的,系统还包括第三服务器和数据存储服务器;其中,第三服务器,设置为将获取的灰度配置信息写入数据存储服务器中;数据存储服务器,设置为存储灰度配置信息;相应的,网关服务器510设置为:从数据存储服务器获取灰度配置信息。On the basis of the above embodiment, optionally, the system further includes a third server and a data storage server; wherein, the third server is set to write the acquired grayscale configuration information into the data storage server; the data storage server is set to In order to store the grayscale configuration information; correspondingly, the gateway server 510 is configured to obtain the grayscale configuration information from the data storage server.
示例性的,第三服务器上部署离线化平台系统,该离线化平台系统是基于Nodejs语句编译的。Exemplarily, an offline platform system is deployed on the third server, and the offline platform system is compiled based on Nodejs statements.
示例性的,数据存储服务器是基于数据库构建的服务器,其中,数据库可以是关系型数据库也可以是非关系型数据库,其中,关系型数据库包括但不限于Oracle数据库、DB2数据库、微软结构化查询语言服务器(Microsoft Structured Query Language Server,Microsoft SQL Server)数据库、Microsoft Access数据库或MySQL数据库,非关系数据库包括但限于NoSql数据库、Cloudant数据库、MongoDb数据库、redis数据库或HBase数据库。此处对数据存储服务器中数据库的类型不作限定。Exemplarily, the data storage server is a server constructed based on a database, wherein the database can be a relational database or a non-relational database, wherein the relational database includes but is not limited to Oracle database, DB2 database, Microsoft structured query language server. (Microsoft Structured Query Language Server, Microsoft SQL Server) database, Microsoft Access database or MySQL database, non-relational database including but limited to NoSql database, Cloudant database, MongoDb database, redis database or HBase database. The type of database in the data storage server is not limited here.
在一个实施例中,可选的,数据存储服务器是基于MySQL数据库和redis数据库构建的。其中,第三服务器将灰度配置信息和页面配置列表写入在数据存储服务器中的MySQL数据库中,redis数据库对MySQL数据库中的灰度配置信息和页面配置列表进行同步存储,以使网关服务器510从redis数据库读取灰度配置信息和页面配置列表。这样设置的好处在于,当使用一个数据库进行数据读写和处理时,当访问量较大时会大大降低该数据库的处理效率。将MySQL数据库中的数据同步到redis数据库中进行同步保存,可以有效保证网关服务器的数据读取速度,进而保证页面的加载速度。In one embodiment, optionally, the data storage server is constructed based on the MySQL database and the redis database. The third server writes the grayscale configuration information and the page configuration list into the MySQL database in the data storage server, and the redis database synchronously stores the grayscale configuration information and the page configuration list in the MySQL database, so that the gateway server 510 Read grayscale configuration information and page configuration list from the redis database. The advantage of this setting is that when a database is used for data reading, writing and processing, the processing efficiency of the database will be greatly reduced when the amount of access is large. Synchronizing the data in the MySQL database to the redis database for synchronous storage can effectively ensure the data reading speed of the gateway server, thereby ensuring the page loading speed.
在上述实施例的基础上,可选的,第三服务器设置为:接收用户输入的初始灰度配置信息,将初始灰度配置信息写入数据存储服务器;或者,获取页面对应的灰度测试数据,并基于灰度测试数据对已有灰度配置信息中与灰度测试数据对应的目标灰度配置信息进行调整得到更新灰度配置信息,将更新灰度配置信息写入数据存储服务器。On the basis of the above embodiment, optionally, the third server is configured to: receive the initial grayscale configuration information input by the user, and write the initial grayscale configuration information into the data storage server; or, obtain the grayscale test data corresponding to the page , and based on the grayscale test data, the target grayscale configuration information corresponding to the grayscale test data in the existing grayscale configuration information is adjusted to obtain updated grayscale configuration information, and the updated grayscale configuration information is written into the data storage server.
在一个实施例中,可选的,该系统还包括:第二服务器,设置为存储至少一个页面对应的HTML文件;网关服务器510还设置为:获取页面配置列表的已发送次数;将已发送次数与最大访问次数进行比较,如果已发送次数大于最大允许访问次数,则将页面对应的URL地址发送给客户端,以使客户端基于URL地址获取第二服务器上的HTML文件,并基于HTML文件对页面进行渲染显示。In one embodiment, optionally, the system further includes: a second server configured to store an HTML file corresponding to at least one page; the gateway server 510 is further configured to: obtain the sent times of the page configuration list; Compared with the maximum number of visits, if the number of times sent is greater than the maximum number of allowed visits, the URL address corresponding to the page is sent to the client, so that the client can obtain the HTML file on the second server based on the URL address, and based on the HTML file. The page is rendered and displayed.
在一个实施例中,可选的,第二服务器为网站服务器。其中,网站服务器可以是一种物理服务器,配置独立的域名地址。示例性的,网站服务器可以是Apache服务器、Nginx服务器或IIS服务器。In an embodiment, optionally, the second server is a website server. The website server may be a physical server configured with an independent domain name address. Exemplarily, the website server may be an Apache server, an Nginx server or an IIS server.
在一个实施例中,可选的,该系统还包括登录管理平台服务器,设置为根据接收到的第三服务器发送的用户登录信息,生成登录成功信息,将登录成功信息发送给第三服务器;其中,用户登录信息是第三服务器检测到与用户登录信息对应的登录状态为未登录状态时发送的。其中,示例性的,登录管理平台服务器可部署服务器安全审计(Server Security Audit,SSA)系统,SSA是集单点登录、账号管理、身份认证、资源授权、访问控制和操作审计于一体的新一代运维安全审计系统。In one embodiment, optionally, the system further includes a login management platform server, configured to generate login success information according to the received user login information sent by the third server, and send the login success information to the third server; wherein , the user login information is sent when the third server detects that the login state corresponding to the user login information is an unlogin state. Among them, for example, the server of the login management platform can deploy a server security audit (Server Security Audit, SSA) system. SSA is a new generation that integrates single sign-on, account management, identity authentication, resource authorization, access control and operation audit. Operation and maintenance of security audit system.
图6是本申请实施例五提供的一种灰度发布系统的具体实例的结构示意图。其中,灰度发布系统分为三层,从上到下分别为应用层、服务层和数据层。其中,SSA表示登录管理平台服务器,Nodejs接口服务表示第三服务器,JSS云服务表示第一服务器530,H5 Nginx表示第二服务器,线上APP表示客户端520,Java网关接口表示网关服务器510,MySQL和redis缓存表示数据存储服务器。FIG. 6 is a schematic structural diagram of a specific example of a grayscale publishing system provided in Embodiment 5 of the present application. Among them, the grayscale publishing system is divided into three layers, from top to bottom are the application layer, the service layer and the data layer. Among them, SSA represents the login management platform server, Nodejs interface service represents the third server, JSS cloud service represents the first server 530, H5 Nginx represents the second server, online APP represents the client 520, Java gateway interface represents the gateway server 510, MySQL and redis cache represents the data storage server.
后台用户通过第三服务器提供的Nodejs接口服务输入初始灰度配置信息,灰度配置信息包括预设灰度过滤参数的取值范围,在本实施例中,预设灰度过滤参数包括客户端操作系统类型、客户端操作系统版本、客户端类型、客户端版本、用户信息、人群画像、用户城市、运营商和用户设备类型。Nodejs接口服务可基于灰度发布或全量发布将离线包(对应离线资源文件)发布到JSS云服务,并生成页面配置列表。Nodejs接口服务将初始灰度配置信息和页面配置列表写入MySQL数据库中,该初始灰度配置信息和页面配置列表在redis缓存中进行同步。线上APP将包含灰度识别信息的页面配置下载请求发送给Java网关接口,Java网关接口将灰度识别信息与从redis缓存中读取的初始灰度配置信息进行匹配,如果灰度识别信息与初始灰度配置信息匹配成功,则将从redis缓存中读取的页面对应的页面配置列表发送给线上APP。线上APP基于页面配置列表中的离线下载地址,将JSS云服务中页面的离线包下载到本地存储单元中,基于本地存储单元中的离线包进行页面的渲染显示。The background user inputs the initial grayscale configuration information through the Nodejs interface service provided by the third server, and the grayscale configuration information includes the value range of the preset grayscale filtering parameter. In this embodiment, the preset grayscale filtering parameter includes the client operation. System type, client OS version, client type, client version, user information, crowd portrait, user city, operator, and user device type. The Nodejs interface service can publish offline packages (corresponding to offline resource files) to the JSS cloud service based on grayscale publishing or full publishing, and generate a page configuration list. The Nodejs interface service writes the initial grayscale configuration information and page configuration list into the MySQL database, and the initial grayscale configuration information and page configuration list are synchronized in the redis cache. The online APP sends the page configuration download request containing the grayscale identification information to the Java gateway interface, and the Java gateway interface matches the grayscale identification information with the initial grayscale configuration information read from the redis cache. If the initial grayscale configuration information matches successfully, the page configuration list corresponding to the page read from the redis cache is sent to the online APP. The online APP downloads the offline package of the page in the JSS cloud service to the local storage unit based on the offline download address in the page configuration list, and renders and displays the page based on the offline package in the local storage unit.
本实施例的技术方案,通过将页面配置下载请求中的灰度识别信息与灰度配置信息进行匹配,如果灰度识别信息与灰度配置信息匹配成功,则将记录有页面对应的离线下载地址的页面配置列表发送给客户端,实现了基于页面的离线资源文件进行灰度发布的目的,解决了线上灰度发布需要与运营商合作的问题,从而提高了灰度发布的可控性以及页面的灰度发布效率。In the technical solution of this embodiment, by matching the grayscale identification information in the page configuration download request with the grayscale configuration information, if the grayscale identification information and the grayscale configuration information are successfully matched, the offline download address corresponding to the page will be recorded. The page configuration list is sent to the client, realizing the purpose of grayscale publishing of offline resource files based on pages, solving the problem that online grayscale publishing needs to cooperate with operators, thereby improving the controllability of grayscale publishing and The grayscale publishing efficiency of the page.
实施例六Embodiment 6
图7是本申请实施例六提供的一种灰度发布装置的示意图。本实施例可适用于对客户端的页面进行灰度发布的情况,该装置可采用软件和/或硬件的方式实现,该装置可以配置于网关服务器。该灰度发布装置包括:灰度识别信息获取模块610、灰度识别信息匹配模块620和页面配置列表发送模块630。FIG. 7 is a schematic diagram of a grayscale distribution device according to Embodiment 6 of the present application. This embodiment may be applicable to the case of performing grayscale publishing on the page of the client, the apparatus may be implemented by means of software and/or hardware, and the apparatus may be configured on a gateway server. The grayscale publishing apparatus includes: a grayscale identification information acquisition module 610 , a grayscale identification information matching module 620 and a page configuration list sending module 630 .
灰度识别信息获取模块610,设置为当接收到客户端发送的页面配置下载请求时,获取页面配置下载请求中的灰度识别信息;其中,灰度识别信息包括客户端确定的预设灰度过滤参数的取值;灰度识别信息匹配模块620,设置为将灰度识别信息与灰度配置信息进行匹配;其中,灰度配置信息包括针对客户端的页面预先设置的预设灰度过滤参数的取值范围;页面配置列表发送模块630,设置为如果灰度识别信息与灰度配置信息匹配成功,则将记录有页面对应的离线下载地址的页面配置列表发送给客户端,以使客户端基于页面配置列表从第一服务器将离线资源文件下载到本地存储单元中,并基于本地存储单元中的离线资源文件对页面进行渲染显示。The grayscale identification information acquisition module 610 is configured to obtain grayscale identification information in the page configuration download request when receiving a page configuration download request sent by the client; wherein the grayscale identification information includes a preset grayscale determined by the client The value of the filtering parameter; the grayscale identification information matching module 620 is configured to match the grayscale identification information with the grayscale configuration information; wherein, the grayscale configuration information includes the preset grayscale filter parameters preset for the page of the client. The value range; the page configuration list sending module 630 is configured to send the page configuration list that records the offline download address corresponding to the page to the client if the grayscale identification information and the grayscale configuration information are successfully matched, so that the client can be based on The page configuration list downloads the offline resource file from the first server to the local storage unit, and renders and displays the page based on the offline resource file in the local storage unit.
本实施例的技术方案,通过将页面配置下载请求中的灰度识别信息与灰度配置信息进行匹配,如果灰度识别信息与灰度配置信息匹配成功,则将记录有 页面对应的离线下载地址的页面配置列表发送给客户端,实现了基于页面的离线资源文件进行灰度发布的目的,解决了线上灰度发布需要与运营商合作的问题,从而提高了灰度发布的可控性以及页面的灰度发布效率。In the technical solution of this embodiment, by matching the grayscale identification information in the page configuration download request with the grayscale configuration information, if the grayscale identification information and the grayscale configuration information are successfully matched, the offline download address corresponding to the page will be recorded. The page configuration list is sent to the client, realizing the purpose of grayscale publishing of offline resource files based on pages, solving the problem that online grayscale publishing needs to cooperate with operators, thereby improving the controllability of grayscale publishing and The grayscale publishing efficiency of the page.
在上述技术方案的基础上,可选的,该装置还包括:On the basis of the above technical solution, optionally, the device further includes:
已发送次数获取模块,设置为在在将记录有页面对应的离线下载地址的页面配置列表发送给客户端之前,获取页面配置列表的已发送次数;最大访问次数比较模块,设置为将已发送次数与最大访问次数进行比较,如果已发送次数小于或等于最大允许访问次数,则触发执行将记录有页面对应的离线下载地址的页面配置列表发送给客户端的操作。The sent times acquisition module is set to obtain the sent times of the page configuration list before sending the page configuration list that records the offline download address corresponding to the page to the client; the maximum access times comparison module is set to send the sent times Compared with the maximum number of visits, if the number of sent times is less than or equal to the maximum number of allowed visits, the operation of sending the page configuration list with the offline download address corresponding to the page recorded to the client is triggered.
在上述技术方案的基础上,可选的,最大访问次数比较模块,还设置为:On the basis of the above technical solution, optionally, the maximum access times comparison module is also set to:
如果已发送次数大于最大允许访问次数,则将页面对应的统一资源定位符URL地址发送给客户端,以使客户端基于URL地址获取第二服务器上的超文本标记语言HTML文件,并基于HTML文件对页面进行渲染显示。If the number of times sent is greater than the maximum allowable number of visits, the URL address of the URL corresponding to the page is sent to the client, so that the client can obtain the HTML file on the second server based on the URL address, and based on the HTML file Render the page.
在上述技术方案的基础上,可选的,该装置还包括:On the basis of the above technical solution, optionally, the device further includes:
灰度配置信息获取模块,设置为在将灰度识别信息与灰度配置信息进行匹配之前,从数据存储服务器中获取灰度配置信息;其中,灰度配置信息是第三服务器预先写入数据存储服务器的。The grayscale configuration information acquisition module is configured to obtain the grayscale configuration information from the data storage server before matching the grayscale identification information with the grayscale configuration information; wherein, the grayscale configuration information is pre-written into the data storage by the third server server's.
在上述技术方案的基础上,可选的,灰度配置信息为第三服务器接收到的用户输入的初始灰度配置信息,或者,第三服务器基于页面的灰度测试数据,对已有灰度配置信息中与灰度测试数据对应的目标灰度配置信息进行调整后得到的更新灰度配置信息。On the basis of the above technical solution, optionally, the grayscale configuration information is the initial grayscale configuration information input by the user received by the third server, or, based on the grayscale test data of the page, the third server The updated grayscale configuration information obtained by adjusting the target grayscale configuration information corresponding to the grayscale test data in the configuration information.
在上述技术方案的基础上,可选的,更新灰度配置信息包括第三服务器根据页面的灰度测试数据,对目标灰度配置信息执行信息更改操作得到的第一更新灰度配置信息,或,第三服务器根据页面的灰度测试数据,对目标灰度配置信息执行信息添加操作得到的第二更新灰度配置信息。Based on the above technical solution, optionally, updating the grayscale configuration information includes the first updated grayscale configuration information obtained by the third server performing an information modification operation on the target grayscale configuration information according to the grayscale test data of the page, or , the third server performs the second update grayscale configuration information obtained by performing an information addition operation on the target grayscale configuration information according to the grayscale test data of the page.
在上述技术方案的基础上,可选的,当更新灰度配置信息第一更新灰度配置信息时,该装置还包括:On the basis of the above technical solution, optionally, when updating the grayscale configuration information to first update the grayscale configuration information, the device further includes:
目标灰度配置信息匹配模块,设置为从数据存储服务器中读取与第一更新灰度配置信息对应的目标灰度配置信息,并将灰度识别信息与目标灰度配置信息进行匹配;如果灰度识别信息与目标灰度配置信息匹配成功,则将页面对应的URL地址发送给客户端,以使客户端基于URL地址获取第二服务器上的HTML文件,并基于HTML文件对页面进行渲染显示。The target grayscale configuration information matching module is configured to read the target grayscale configuration information corresponding to the first updated grayscale configuration information from the data storage server, and match the grayscale identification information with the target grayscale configuration information; If the degree identification information matches the target grayscale configuration information successfully, the URL address corresponding to the page is sent to the client, so that the client obtains the HTML file on the second server based on the URL address, and renders and displays the page based on the HTML file.
在上述技术方案的基础上,可选的,预设灰度过滤参数包括:客户端操作系统类型、客户端操作系统版本、客户端类型、客户端版本、用户信息、人群画像、用户城市、运营商和用户设备类型中至少一种。On the basis of the above technical solutions, optional preset grayscale filtering parameters include: client operating system type, client operating system version, client type, client version, user information, crowd portrait, user city, operation at least one of the vendor and the user equipment type.
实施例七Embodiment 7
图8是本申请实施例七提供的一种灰度发布装置的示意图。本实施例可适用于对客户端的页面进行灰度发布的情况,该装置可采用软件和/或硬件的方式实现,该装置可以配置于客户端。该灰度发布装置包括:页面配置下载请求发送模块710和页面渲染显示模块720。FIG. 8 is a schematic diagram of a grayscale distribution apparatus according to Embodiment 7 of the present application. This embodiment is applicable to the case where the page of the client is published in grayscale, the apparatus may be implemented in software and/or hardware, and the apparatus may be configured on the client. The grayscale publishing apparatus includes: a page configuration download request sending module 710 and a page rendering display module 720 .
页面配置下载请求发送模块710,设置为将包含灰度识别信息的页面配置下载请求发送给网关服务器,以使网关服务器将灰度识别信息与灰度配置信息进行匹配,以及如果灰度识别信息与灰度配置信息匹配成功,则将记录有页面对应的离线下载地址的页面配置列表发送给客户端;其中,灰度识别信息包括客户端确定的预设灰度过滤参数的取值,灰度配置信息包括针对客户端的页面预先设置的预设灰度过滤参数的取值范围;页面渲染显示模块720,设置为基于网关服务器发送的页面配置列表,从第一服务器将离线资源文件下载到本地存储单元中,并基于本地存储单元中的离线资源文件对页面进行渲染显示。The page configuration download request sending module 710 is configured to send the page configuration download request containing the grayscale identification information to the gateway server, so that the gateway server matches the grayscale identification information with the grayscale configuration information, and if the grayscale identification information matches the grayscale identification information and the grayscale configuration information. If the grayscale configuration information is successfully matched, the page configuration list that records the offline download address corresponding to the page is sent to the client; wherein, the grayscale identification information includes the value of the preset grayscale filter parameter determined by the client, and the grayscale configuration The information includes the value range of the preset grayscale filtering parameters preset for the page of the client; the page rendering display module 720 is set to download the offline resource file from the first server to the local storage unit based on the page configuration list sent by the gateway server , and render and display the page based on the offline resource file in the local storage unit.
本实施例的技术方案,通过将包含灰度识别信息的页面配置下载请求发送给网关服务器,并接收网关服务器在灰度识别信息与灰度配置信息匹配成功时发送的页面配置列表,基于页面配置列表从第一服务器将离线资源文件下载到本地存储单元中,并基于本地存储单元中的离线资源文件进行页面的渲染显示,实现了基于页面的离线资源文件进行灰度发布的目的,解决了线上灰度发布需要与运营商合作的问题,从而提高了灰度发布的可控性以及页面的灰度发布效率。In the technical solution of this embodiment, by sending a page configuration download request including grayscale identification information to the gateway server, and receiving a page configuration list sent by the gateway server when the grayscale identification information and the grayscale configuration information are successfully matched, based on the page configuration The list downloads the offline resource files from the first server to the local storage unit, and performs page rendering and display based on the offline resource files in the local storage unit. On the issue that the grayscale publishing needs to cooperate with the operator, thereby improving the controllability of the grayscale publishing and the grayscale publishing efficiency of the page.
在上述技术方案的基础上,可选的,该装置还包括:On the basis of the above technical solution, optionally, the device further includes:
页面配置下载请求生成模块,设置为当检测到页面配置触发事件时,生成页面配置下载请求,其中,页面配置触发事件包括页面显示触发事件、客户端启动事件和客户端前后台切换事件中至少一种。The page configuration download request generation module is configured to generate a page configuration download request when a page configuration trigger event is detected, wherein the page configuration trigger event includes at least one of a page display trigger event, a client startup event, and a client front-background switching event. kind.
本申请实施例所提供的灰度发布装置可以用于执行本申请实施例所提供的灰度发布方法,具备执行方法相应的功能和效果。The grayscale publishing apparatus provided by the embodiment of the present application can be used to execute the grayscale publishing method provided by the embodiment of the present application, and has functions and effects corresponding to the execution method.
上述灰度发布装置的实施例中,所包括的多个单元和模块只是按照功能逻辑进行划分的,但并不局限于上述的划分,只要能够实现相应的功能即可;另外,功能单元的名称也只是为了便于相互区分,并不用于限制本申请的保护范围。In the embodiment of the above-mentioned grayscale distribution device, the multiple units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be realized; in addition, the names of the functional units It is only for the convenience of distinguishing from each other, and is not used to limit the protection scope of the present application.
实施例八Embodiment 8
图9是本申请实施例八提供的一种电子设备的结构示意图,本申请实施例为本申请上述实施例一到实施例三的灰度发布方法的实现提供服务,可配置上述实施例六中的灰度发布装置,或本申请实施例为本申请上述实施例四的灰度发布方法的实现提供服务,可配置上述实施例七中的灰度发布装置。FIG. 9 is a schematic structural diagram of an electronic device according to Embodiment 8 of the present application. This embodiment of the present application provides services for the implementation of the grayscale publishing methods in Embodiments 1 to 3 of the present application, and can be configured in Embodiment 6 above. The grayscale distribution device of the above-mentioned embodiment, or the embodiment of the present application provides services for the realization of the grayscale distribution method of the above-mentioned Embodiment 4 of the present application, and the grayscale distribution device in the above-mentioned Embodiment 7 can be configured.
图9示出了适于用来实现本申请实施方式的示例性电子设备12的框图。图9显示的电子设备12仅仅是一个示例,不应对本申请实施例的功能和使用范围带来任何限制。FIG. 9 shows a block diagram of an exemplary electronic device 12 suitable for use in implementing embodiments of the present application. The electronic device 12 shown in FIG. 9 is only an example, and should not impose any limitations on the functions and scope of use of the embodiments of the present application.
如图9所示,电子设备12以通用计算设备的形式表现。电子设备12的组件可以包括但不限于:一个或者多个处理器或者处理单元16,系统存储器28,连接不同系统组件(包括系统存储器28和处理单元16)的总线18。As shown in FIG. 9, the electronic device 12 takes the form of a general-purpose computing device. Components of electronic device 12 may include, but are not limited to, one or more processors or processing units 16 , system memory 28 , and a bus 18 connecting various system components including system memory 28 and processing unit 16 .
总线18表示几类总线结构中的一种或多种,包括存储器总线或者存储器控制器、外围总线、图形加速端口、处理器或者使用多种总线结构中的任意总线结构的局域总线。举例来说,这些体系结构包括但不限于工业标准体系结构(Industry Standard Architecture,ISA)总线、微通道体系结构(MicroChannel Architecture,MCA)总线、增强型ISA总线、视频电子标准协会(Video Electronics Standards Association,VESA)局域总线以及外围组件互连(Peripheral Component Interconnect,PCI)总线。 Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor, or a local bus using any of a variety of bus structures. For example, these architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, MicroChannel Architecture (MCA) bus, Enhanced ISA bus, Video Electronics Standards Association (Video Electronics Standards Association) , VESA) local bus and Peripheral Component Interconnect (PCI) bus.
电子设备12包括多种计算机系统可读介质。这些介质可以是任何能够被电子设备12访问的可用介质,包括易失性和非易失性介质,可移动的和不可移动的介质。 Electronic device 12 includes a variety of computer system readable media. These media can be any available media that can be accessed by electronic device 12, including both volatile and non-volatile media, removable and non-removable media.
系统存储器28可以包括易失性存储器形式的计算机系统可读介质,例如随机存取存储器(Random Access Memory,RAM)30和/或高速缓存32。电子设备12可以包括其它可移动/不可移动的、易失性/非易失性计算机系统存储介质。仅作为举例,存储系统34可以设置为读写不可移动的、非易失性磁介质(图9未显示,通常称为“硬盘驱动器”)。尽管图9中未示出,可以提供设置为对可移动非易失性磁盘(例如“软盘”)读写的磁盘驱动器,以及对可移动非易失性光盘(例如光盘-只读存储器(Compact Disc Read-Only Memory,CD-ROM),便携式紧凑磁盘只读存储器(Digital Video Disc-ROM,DVD-ROM)或者其它光介质)读写的光盘驱动器。在这些情况下,每个驱动器可以通过一个或者多个数据介质接口与总线18相连。系统存储器28可以包括至少一个程序产品,该程序产品具有一组(例如至少一个)程序模块,这些程序模块被配置以执行本申请实施例的功能。 System memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and/or cache 32 . Electronic device 12 may include other removable/non-removable, volatile/non-volatile computer system storage media. For example only, storage system 34 may be configured to read and write to non-removable, non-volatile magnetic media (not shown in FIG. 9, commonly referred to as a "hard drive"). Although not shown in FIG. 9, a magnetic disk drive configured to read and write to removable non-volatile magnetic disks (eg "floppy disks") and removable non-volatile optical disks (eg compact disk-read only memory) may be provided Disc Read-Only Memory, CD-ROM), portable compact disk read-only memory (Digital Video Disc-ROM, DVD-ROM) or other optical media) read and write optical drives. In these cases, each drive may be connected to bus 18 through one or more data media interfaces. System memory 28 may include at least one program product having a set (eg, at least one) of program modules configured to perform the functions of embodiments of the present application.
具有一组(至少一个)程序模块42的程序/实用工具40,可以存储在例如系统存储器28中,这样的程序模块42包括但不限于操作系统、一个或者多个应用程序、其它程序模块以及程序数据,这些示例中的每一个或一种组合中可能包括网络环境的实现。程序模块42通常执行本申请所描述的实施例中的功能和/或方法。A program/utility 40 having a set (at least one) of program modules 42, which may be stored, for example, in system memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and programs Data, each or a combination of these examples may include an implementation of a network environment. Program modules 42 generally perform the functions and/or methods of the embodiments described herein.
电子设备12也可以与一个或多个外部设备14(例如键盘、指向设备、显示器24等)通信,还可与一个或者多个使得用户能与该电子设备12交互的设备通信,和/或与使得该电子设备12能与一个或多个其它计算设备进行通信的任何设备(例如网卡,调制解调器等等)通信。这种通信可以通过输入/输出(Input/Output,I/O)接口22进行。并且,电子设备12还可以通过网络适配器20与一个或者多个网络(例如局域网(Local Area Network,LAN),广域网(Wide Area Network,WAN)和/或公共网络,例如因特网)通信。如图9所示,网络适配器20通过总线18与电子设备12的其它模块通信。应当明白,尽管图中未示出,可以结合电子设备12使用其它硬件和/或软件模块,包括但不限于:微代码、设备驱动器、冗余处理单元、外部磁盘驱动阵列、独立冗余磁盘阵列(Redundant Arrays of Independent Disks,RAID)系统、磁带驱动器以及数据备份存储系统等。The electronic device 12 may also communicate with one or more external devices 14 (eg, a keyboard, pointing device, display 24, etc.), with one or more devices that enable a user to interact with the electronic device 12, and/or with Any device (eg, network card, modem, etc.) that enables the electronic device 12 to communicate with one or more other computing devices. Such communication may take place through an input/output (I/O) interface 22 . Also, the electronic device 12 may communicate with one or more networks (eg, Local Area Network (LAN), Wide Area Network (WAN), and/or public networks, such as the Internet) through a network adapter 20. As shown in FIG. 9 , the network adapter 20 communicates with other modules of the electronic device 12 via the bus 18 . It should be understood that, although not shown, other hardware and/or software modules may be used in conjunction with electronic device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, redundant independent disk arrays (Redundant Arrays of Independent Disks, RAID) systems, tape drives and data backup storage systems, etc.
处理单元16通过运行存储在系统存储器28中的程序,从而执行多种功能应用以及数据处理,例如实现本申请实施例所提供的灰度发布方法。The processing unit 16 executes a variety of functional applications and data processing by running the program stored in the system memory 28 , for example, implements the grayscale publishing method provided by the embodiments of the present application.
通过上述电子设备,解决了灰度配置信息的更新问题,提高了满足灰度发布条件的客户端的页面显示效果,以及提高了页面从灰度发布到全量发布的过渡效率。The above electronic device solves the problem of updating the grayscale configuration information, improves the page display effect of the client that meets the grayscale publishing conditions, and improves the transition efficiency of the page from grayscale publishing to full publishing.
实施例九Embodiment 9
本申请实施例九还提供了一种包含计算机可执行指令的存储介质,计算机可执行指令在由计算机处理器执行时用于执行一种灰度发布方法,该方法包括:The ninth embodiment of the present application also provides a storage medium containing computer-executable instructions, where the computer-executable instructions are used to execute a grayscale publishing method when executed by a computer processor, and the method includes:
当接收到客户端发送的页面配置下载请求时,获取页面配置下载请求中的灰度识别信息;其中,灰度识别信息包括客户端确定的预设灰度过滤参数的取值;将灰度识别信息与灰度配置信息进行匹配;其中,灰度配置信息包括针对客户端的页面预先设置的预设灰度过滤参数的取值范围;如果灰度识别信息与灰度配置信息匹配成功,则将记录有页面对应的离线下载地址的页面配置列表发送给客户端,以使客户端基于页面配置列表从第一服务器将离线资源文件下载到本地存储单元中,并基于本地存储单元中的离线资源文件对页面进行渲染显示。When receiving the page configuration download request sent by the client, obtain the grayscale identification information in the page configuration download request; wherein the grayscale identification information includes the value of the preset grayscale filtering parameter determined by the client; The information is matched with the grayscale configuration information; wherein, the grayscale configuration information includes the value range of the preset grayscale filtering parameters preset for the page of the client; if the grayscale identification information and the grayscale configuration information are successfully matched, the record will be recorded. A page configuration list with an offline download address corresponding to the page is sent to the client, so that the client downloads the offline resource file from the first server to the local storage unit based on the page configuration list, and pairs the offline resource file based on the offline resource file in the local storage unit. The page is rendered and displayed.
或,计算机可执行指令在由计算机处理器执行时用于执行一种灰度发布方法,该方法包括:Or, the computer-executable instructions are used to execute a grayscale publishing method when executed by a computer processor, and the method includes:
将包含灰度识别信息的页面配置下载请求发送给网关服务器,以使网关服务器将灰度识别信息与灰度配置信息进行匹配,以及如果灰度识别信息与灰度配置信息匹配成功,则将记录有页面对应的离线下载地址的页面配置列表发送给客户端;其中,灰度识别信息包括客户端确定的预设灰度过滤参数的取值,灰度配置信息包括针对客户端的页面预先设置的预设灰度过滤参数的取值范围;基于网关服务器发送的页面配置列表,从第一服务器将离线资源文件下载到本地存储单元中,并基于本地存储单元中的离线资源文件对页面进行渲染显示。Send the page configuration download request containing the grayscale identification information to the gateway server, so that the gateway server matches the grayscale identification information with the grayscale configuration information, and if the grayscale identification information and the grayscale configuration information match successfully, record the The page configuration list with the offline download address corresponding to the page is sent to the client; wherein, the grayscale identification information includes the value of the preset grayscale filtering parameter determined by the client, and the grayscale configuration information includes the preset preset for the page of the client. Set the value range of the grayscale filtering parameter; download the offline resource file from the first server to the local storage unit based on the page configuration list sent by the gateway server, and render and display the page based on the offline resource file in the local storage unit.
本申请实施例的计算机存储介质,可以采用一个或多个计算机可读的介质的任意组合。计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质。计算机可读存储介质例如可以是但不限于电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、RAM、ROM、可擦式可编程只读存储器(Erasable Programmable Read-Only Memory,EPROM或闪存)、光纤、CD-ROM、光存储器件、磁存储器件、或者上述的任意合适的组合。在本文件中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。The computer storage medium of the embodiments of the present application may adopt 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. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or a combination of any of the above. Examples (non-exhaustive list) of computer-readable storage media include: electrical connections with one or more wires, portable computer disks, hard disks, RAM, ROM, Erasable Programmable Read-Only Memory (Erasable Programmable Read-Only Memory) Memory, EPROM or flash memory), optical fiber, CD-ROM, optical storage devices, magnetic storage devices, or any suitable combination of the foregoing. In this document, a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。A computer-readable signal medium may include a propagated data signal in baseband or as part of a carrier wave, with computer-readable program code embodied thereon. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device .
计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于无线、电线、光缆、射频(Radio Frequency,RF)等等,或者上述的任意合适的组合。Program code embodied on a computer-readable medium may be transmitted using any suitable medium, including but not limited to wireless, wire, optical fiber cable, radio frequency (RF), etc., or any suitable combination of the foregoing.
可以以一种或多种程序设计语言或其组合来编写用于执行本申请操作的计算机程序代码,程序设计语言包括面向对象的程序设计语言,诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言,诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机 可以通过任意种类的网络包括LAN或WAN,连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。Computer program code for carrying out the operations of the present application may be written in one or more programming languages, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural languages, or a combination thereof. A programming language, such as the "C" language or similar programming language. 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 server. Where a remote computer is involved, the remote computer may be connected to the user's computer through any kind of network, including a LAN or WAN, or may be connected to an external computer (such as through an Internet connection using an Internet service provider).
本申请实施例所提供的一种包含计算机可执行指令的存储介质,其计算机可执行指令不限于如上的方法操作,还可以执行本申请任意实施例所提供的灰度发布方法中的相关操作。A storage medium containing computer-executable instructions provided by an embodiment of the present application, the computer-executable instructions of which are not limited to the above method operations, and can also perform related operations in the grayscale publishing method provided by any embodiment of the present application.

Claims (17)

  1. 一种灰度发布方法,包括:A grayscale publishing method, including:
    在接收到客户端发送的页面配置下载请求的情况下,获取所述页面配置下载请求中的灰度识别信息;其中,所述灰度识别信息包括所述客户端确定的预设灰度过滤参数的取值;In the case of receiving the page configuration download request sent by the client, obtain the grayscale identification information in the page configuration download request; wherein the grayscale identification information includes preset grayscale filtering parameters determined by the client value of ;
    将所述灰度识别信息与灰度配置信息进行匹配;其中,所述灰度配置信息包括针对所述客户端的页面预先设置的预设灰度过滤参数的取值范围;Matching the grayscale identification information with the grayscale configuration information; wherein the grayscale configuration information includes a value range of a preset grayscale filter parameter preset for the page of the client;
    在所述灰度识别信息与所述灰度配置信息匹配成功的情况下,将记录有所述客户端的页面对应的离线下载地址的页面配置列表发送给所述客户端,以使所述客户端基于所述页面配置列表从第一服务器将离线资源文件下载到本地存储单元中,并基于所述本地存储单元中的离线资源文件对所述客户端的页面进行渲染显示。In the case that the grayscale identification information and the grayscale configuration information are successfully matched, the page configuration list in which the offline download address corresponding to the page of the client is recorded is sent to the client, so that the client The offline resource file is downloaded from the first server to the local storage unit based on the page configuration list, and the page of the client is rendered and displayed based on the offline resource file in the local storage unit.
  2. 根据权利要求1所述的方法,在所述将记录有所述客户端的页面对应的离线下载地址的页面配置列表发送给所述客户端之前,还包括:The method according to claim 1, before sending the page configuration list recording the offline download address corresponding to the page of the client to the client, further comprising:
    获取所述页面配置列表的已发送次数;Obtain the sent times of the page configuration list;
    将所述已发送次数与最大访问次数进行比较,在所述已发送次数小于或等于所述最大允许访问次数的情况下,触发执行所述将记录有所述客户端的页面对应的离线下载地址的页面配置列表发送给所述客户端的操作。Compare the number of sent times with the maximum number of visits, and when the number of times sent is less than or equal to the maximum allowable number of visits, trigger the execution of the offline download address corresponding to the page that will record the client. The page configuration list is sent to the operation of the client.
  3. 根据权利要求2所述的方法,还包括:The method of claim 2, further comprising:
    在所述已发送次数大于所述最大允许访问次数的情况下,将所述客户端的页面对应的统一资源定位符URL地址发送给所述客户端,以使客户端基于所述URL地址获取第二服务器上的超文本标记语言HTML文件,并基于所述HTML文件对所述客户端的页面进行渲染显示。In the case that the sent times is greater than the maximum allowable access times, send the URL address of the Uniform Resource Locator corresponding to the page of the client to the client, so that the client obtains the second URL based on the URL address. A hypertext markup language HTML file on the server, and based on the HTML file, the client's page is rendered and displayed.
  4. 根据权利要求1所述的方法,在所述将所述灰度识别信息与灰度配置信息进行匹配之前,还包括:The method according to claim 1, before the matching of the grayscale identification information and the grayscale configuration information, further comprising:
    从数据存储服务器中获取所述灰度配置信息;其中,所述灰度配置信息是第三服务器预先写入所述数据存储服务器的。Obtain the grayscale configuration information from a data storage server; wherein, the grayscale configuration information is pre-written into the data storage server by a third server.
  5. 根据权利要求4所述的方法,其中,所述灰度配置信息为所述第三服务器接收到的用户输入的初始灰度配置信息,或者,所述第三服务器基于所述客户端的页面的灰度测试数据,对已有灰度配置信息中与所述灰度测试数据对应的目标灰度配置信息进行调整后得到的更新灰度配置信息。The method according to claim 4, wherein the grayscale configuration information is initial grayscale configuration information input by a user received by the third server, or the third server is based on the grayscale of the page of the client The grayscale test data is the updated grayscale configuration information obtained by adjusting the target grayscale configuration information corresponding to the grayscale test data in the existing grayscale configuration information.
  6. 根据权利要求5所述的方法,其中,所述更新灰度配置信息包括所述第三服务器根据所述客户端的页面的灰度测试数据,对所述目标灰度配置信息执行 信息更改操作得到的第一更新灰度配置信息,或,所述第三服务器根据所述客户端的页面的灰度测试数据,对所述目标灰度配置信息执行信息添加操作得到的第二更新灰度配置信息。The method according to claim 5, wherein the updating the grayscale configuration information comprises the information obtained by the third server performing an information modification operation on the target grayscale configuration information according to the grayscale test data of the page of the client. The first updated grayscale configuration information, or the second updated grayscale configuration information obtained by the third server performing an information addition operation on the target grayscale configuration information according to the grayscale test data of the client's page.
  7. 根据权利要求6所述的方法,其中,在所述更新灰度配置信息包括所述第一更新灰度配置信息的情况下,所述方法还包括:The method according to claim 6, wherein, when the updated grayscale configuration information includes the first updated grayscale configuration information, the method further comprises:
    从所述数据存储服务器中读取与所述第一更新灰度配置信息对应的目标灰度配置信息,并将所述灰度识别信息与所述第一更新灰度配置信息对应的目标灰度配置信息进行匹配;Read the target grayscale configuration information corresponding to the first updated grayscale configuration information from the data storage server, and use the grayscale identification information with the target grayscale configuration information corresponding to the first updated grayscale configuration information configuration information to match;
    在所述灰度识别信息与所述第一更新灰度配置信息对应的目标灰度配置信息匹配成功的情况下,将所述客户端的页面对应的URL地址发送给所述客户端,以使客户端基于所述URL地址获取第二服务器上的HTML文件,并基于所述HTML文件对所述客户端的页面进行渲染显示。In the case that the grayscale identification information and the target grayscale configuration information corresponding to the first updated grayscale configuration information are successfully matched, the URL address corresponding to the page of the client is sent to the client, so that the client can The terminal acquires the HTML file on the second server based on the URL address, and renders and displays the page of the client based on the HTML file.
  8. 根据权利要求1-7中任一项所述的方法,其中,所述预设灰度过滤参数包括:客户端操作系统类型、客户端操作系统版本、客户端类型、客户端版本、用户信息、人群画像、用户城市、运营商和用户设备类型中至少一种。The method according to any one of claims 1-7, wherein the preset grayscale filtering parameters include: client operating system type, client operating system version, client type, client version, user information, At least one of crowd portrait, user city, operator, and user equipment type.
  9. 一种灰度发布方法,包括:A grayscale publishing method, including:
    将包含灰度识别信息的页面配置下载请求发送给网关服务器,以使所述网关服务器将所述灰度识别信息与灰度配置信息进行匹配,以及在所述灰度识别信息与所述灰度配置信息匹配成功的情况下,所述网关服务器将记录有客户端的页面对应的离线下载地址的页面配置列表发送给所述客户端;其中,所述灰度识别信息包括所述客户端确定的预设灰度过滤参数的取值,所述灰度配置信息包括针对所述客户端的页面预先设置的预设灰度过滤参数的取值范围;Send the page configuration download request including the grayscale identification information to the gateway server, so that the gateway server matches the grayscale identification information with the grayscale configuration information, and the grayscale identification information and the grayscale When the configuration information is successfully matched, the gateway server sends a page configuration list that records the offline download address corresponding to the page of the client to the client; wherein the grayscale identification information includes a preset determined by the client. Set the value of the grayscale filtering parameter, and the grayscale configuration information includes the value range of the preset grayscale filtering parameter preset for the page of the client;
    基于所述网关服务器发送的页面配置列表,从第一服务器将离线资源文件下载到本地存储单元中,并基于所述本地存储单元中的离线资源文件对所述客户端的页面进行渲染显示。Based on the page configuration list sent by the gateway server, the offline resource file is downloaded from the first server to the local storage unit, and the page of the client is rendered and displayed based on the offline resource file in the local storage unit.
  10. 根据权利要求9所述的方法,还包括:The method of claim 9, further comprising:
    在检测到页面配置触发事件的情况下,生成所述页面配置下载请求,其中,所述页面配置触发事件包括页面显示触发事件、客户端启动事件和客户端前后台切换事件中至少一种。When a page configuration trigger event is detected, the page configuration download request is generated, wherein the page configuration trigger event includes at least one of a page display trigger event, a client startup event, and a client front-background switching event.
  11. 一种灰度发布系统,包括:网关服务器、客户端和第一服务器;其中,A grayscale publishing system, comprising: a gateway server, a client and a first server; wherein,
    所述网关服务器,设置为在接收到页面配置下载请求的情况下,获取所述页面配置下载请求中的灰度识别信息,将所述灰度识别信息与灰度配置信息进 行匹配,在所述灰度识别信息与所述灰度配置信息匹配成功的情况下,将记录有所述客户端的页面对应的离线下载地址的页面配置列表发送给所述客户端;其中,所述灰度识别信息包括所述客户端确定的预设灰度过滤参数的取值,所述灰度配置信息包括针对所述客户端的页面预先设置的预设灰度过滤参数的取值范围;The gateway server is configured to obtain the grayscale identification information in the page configuration download request when receiving the page configuration download request, match the grayscale identification information with the grayscale configuration information, and In the case that the grayscale identification information and the grayscale configuration information are successfully matched, send a page configuration list that records the offline download address corresponding to the page of the client to the client; wherein the grayscale identification information includes the value of the preset grayscale filtering parameter determined by the client, and the grayscale configuration information includes the value range of the preset grayscale filtering parameter preset for the page of the client;
    所述客户端,设置为将所述页面配置下载请求发送给所述网关服务器,并基于所述网关服务器发送的页面配置列表,从所述第一服务器将离线资源文件下载到本地存储单元中,并基于所述本地存储单元中的离线资源文件对所述客户端的页面进行渲染显示;The client is configured to send the page configuration download request to the gateway server, and download the offline resource file from the first server to the local storage unit based on the page configuration list sent by the gateway server, and rendering and displaying the page of the client based on the offline resource file in the local storage unit;
    所述第一服务器,设置为存储至少一个页面的离线资源文件。The first server is configured to store offline resource files of at least one page.
  12. 根据权利要求11所述的系统,还包括第三服务器和数据存储服务器;其中,The system of claim 11, further comprising a third server and a data storage server; wherein,
    所述第三服务器,设置为将获取的灰度配置信息写入所述数据存储服务器中;The third server is configured to write the acquired grayscale configuration information into the data storage server;
    所述数据存储服务器,设置为存储所述灰度配置信息;the data storage server, configured to store the grayscale configuration information;
    所述网关服务器,还设置为从所述数据存储服务器获取所述灰度配置信息。The gateway server is further configured to obtain the grayscale configuration information from the data storage server.
  13. 根据权利要求12所述的系统,其中,所述第三服务器设置为接收用户输入的初始灰度配置信息,将所述初始灰度配置信息写入所述数据存储服务器;或者,获取所述客户端的页面对应的灰度测试数据,并基于所述灰度测试数据对已有灰度配置信息中与所述灰度测试数据对应的目标灰度配置信息进行调整得到更新灰度配置信息,将所述更新灰度配置信息写入所述数据存储服务器。The system according to claim 12, wherein the third server is configured to receive initial grayscale configuration information input by a user, and write the initial grayscale configuration information into the data storage server; or, obtain the client The grayscale test data corresponding to the page of the terminal is adjusted, and based on the grayscale test data, the target grayscale configuration information corresponding to the grayscale test data in the existing grayscale configuration information is adjusted to obtain the updated grayscale configuration information. The updated grayscale configuration information is written into the data storage server.
  14. 一种灰度发布装置,包括:A grayscale publishing device, comprising:
    灰度识别信息获取模块,设置为在接收到客户端发送的页面配置下载请求时的情况下,获取所述页面配置下载请求中的灰度识别信息;其中,所述灰度识别信息包括所述客户端确定的预设灰度过滤参数的取值;The grayscale identification information acquisition module is configured to acquire grayscale identification information in the page configuration download request when receiving a page configuration download request sent by the client; wherein the grayscale identification information includes the The value of the preset grayscale filtering parameter determined by the client;
    灰度识别信息匹配模块,设置为将所述灰度识别信息与灰度配置信息进行匹配;其中,所述灰度配置信息包括针对所述客户端的页面预先设置的预设灰度过滤参数的取值范围;The grayscale identification information matching module is configured to match the grayscale identification information with the grayscale configuration information; wherein the grayscale configuration information includes a selection of preset grayscale filtering parameters preset for the page of the client value range;
    页面配置列表发送模块,设置为在所述灰度识别信息与所述灰度配置信息匹配成功的情况下,将记录有所述客户端的页面对应的离线下载地址的页面配置列表发送给所述客户端,以使所述客户端基于所述页面配置列表从第一服务器将离线资源文件下载到本地存储单元中,并基于所述本地存储单元中的离线 资源文件对所述客户端的页面进行渲染显示。A page configuration list sending module, configured to send a page configuration list that records the offline download address corresponding to the page of the client to the client when the grayscale identification information and the grayscale configuration information are successfully matched terminal, so that the client downloads the offline resource file from the first server to the local storage unit based on the page configuration list, and renders and displays the page of the client based on the offline resource file in the local storage unit .
  15. 一种灰度发布装置,包括:A grayscale publishing device, comprising:
    页面配置下载请求发送模块,设置为将包含灰度识别信息的页面配置下载请求发送给网关服务器,以使所述网关服务器将所述灰度识别信息与灰度配置信息进行匹配,以及在所述灰度识别信息与所述灰度配置信息匹配成功的情况下,所述网关服务器将记录有客户端的页面对应的离线下载地址的页面配置列表发送给所述客户端;其中,所述灰度识别信息包括所述客户端确定的预设灰度过滤参数的取值,所述灰度配置信息包括针对所述客户端的页面预先设置的预设灰度过滤参数的取值范围;The page configuration download request sending module is configured to send the page configuration download request including the grayscale identification information to the gateway server, so that the gateway server matches the grayscale identification information with the grayscale configuration information, and in the In the case that the grayscale identification information and the grayscale configuration information are successfully matched, the gateway server sends a page configuration list that records the offline download address corresponding to the page of the client to the client; wherein the grayscale identification The information includes the value of the preset grayscale filtering parameter determined by the client, and the grayscale configuration information includes the value range of the preset grayscale filtering parameter preset for the page of the client;
    页面渲染显示模块,设置为基于所述网关服务器发送的页面配置列表,从第一服务器将离线资源文件下载到本地存储单元中,并基于所述本地存储单元中的离线资源文件对所述客户端的页面进行渲染显示。The page rendering and display module is configured to download the offline resource file from the first server to the local storage unit based on the page configuration list sent by the gateway server, and based on the offline resource file in the local storage unit, the offline resource file in the local storage unit is set to the client. The page is rendered and displayed.
  16. 一种电子设备,包括:An electronic device comprising:
    至少一个处理器;at least one processor;
    存储器,设置为存储至少一个程序;a memory, arranged to store at least one program;
    当所述至少一个程序被所述至少一个处理器执行,使得所述至少一个处理器实现如权利要求1-8或9-10中任一项所述的灰度发布方法。When the at least one program is executed by the at least one processor, the at least one processor implements the grayscale publishing method according to any one of claims 1-8 or 9-10.
  17. 一种包含计算机可执行指令的存储介质,其中,所述计算机可执行指令在由计算机处理器执行时用于执行如权利要求1-8或9-10中任一项所述的灰度发布方法。A storage medium containing computer-executable instructions, wherein the computer-executable instructions, when executed by a computer processor, are used to execute the grayscale publishing method according to any one of claims 1-8 or 9-10 .
PCT/CN2021/120918 2020-12-28 2021-09-27 Grayscale publishing method, system and apparatus, and device and storage medium WO2022142536A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011585155.8A CN114697304B (en) 2020-12-28 2020-12-28 Gray release method, system, device, equipment and storage medium
CN202011585155.8 2020-12-28

Publications (1)

Publication Number Publication Date
WO2022142536A1 true WO2022142536A1 (en) 2022-07-07

Family

ID=82130442

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/120918 WO2022142536A1 (en) 2020-12-28 2021-09-27 Grayscale publishing method, system and apparatus, and device and storage medium

Country Status (2)

Country Link
CN (1) CN114697304B (en)
WO (1) WO2022142536A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117032991A (en) * 2023-10-08 2023-11-10 宁波银行股份有限公司 Gray scale publishing method, device and system
CN117714459A (en) * 2023-12-28 2024-03-15 北京领雁科技股份有限公司 Dynamic gray scale service release system, method, equipment and computer medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105404582A (en) * 2015-10-26 2016-03-16 努比亚技术有限公司 Application improvement verification method and system
CN109376322A (en) * 2018-09-07 2019-02-22 平安科技(深圳)有限公司 A kind of grayscale version page access method, apparatus, computer equipment and computer storage medium
WO2019128205A1 (en) * 2017-12-29 2019-07-04 中兴通讯股份有限公司 Method and device for achieving grayscale publishing, computing node and system
CN111290779A (en) * 2020-03-04 2020-06-16 北京三快在线科技有限公司 Gray scale distribution method, device, storage medium and electronic equipment
CN111913738A (en) * 2020-08-19 2020-11-10 工银科技有限公司 Access request processing method, device, computing equipment and medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109857403B (en) * 2018-12-05 2022-04-19 腾讯科技(深圳)有限公司 Page updating method and device, page processing method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105404582A (en) * 2015-10-26 2016-03-16 努比亚技术有限公司 Application improvement verification method and system
WO2019128205A1 (en) * 2017-12-29 2019-07-04 中兴通讯股份有限公司 Method and device for achieving grayscale publishing, computing node and system
CN109376322A (en) * 2018-09-07 2019-02-22 平安科技(深圳)有限公司 A kind of grayscale version page access method, apparatus, computer equipment and computer storage medium
CN111290779A (en) * 2020-03-04 2020-06-16 北京三快在线科技有限公司 Gray scale distribution method, device, storage medium and electronic equipment
CN111913738A (en) * 2020-08-19 2020-11-10 工银科技有限公司 Access request processing method, device, computing equipment and medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117032991A (en) * 2023-10-08 2023-11-10 宁波银行股份有限公司 Gray scale publishing method, device and system
CN117032991B (en) * 2023-10-08 2024-01-26 宁波银行股份有限公司 Gray scale publishing method, device and system
CN117714459A (en) * 2023-12-28 2024-03-15 北京领雁科技股份有限公司 Dynamic gray scale service release system, method, equipment and computer medium

Also Published As

Publication number Publication date
CN114697304B (en) 2023-12-01
CN114697304A (en) 2022-07-01

Similar Documents

Publication Publication Date Title
US11750607B2 (en) Identifying accounts having shared credentials
US10880287B2 (en) Out of box experience application API integration
US11792199B2 (en) Application-assisted login for a web browser
US9477517B2 (en) Service broker systems, methods, and apparatus
US9529819B2 (en) Opening unsupported file types through remoting sessions
JP2014525092A (en) Methods for associating third-party content with online document signatures
WO2022142536A1 (en) Grayscale publishing method, system and apparatus, and device and storage medium
CN109542862B (en) Method, device and system for controlling mounting of file system
US20220391489A1 (en) Data processing method and apparatus, computer device, and storage medium
US9930063B2 (en) Random identifier generation for offline database
US20210097027A1 (en) Opening unsupported file types through remoting sessions
US20240106902A1 (en) Communication protocols for an online content management system
CN112612977A (en) Page display method, system, device, equipment and storage medium
US10303669B1 (en) Simulating hierarchical structures in key value stores
CN110704833A (en) Data permission configuration method, device, electronic device and storage medium
CN110674426B (en) Webpage behavior reporting method and device
CN116028917A (en) Authority detection method and device, storage medium and electronic equipment
CN111078569B (en) Method and device for testing optical character recognition application and storage medium
CN108920589B (en) Browsing hijacking identification method, device, server and storage medium
WO2023230797A1 (en) Cross-system test method and apparatus
US11323532B1 (en) Data stream packaging
CN115102748A (en) Vulnerability detection method and device, storage medium and electronic equipment
CN113641966A (en) Application integration method, system, device and medium
CA3195743A1 (en) Privacy manager for connected tv and over-the-top applications
CN117806840A (en) Message template-based message display method, device, equipment, medium and product

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21913281

Country of ref document: EP

Kind code of ref document: A1