CN107862044A - The method and apparatus of displayed page - Google Patents

The method and apparatus of displayed page Download PDF

Info

Publication number
CN107862044A
CN107862044A CN201711083265.2A CN201711083265A CN107862044A CN 107862044 A CN107862044 A CN 107862044A CN 201711083265 A CN201711083265 A CN 201711083265A CN 107862044 A CN107862044 A CN 107862044A
Authority
CN
China
Prior art keywords
page
page data
end server
data
data file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201711083265.2A
Other languages
Chinese (zh)
Inventor
蓝星福
于林坤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201711083265.2A priority Critical patent/CN107862044A/en
Publication of CN107862044A publication Critical patent/CN107862044A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses the method and apparatus of displayed page, it is related to field of computer technology.One embodiment of this method includes:State data file is generated according to page data, and is pushed to front-end server;The state data file of front-end server is called when the service request of user occurs abnormal, and is shown based on the state data file generation page.The embodiment makes front and back end separation reduce the degree of coupling of front and back end, make front end engineer change before the page when no longer need to be adjusted by rear end engineer again, reduce repetitive work;Simultaneously as the situation that the page can not normally show can be avoided the occurrence of using static bottom-line plan, the technique effect of Consumer's Experience is improved.

Description

The method and apparatus of displayed page
Technical field
The present invention relates to field of computer technology, more particularly to a kind of method and apparatus of displayed page.
Background technology
With the fast development of internet, user's coverage of internet is more and more wider, according to incompletely statistics, 2017 Year, Chinese netizen surpassed 700,000,000, and this is for Internet service platform in terms of systematic function, Consumer's Experience and network security Technological challenge also more comes also high.
Existing webpage development pattern be front end engineer after the page has been developed directly to rear end engineer's template, then by Rear end engineer carries out template nesting by template engine, ultimately generates HyperText Markup Language (html) page of a standard Face shows user.
In process of the present invention is realized, inventor has found that at least there are the following problems in the prior art:
Front end page and the back-end services degree of coupling are too high, by this pattern of template engine nesting template, in face of big When flow or heavy load, easily cause web station system back-end services and the machine of delaying occur, so as to cause front end page can not be just Often displaying, has a strong impact on Consumer's Experience.
The content of the invention
In view of this, the embodiment of the present invention provides a kind of method and apparatus of displayed page, can be loaded in back-end system In the case of too high or machine of delaying, ensure page normal presentation.
To achieve the above object, a kind of one side according to embodiments of the present invention, there is provided method of displayed page.
A kind of method of displayed page of the embodiment of the present invention includes:State data file is generated according to page data, and It is pushed to front-end server;The static data text of the front-end server is called when the service request of user occurs abnormal Part, and be shown based on the state data file generation page.
Alternatively, generating state data file according to page data includes:According to the page data of back-end server Generate the state data file;And the back-end server is monitored, when the page of the back-end server When data change, the state data file is regenerated according to the page data after change.
Alternatively, generating the state data file includes:The page data is input to generation static data script In, the generation static data script is performed to generate the state data file.
Alternatively, carrying out monitoring to the back-end server includes:Monitoring information queue, when the institute of the back-end server When stating page data and changing, the back-end server sends page data change message to the message queue.
Alternatively, the state data file of the front-end server is called when the service request of user occurs abnormal Include before:The service request of user is sent to back end interface to obtain page data;The back end interface is according to institute The rear end caching system of service request inquiry back-end server is stated, if the page data be present in the rear end caching system, The page data in the rear end caching system is then called to return to the front-end server;If the rear end caching system In the page data is not present, then read back-end server back-end data base in the page data return to it is described before Hold server.
Alternatively, the page data of no requirement of real-time is stored with the rear end caching system.
To achieve the above object, a kind of another aspect according to embodiments of the present invention, there is provided device of displayed page.
A kind of device of displayed page of the embodiment of the present invention includes:Generation module, it is quiet for being generated according to page data State data file, and it is pushed to front-end server;Calling module, described in being called when the service request of user occurs abnormal The state data file of front-end server, and be shown based on the state data file generation page.
Alternatively, the generation module is additionally operable to:The static number is generated according to the page data of back-end server According to file;And the back-end server is monitored, when the page data of the back-end server changes, The state data file is regenerated according to the page data after change.
Alternatively, the generation module is further used for:The page data is input in generation static data script, The generation static data script is performed to generate the state data file.
Alternatively, the generation module is further used for:Monitoring information queue, when the page of the back-end server When data change, the back-end server sends page data change message to the message queue.
Alternatively, described device also includes:Sending module, for the service request of user to be sent to back end interface To obtain page data;Enquiry module, the rear end of back-end server is inquired about according to the service request for the back end interface Caching system, if the page data be present in the rear end caching system, call described in the rear end caching system Page data returns to the front-end server;If the page data is not present in the rear end caching system, after reading The page data in the back-end data base of server is held to return to the front-end server.
Alternatively, the page data of no requirement of real-time is stored with the rear end caching system.
To achieve the above object, another further aspect according to embodiments of the present invention, there is provided a kind of electronics of displayed page is set It is standby.
A kind of electronic equipment of displayed page of the embodiment of the present invention includes:One or more processors;Storage device, use In storing one or more programs, when one or more of programs are by one or more of computing devices so that described The method that one or more processors realize the displayed page of the embodiment of the present invention.
To achieve the above object, a kind of another aspect according to embodiments of the present invention, there is provided computer-readable medium.
A kind of computer-readable medium of the embodiment of the present invention, is stored thereon with computer program, and described program is processed Device realizes the displayed page of embodiment of the present invention method when performing.
One embodiment in foregoing invention has the following advantages that or beneficial effect:Because generated using according to page data State data file, and it is pushed to front-end server;The quiet of front-end server is called when the service request of user occurs abnormal State data file, and technological means is shown based on the state data file generation page, so overcoming front end page with after The end service degree of coupling is too high, by this pattern of template engine nesting template, when big flow or heavy load, Easily cause web station system back-end services and the machine of delaying occur, so as to cause front end page can not normal presentation technical problem, Jin Erda To front and back end separate reduce front and back end the degree of coupling, make front end engineer change before the page when no longer need again by rear end engineering Teacher is adjusted, and reduces repetitive work;Can not be just simultaneously as the page can be avoided the occurrence of using static bottom-line plan Situation about often showing, improve the technique effect of Consumer's Experience.
Further effect adds hereinafter in conjunction with embodiment possessed by above-mentioned non-usual optional mode With explanation.
Brief description of the drawings
Accompanying drawing is used to more fully understand the present invention, does not form inappropriate limitation of the present invention.Wherein:
Fig. 1 is the schematic diagram of the main flow of the method for displayed page according to embodiments of the present invention;
Fig. 2 is that the method for displayed page according to embodiments of the present invention realizes block schematic illustration;
Fig. 3 is the application flow schematic diagram of the method for displayed page according to embodiments of the present invention;
Fig. 4 is the schematic diagram of the main modular of the device of displayed page according to embodiments of the present invention;
Fig. 5 is that the embodiment of the present invention can apply to exemplary system architecture figure therein;
Fig. 6 is adapted for the structural representation for realizing the terminal device of the embodiment of the present invention or the computer system of server Figure.
Embodiment
The one exemplary embodiment of the present invention is explained below in conjunction with accompanying drawing, including the various of the embodiment of the present invention Details should think them only exemplary to help understanding.Therefore, those of ordinary skill in the art should recognize Arrive, various changes and modifications can be made to the embodiments described herein, without departing from scope and spirit of the present invention.Together Sample, for clarity and conciseness, the description to known function and structure is eliminated in following description.
Fig. 1 is the schematic diagram of the main flow of the method for displayed page according to embodiments of the present invention.
As shown in figure 1, a kind of method of displayed page of the embodiment of the present invention mainly includes the following steps that:
Step S101:State data file is generated according to page data, and is pushed to front-end server.
It is noninductive in user in order to occur back-end server load too high or machine of delaying in the case of big flow, high concurrent It can ensure to be not in blank page in the case of knowing, i.e. page normal presentation.The embodiment of the present invention is given birth to according to page data Into standby state data file, and front-end server is pushed to as bottom-line plan, can avoid the occurrence of the page can not be normal The situation of displaying, and the reading of state data file and loading velocity are quickly, improve Consumer's Experience.
In embodiments of the present invention, generating state data file according to page data includes:According to the page of back-end server Face data generation state data file;And back-end server is monitored, when the page data of back-end server becomes During change, state data file is regenerated according to the page data after change.Page data is stored in back-end server, Ke Yigen According to page data generate state data file, meanwhile, when page data needed when changing regenerate the static data File.
After holding the page data of server after reading, the page data can be input in generation static data script And then generate state data file.In embodiments of the present invention, generation state data file includes:Page data is input to life Into in static data script, generation static data script is performed to generate state data file.
Renewal for page data in back-end server, a page data is sent from back-end server to message queue Message is changed, newest page data can be pulled again after listening to page data change message, so as to according to newest page Face data regenerate state data file, and then ensure that the state data file for being pushed to front-end server takes with rear end all the time The page data of business device is consistent.In embodiments of the present invention, carrying out monitoring to back-end server includes:Monitoring information team Row, when the page data of back-end server changes, back-end server sends page data change message to message queue.
Step S102:The state data file of front-end server, and base are called when the service request of user occurs abnormal It is shown in the state data file generation page.
In order to ensure that the page can normally be shown under any circumstance, and improve loading velocity and the use body of user Test, when exception occurs in itself in the service request that user's transmission occurs, response timeout occurs in service request or service request is normal When the data that response still returns can not generate the abnormal conditions of the page for sky etc., the static data of front-end server is directly invoked File, and be shown based on the state data file generation page.
Include rear end caching system and back-end data base in back-end server, back end interface is according to service request in rear end Query page data in the rear end caching system or back-end data base of server.In embodiments of the present invention, when the service of user Called when request occurs abnormal includes before the state data file of front-end server:The service request of user is sent to rear end Interface is to obtain page data;Back end interface inquires about the rear end caching system of back-end server according to service request, if rear end is delayed Page data in deposit system be present, then call the page data in the caching system of rear end to return to front-end server;If rear end is delayed Page data is not present in deposit system, then the page data read in the back-end data base of back-end server returns to front end services Device.
The back-end data base of back-end server is used to store all page datas, it should be noted that in back-end data base What is stored is the page data of real-time change;And the rear end caching system of back-end server is used to write the page without requirement of real-time Face data.Preferentially page data is read from the caching system of rear end, it is possible to reduce the pressure of back-end data base.Implement in the present invention In example, the page data of no requirement of real-time is stored with the caching system of rear end.
The method of displayed page according to embodiments of the present invention can be seen that because static using being generated according to page data Data file, and it is pushed to front-end server;The static number of front-end server is called when the service request of user occurs abnormal Technological means is shown according to file, and based on the state data file generation page, so overcoming front end page and rear end clothes The degree of coupling of being engaged in is too high, by this pattern of template engine nesting template, when big flow or heavy load, easily Cause web station system back-end services the machine of delaying occur, so as to cause front end page can not normal presentation technical problem, it is and then preceding Rear end separation reduce front and back end the degree of coupling, make front end engineer change before the page when no longer need by rear end engineer to enter again Row adjustment, reduces repetitive work;Can not normally it show simultaneously as the page can be avoided the occurrence of using static bottom-line plan Situation about showing, improve the technique effect of Consumer's Experience.
Fig. 2 is that the method for displayed page according to embodiments of the present invention realizes block schematic illustration;
As shown in Fig. 2 the method for the displayed page of the embodiment of the present invention realizes that framework mainly includes:Front end system, after End system and state data file generation system, in embodiments of the present invention, the request with feedback user are received by front end system, And the data for calling user to ask;By back-end system storing page data, and end system and state data file generation system forward System sends page data;State data file is generated according to the page data of back-end system by state data file generation system, And the state data file is pushed to front end system.Specifically, the function of each system is as follows:
Front end system:Front end system refers to that the foreground partition of website includes the presentation layer and structure sheaf of website, front end system Can be browser, Webpage etc..Front end system is individually deployed on front-end server, by Asynchronous Request interface backward The back end interface of end server asks the service request if there is back-end services request timed out or to be returned to obtain page data The data returned are the abnormal conditions such as sky, then directly read the static number that state data file generation system is pushed to front-end server According to file.
Back-end system:Back-end system is individually deployed on back-end server, and back-end system is divided into back-end data base with after again Hold caching system.All page datas are stored in back-end data base, back end interface is read by DAO (DAO) class The page data of back-end data base is taken, then writes rear end caching system, can be directly from rear end caching system when accessing again Middle reading page data;Rear end caching system is then not written into for the higher page data of requirement of real-time, completes write-in rear end Back page data are to front-end server after the operation of caching system.
State data file generates system:State data file generation system is not involved in the stream of asynchronous reading page data Cheng Zhong, it is a relatively independent presence.State data file generation system is used to generate state data file, then passes through number It is synchronized to according to mirror back-up (rsync) instrument under front-end server assigned catalogue.
Fig. 3 is the application flow schematic diagram of the method for displayed page according to embodiments of the present invention;
As shown in figure 3, the application flow of the method for the displayed page of the embodiment of the present invention mainly includes with lower part:
User sends service request by browser access website and forward end server, and front-end server is different by Ajax The back end interface of step request interface rear end server asks page data corresponding to the service request.Wherein, Ajax is Asynchronous JavaScript and XML (asynchronous JavaScript and XML technology), represent it is a set of combine it is multinomial The browser end web development technologies of technology.
The back end interface of back-end server is judged based on the service request, inquires about page number corresponding to the service request According to the presence or absence of in the rear end caching system of back-end server, if in the presence of it is direct to read data from the caching system of rear end Return to front-end server;If being not present, the back-end data base of back-end server is read.It should be noted that back end interface Only the page data write-in rear end caching system without requirement of real-time is cached, so as to reduce the pressure of back-end data base.
The Asynchronous Request interface of front-end server is judged request response, if request back end interface normal response, Page data is then rendered to page presentation to user;If asking back end interface response timeout or returning to clear data, Local state data file is directly read, final rendering, to user, so as to improve displaying efficiency, and reduces into page presentation Reading of content distribution network (CDN) is asked.
State data file in the embodiment of the present invention is to generate system according to back-end server by state data file Page data generates, and the page data that state data file generation system obtains back-end server is input to generation static data pin In this, the generation static data script is performed to generate state data file.Meanwhile in order to ensure the static number of front-end server Keep data consistent with the page data that back-end server returns in real time all the time according to file, state data file generation system passes through Back-end server is monitored in monitoring information queue, when the page data of back-end server changes, reacquires rear end clothes The page data of business device, and generate new state data file.
It should be noted that the page data of back-end server generates system when changing, to state data file Message queue sends a page data change message, to notify state data file generation system page data to change.
The content format of state data file can be a kind of data interchange format of lightweight (json) array, according to finger Fixed column generates the json array files of different names, is then pushed to the state data file far by rsync instruments Under the assigned catalogue of the front-end server of journey.
In addition, front-end server and back-end server are located on different servers respectively, so as to prevent front and back end from coupling A method, system caused by spending height goes wrong, the situation that front and back end can not access.
Fig. 4 is the schematic diagram of the main modular of the device of displayed page according to embodiments of the present invention;
As shown in figure 4, a kind of device 400 of displayed page of the embodiment of the present invention mainly includes:Generation module 401, adjust With module 402.
Wherein:
Generation module 401, for generating state data file according to page data, and it is pushed to front-end server;
Calling module 402, for calling the described quiet of the front-end server when the service request of user occurs abnormal State data file, and be shown based on the state data file generation page.
In embodiments of the present invention, the generation module 401 is additionally operable to:Given birth to according to the page data of back-end server Into the state data file;And the back-end server is monitored, when the page number of the back-end server During according to changing, the state data file is regenerated according to the page data after change.
In embodiments of the present invention, the generation module 401 is further used for:It is quiet that the page data is input to generation In state data script, the generation static data script is performed to generate the state data file.
In embodiments of the present invention, the generation module 401 is further used for:Monitoring information queue, when the rear end takes When the page data of business device changes, the back-end server sends page data change to the message queue and disappeared Breath.
In addition, described device also includes:Sending module, for by the service request of user send to back end interface with Obtain page data;Enquiry module, the rear end for inquiring about back-end server according to the service request for the back end interface are delayed Deposit system, if the page data be present in the rear end caching system, call the page in the rear end caching system Face data return to the front-end server;If the page data is not present in the rear end caching system, rear end is read The page data in the back-end data base of server returns to the front-end server.
In embodiments of the present invention, the page data of no requirement of real-time is stored with the rear end caching system.
The device of displayed page according to embodiments of the present invention can be seen that because static using being generated according to page data Data file, and it is pushed to front-end server;The static number of front-end server is called when the service request of user occurs abnormal Technological means is shown according to file, and based on the state data file generation page, so overcoming front end page and rear end clothes The degree of coupling of being engaged in is too high, by this pattern of template engine nesting template, when big flow or heavy load, easily Cause web station system back-end services the machine of delaying occur, so as to cause front end page can not normal presentation technical problem, it is and then preceding Rear end separation reduce front and back end the degree of coupling, make front end engineer change before the page when no longer need by rear end engineer to enter again Row adjustment, reduces repetitive work;Can not normally it show simultaneously as the page can be avoided the occurrence of using static bottom-line plan Situation about showing, improve the technique effect of Consumer's Experience.
Fig. 5 show can apply the embodiment of the present invention displayed page method or displayed page device it is exemplary System architecture 500.
As shown in figure 5, system architecture 500 can include terminal device 501,502,503, network 504 and server 505. Network 504 between terminal device 501,502,503 and server 505 provide communication link medium.Network 504 can be with Including various connection types, such as wired, wireless communication link or fiber optic cables etc..
User can be interacted with using terminal equipment 501,502,503 by network 504 with server 505, to receive or send out Send message etc..Various telecommunication customer end applications, such as the application of shopping class, net can be installed on terminal device 501,502,503 The application of page browsing device, searching class application, JICQ, mailbox client, social platform software etc..
Terminal device 501,502,503 can have a display screen and a various electronic equipments that supported web page browses, bag Include but be not limited to smart mobile phone, tablet personal computer, pocket computer on knee and desktop computer etc..
Server 505 can be to provide the server of various services, such as utilize terminal device 501,502,503 to user The shopping class website browsed provides the back-stage management server supported.Back-stage management server can be believed the product received The data such as breath inquiry request are carried out the processing such as analyzing, and result (such as target push information, product information) is fed back to Terminal device.
It should be noted that the method for the displayed page that the embodiment of the present invention is provided typically is performed by server 505, phase Ying Di, the device of displayed page are generally positioned in server 505.
It should be understood that the number of the terminal device, network and server in Fig. 5 is only schematical.According to realizing need Will, can have any number of terminal device, network and server.
Below with reference to Fig. 6, it illustrates suitable for for realizing the computer system 600 of the terminal device of the embodiment of the present invention Structural representation.Terminal device shown in Fig. 6 is only an example, to the function of the embodiment of the present invention and should not use model Shroud carrys out any restrictions.
As shown in fig. 6, computer system 600 includes CPU (CPU) 601, it can be read-only according to being stored in Program in memory (ROM) 602 or be loaded into program in random access storage device (RAM) 603 from storage part 608 and Perform various appropriate actions and processing.In RAM 603, also it is stored with system 600 and operates required various programs and data. CPU 601, ROM 602 and RAM 603 are connected with each other by bus 604.Input/output (I/O) interface 605 is also connected to always Line 604.
I/O interfaces 605 are connected to lower component:Importation 606 including keyboard, mouse etc.;Penetrated including such as negative electrode The output par, c 607 of spool (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.;Storage part 608 including hard disk etc.; And the communications portion 609 of the NIC including LAN card, modem etc..Communications portion 609 via such as because The network of spy's net performs communication process.Driver 610 is also according to needing to be connected to I/O interfaces 605.Detachable media 611, such as Disk, CD, magneto-optic disk, semiconductor memory etc., it is arranged on as needed on driver 610, in order to read from it Computer program be mounted into as needed storage part 608.
Especially, according to embodiment disclosed by the invention, may be implemented as counting above with reference to the process of flow chart description Calculation machine software program.For example, embodiment disclosed by the invention includes a kind of computer program product, it includes being carried on computer Computer program on computer-readable recording medium, the computer program include the program code for being used for the method shown in execution flow chart. In such embodiment, the computer program can be downloaded and installed by communications portion 609 from network, and/or from can Medium 611 is dismantled to be mounted.When the computer program is performed by CPU (CPU) 601, system of the invention is performed The above-mentioned function of middle restriction.
It should be noted that the computer-readable medium shown in the present invention can be computer-readable signal media or meter Calculation machine readable storage medium storing program for executing either the two any combination.Computer-readable recording medium for example can be --- but not Be limited to --- electricity, magnetic, optical, electromagnetic, system, device or the device of infrared ray or semiconductor, or it is any more than combination.Meter The more specifically example of calculation machine readable storage medium storing program for executing can include but is not limited to:Electrical connection with one or more wires, just Take formula computer disk, hard disk, random access storage device (RAM), read-only storage (ROM), erasable type and may be programmed read-only storage Device (EPROM or flash memory), optical fiber, portable compact disc read-only storage (CD-ROM), light storage device, magnetic memory device, Or above-mentioned any appropriate combination.In the present invention, computer-readable recording medium can any include or store journey The tangible medium of sequence, the program can be commanded the either device use or in connection of execution system, device.And at this In invention, computer-readable signal media can include in a base band or as carrier wave a part propagation data-signal, Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including but unlimited In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can Any computer-readable medium beyond storage medium is read, the computer-readable medium, which can send, propagates or transmit, to be used for By instruction execution system, device either device use or program in connection.Included on computer-readable medium Program code can be transmitted with any appropriate medium, be included but is not limited to:Wirelessly, electric wire, optical cable, RF etc., or it is above-mentioned Any appropriate combination.
Flow chart and block diagram in accompanying drawing, it is illustrated that according to the system of various embodiments of the invention, method and computer journey Architectural framework in the cards, function and the operation of sequence product.At this point, each square frame in flow chart or block diagram can generation The part of one module of table, program segment or code, a part for above-mentioned module, program segment or code include one or more For realizing the executable instruction of defined logic function.It should also be noted that some as replace realization in, institute in square frame The function of mark can also be with different from the order marked in accompanying drawing generation.For example, two square frames succeedingly represented are actual On can perform substantially in parallel, they can also be performed in the opposite order sometimes, and this is depending on involved function.Also It is noted that the combination of each square frame and block diagram in block diagram or flow chart or the square frame in flow chart, can use and perform rule Fixed function or the special hardware based system of operation are realized, or can use the group of specialized hardware and computer instruction Close to realize.
Being described in module involved in the embodiment of the present invention can be realized by way of software, can also be by hard The mode of part is realized.Described module can also be set within a processor, for example, can be described as:A kind of processor bag Include generation module and calling module.Wherein, the title of these modules does not form the limit to the module in itself under certain conditions It is fixed, for example, calling module is also described as " state data file generated according to page data being pushed into front end services The module of device ".
As on the other hand, present invention also offers a kind of computer-readable medium, the computer-readable medium can be Included in equipment described in above-described embodiment;Can also be individualism, and without be incorporated the equipment in.Above-mentioned calculating Machine computer-readable recording medium carries one or more program, when said one or multiple programs are performed by the equipment, makes Obtaining the equipment includes:Step S101:State data file is generated according to page data, and is pushed to front-end server;Step S102:The state data file of front-end server is called when the service request of user occurs abnormal, and based on static data text The part generation page is shown.
Technical scheme according to embodiments of the present invention, because generating state data file using according to page data, and push away It is sent to front-end server;The state data file of front-end server is called when the service request of user occurs abnormal, and is based on The state data file generation page is shown technological means, so overcome front end page and the back-end services degree of coupling is too high, By this pattern of template engine nesting template, when big flow or heavy load, web station system is easily caused There is the machine of delaying in back-end services, so as to cause front end page can not normal presentation technical problem, and then front and back end separation reduce The degree of coupling of front and back end, make front end engineer change before the page when no longer need to be adjusted by rear end engineer again, reduce Repetitive work;Simultaneously as the situation that the page can not normally show can be avoided the occurrence of using static bottom-line plan, carry The technique effect of high Consumer's Experience.
Above-mentioned embodiment, does not form limiting the scope of the invention.Those skilled in the art should be bright It is white, depending on design requirement and other factors, various modifications, combination, sub-portfolio and replacement can occur.It is any Modifications, equivalent substitutions and improvements made within the spirit and principles in the present invention etc., should be included in the scope of the present invention Within.

Claims (14)

  1. A kind of 1. method of displayed page, it is characterised in that including:
    State data file is generated according to page data, and is pushed to front-end server;
    The state data file of the front-end server is called when the service request of user occurs abnormal, and based on described The state data file generation page is shown.
  2. 2. according to the method for claim 1, it is characterised in that generating state data file according to page data includes:
    The state data file is generated according to the page data of back-end server;And
    The back-end server is monitored, when the page data of the back-end server changes, according to change The page data after change regenerates the state data file.
  3. 3. according to the method for claim 2, it is characterised in that generating the state data file includes:
    The page data is input in generation static data script, it is described to generate to perform the generation static data script State data file.
  4. 4. according to the method for claim 2, it is characterised in that carrying out monitoring to the back-end server includes:
    Monitoring information queue, when the page data of the back-end server changes, the back-end server is to institute State message queue and send page data change message.
  5. 5. according to the method for claim 1, it is characterised in that when user service request occur it is abnormal when call it is described before Hold includes before the state data file of server:
    The service request of user is sent to back end interface to obtain page data;
    The back end interface inquires about the rear end caching system of back-end server according to the service request, if rear end caching system The page data in system be present, then call the page data in the rear end caching system to return to the front end services Device;If the page data is not present in the rear end caching system, the institute in the back-end data base of back-end server is read State page data and return to the front-end server.
  6. 6. according to the method for claim 5, it is characterised in that
    The page data of no requirement of real-time is stored with the rear end caching system.
  7. A kind of 7. device of displayed page, it is characterised in that including:
    Generation module, for generating state data file according to page data, and it is pushed to front-end server;
    Calling module, for calling the static data text of the front-end server when the service request of user occurs abnormal Part, and be shown based on the state data file generation page.
  8. 8. device according to claim 7, it is characterised in that the generation module is additionally operable to:
    The state data file is generated according to the page data of back-end server;And
    The back-end server is monitored, when the page data of the back-end server changes, according to change The page data after change regenerates the state data file.
  9. 9. device according to claim 8, it is characterised in that the generation module is further used for:
    The page data is input in generation static data script, it is described to generate to perform the generation static data script State data file.
  10. 10. device according to claim 8, it is characterised in that the generation module is further used for:
    Monitoring information queue, when the page data of the back-end server changes, the back-end server is to institute State message queue and send page data change message.
  11. 11. device according to claim 7, it is characterised in that described device also includes:
    Sending module, for the service request of user to be sent to back end interface to obtain page data;
    Enquiry module, the rear end caching system of back-end server is inquired about according to the service request for the back end interface, if The page data be present in the rear end caching system, then call the page data in the rear end caching system to return To the front-end server;If the page data is not present in the rear end caching system, after reading back-end server The page data in client database returns to the front-end server.
  12. 12. device according to claim 11, it is characterised in that
    The page data of no requirement of real-time is stored with the rear end caching system.
  13. A kind of 13. electronic equipment of displayed page, it is characterised in that including:
    One or more processors;
    Storage device, for storing one or more programs,
    When one or more of programs are by one or more of computing devices so that one or more of processors are real The now method as described in any in claim 1-6.
  14. 14. a kind of computer-readable medium, is stored thereon with computer program, it is characterised in that described program is held by processor The method as described in any in claim 1-6 is realized during row.
CN201711083265.2A 2017-11-07 2017-11-07 The method and apparatus of displayed page Pending CN107862044A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711083265.2A CN107862044A (en) 2017-11-07 2017-11-07 The method and apparatus of displayed page

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711083265.2A CN107862044A (en) 2017-11-07 2017-11-07 The method and apparatus of displayed page

Publications (1)

Publication Number Publication Date
CN107862044A true CN107862044A (en) 2018-03-30

Family

ID=61701075

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711083265.2A Pending CN107862044A (en) 2017-11-07 2017-11-07 The method and apparatus of displayed page

Country Status (1)

Country Link
CN (1) CN107862044A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108536805A (en) * 2018-04-04 2018-09-14 平安科技(深圳)有限公司 web access method and device
CN109815430A (en) * 2018-11-30 2019-05-28 北京金山云网络技术有限公司 Request processing method, device, data processing server and readable storage medium storing program for executing
CN110377283A (en) * 2019-07-08 2019-10-25 北京亚鸿世纪科技发展有限公司 The realization of front end valid data and synchronous method when the separation exploitation of the front and back end Web
CN111199000A (en) * 2019-12-02 2020-05-26 中国建设银行股份有限公司 Method and device for processing request
CN112596955A (en) * 2020-12-28 2021-04-02 山西云时代研发创新中心有限公司 Emergency processing system and method for processing large-scale system emergency in cloud computing
CN112751708A (en) * 2020-12-29 2021-05-04 锐捷网络股份有限公司 Network management method and system based on TR069 protocol
CN112995723A (en) * 2019-12-12 2021-06-18 中兴通讯股份有限公司 EPG data management method, server and readable storage medium
CN113254914A (en) * 2021-04-24 2021-08-13 中电长城网际系统应用广东有限公司 Front-end and back-end synchronous management method and system based on visual display

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6941512B2 (en) * 2001-09-10 2005-09-06 Hewlett-Packard Development Company, L.P. Dynamic web content unfolding in wireless information gateways
CN102045189A (en) * 2009-10-16 2011-05-04 中国移动通信集团北京有限公司 Network management system and method
CN103428243A (en) * 2012-05-21 2013-12-04 阿里巴巴集团控股有限公司 Implementation method, device and system for static storage of dynamic webpage
CN106156231A (en) * 2015-04-24 2016-11-23 阿里巴巴集团控股有限公司 A kind of website disaster recovery method, Apparatus and system
CN106202322A (en) * 2016-06-30 2016-12-07 乐视控股(北京)有限公司 A kind of page generation method and device
CN106407341A (en) * 2016-09-05 2017-02-15 努比亚技术有限公司 Page processing method, apparatus and system
CN106886530A (en) * 2015-12-16 2017-06-23 天脉聚源(北京)科技有限公司 A kind of dynamic data distinguishes editing and updating method and system
CN107229633A (en) * 2016-03-24 2017-10-03 北京神州泰岳软件股份有限公司 Static page generation method, Web access method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6941512B2 (en) * 2001-09-10 2005-09-06 Hewlett-Packard Development Company, L.P. Dynamic web content unfolding in wireless information gateways
CN102045189A (en) * 2009-10-16 2011-05-04 中国移动通信集团北京有限公司 Network management system and method
CN103428243A (en) * 2012-05-21 2013-12-04 阿里巴巴集团控股有限公司 Implementation method, device and system for static storage of dynamic webpage
CN106156231A (en) * 2015-04-24 2016-11-23 阿里巴巴集团控股有限公司 A kind of website disaster recovery method, Apparatus and system
CN106886530A (en) * 2015-12-16 2017-06-23 天脉聚源(北京)科技有限公司 A kind of dynamic data distinguishes editing and updating method and system
CN107229633A (en) * 2016-03-24 2017-10-03 北京神州泰岳软件股份有限公司 Static page generation method, Web access method and device
CN106202322A (en) * 2016-06-30 2016-12-07 乐视控股(北京)有限公司 A kind of page generation method and device
CN106407341A (en) * 2016-09-05 2017-02-15 努比亚技术有限公司 Page processing method, apparatus and system

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108536805A (en) * 2018-04-04 2018-09-14 平安科技(深圳)有限公司 web access method and device
CN109815430A (en) * 2018-11-30 2019-05-28 北京金山云网络技术有限公司 Request processing method, device, data processing server and readable storage medium storing program for executing
CN109815430B (en) * 2018-11-30 2020-07-31 北京金山云网络技术有限公司 Request processing method and device, data processing server and readable storage medium
CN110377283B (en) * 2019-07-08 2022-10-11 北京亚鸿世纪科技发展有限公司 Method for realizing and synchronizing front-end effective data during Web front-end and back-end separation development
CN110377283A (en) * 2019-07-08 2019-10-25 北京亚鸿世纪科技发展有限公司 The realization of front end valid data and synchronous method when the separation exploitation of the front and back end Web
CN111199000A (en) * 2019-12-02 2020-05-26 中国建设银行股份有限公司 Method and device for processing request
CN111199000B (en) * 2019-12-02 2023-10-27 建信金融科技有限责任公司 Method and device for processing request
CN112995723A (en) * 2019-12-12 2021-06-18 中兴通讯股份有限公司 EPG data management method, server and readable storage medium
CN112995723B (en) * 2019-12-12 2023-09-22 中兴通讯股份有限公司 EPG data management method and EPG server
CN112596955A (en) * 2020-12-28 2021-04-02 山西云时代研发创新中心有限公司 Emergency processing system and method for processing large-scale system emergency in cloud computing
CN112596955B (en) * 2020-12-28 2024-06-18 山西云时代研发创新中心有限公司 Emergency processing system and method for processing large-scale system emergency in cloud computing
CN112751708A (en) * 2020-12-29 2021-05-04 锐捷网络股份有限公司 Network management method and system based on TR069 protocol
CN112751708B (en) * 2020-12-29 2023-05-23 锐捷网络股份有限公司 Network management method and system based on TR069 protocol
CN113254914A (en) * 2021-04-24 2021-08-13 中电长城网际系统应用广东有限公司 Front-end and back-end synchronous management method and system based on visual display

Similar Documents

Publication Publication Date Title
CN107862044A (en) The method and apparatus of displayed page
CN110019350A (en) Data query method and apparatus based on configuration information
CN107609890A (en) A kind of method and apparatus of order tracking
CN110442608A (en) Information processing method, device, electronic equipment, medium and system
JP2021103506A (en) Method and device for generating information
CN110262807A (en) Cluster creates Progress Log acquisition system, method and apparatus
CN107844324A (en) Customer terminal webpage redirects treating method and apparatus
CN110020329A (en) For generating the methods, devices and systems of webpage
CN107679897A (en) A kind of security risk control method and device
CN110427304A (en) O&M method, apparatus, electronic equipment and medium for banking system
CN109992406A (en) The method and client that picture requesting method, response picture are requested
CN110020304A (en) A kind of method and apparatus of loading page
CN109961331A (en) Page processing method and its system, computer system and readable storage medium storing program for executing
US20240126417A1 (en) Method, form data processing method, apparatus, and electronic device for form generation
CN107656748A (en) Using the method and apparatus of issue
CN109582317A (en) Method and apparatus for debugging boarding application
CN107784076A (en) The method and apparatus of visualization structure user behavior data
CN110070394A (en) Data processing method, system, medium and calculating equipment
CN110019242A (en) Processing method, device and system for tables of data
CN107357526A (en) For the method and apparatus of network data, server and storage medium
CN110223179A (en) The data processing method of fund, device, system, medium
CN110020349A (en) The method and device of page rendering
CN107347093A (en) Collocation method and device for distributed server system
CN107291923A (en) Information processing method and device
CN107741970A (en) Method and apparatus for being laid out to homepage

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20180330

RJ01 Rejection of invention patent application after publication