CN105718291A - Multi-level cache acceleration method for mixing desktop applications - Google Patents

Multi-level cache acceleration method for mixing desktop applications Download PDF

Info

Publication number
CN105718291A
CN105718291A CN201610047001.0A CN201610047001A CN105718291A CN 105718291 A CN105718291 A CN 105718291A CN 201610047001 A CN201610047001 A CN 201610047001A CN 105718291 A CN105718291 A CN 105718291A
Authority
CN
China
Prior art keywords
data
change
data source
completing
accelerated method
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.)
Granted
Application number
CN201610047001.0A
Other languages
Chinese (zh)
Other versions
CN105718291B (en
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.)
SHANDONG CONTINUOUS INNOVATION NETWORK TECHNOLOGY Co.,Ltd.
Original Assignee
SHANDONG LANCHUANG NETWORK 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 SHANDONG LANCHUANG NETWORK TECHNOLOGY Co Ltd filed Critical SHANDONG LANCHUANG NETWORK TECHNOLOGY Co Ltd
Priority to CN201610047001.0A priority Critical patent/CN105718291B/en
Publication of CN105718291A publication Critical patent/CN105718291A/en
Application granted granted Critical
Publication of CN105718291B publication Critical patent/CN105718291B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a multi-level cache acceleration method for mixing desktop applications.A three-layer framework mode is adopted in the multi-level cache acceleration method, and a three-layer framework comprises an interaction logic layer, an original framework and a data access layer.The multi-level cache acceleration method includes the step that operation is conducted by a client, and when a data source data of a server is changed, cache updating is conducted in real time.The method has the advantages that loads are reduced, the use amount of bandwidths is reduced, access speed is increased, and user experience is improved.

Description

A kind of multi-level buffer accelerated method mixing desktop application
Technical field
The present invention relates to a kind of multi-level buffer accelerated method mixing desktop application, belong to field of computer technology.
Background technology
Instantly, most desktop application clients are all save the data in data base, service server read data from data base, and show in the application.But it is as the increase of data volume, accesses and increase, arise that application display delay, and take substantial amounts of bandwidth, the problems such as system response is slow, response speed is proposed higher requirement.
Summary of the invention
The technical problem to be solved in the present invention is for above-mentioned deficiency, it is provided that a kind of multi-level buffer accelerated method mixing desktop application, has and reduces load, reduces the consumption that makes of bandwidth, accelerates access speed, the advantage improving Consumer's Experience.
For solve problem above, the present invention by the following technical solutions: a kind of multi-level buffer accelerated method mixing desktop application, described multi-level buffer accelerated method adopt three-tier architecture pattern.
Further, described three-tier architecture includes interaction logic layer, primary framework and data access layer.
Further, described multi-level buffer accelerated method includes client operation step, client and interaction logic layer, encapsulates service logic and sets up internal memory Cache when user logs in, the content that storage user is browsed, discharges resource after exiting.
Further, described client operation step comprises the following steps:
Start from step S101, trigger interaction logic layer data more new events, after completing, enter step S102;
Step S102, receives interaction logic layer data and updates after Event trigger, and interaction logic layer is loading data refresh presentation layer from the internal memory Cache of self first, enters step S103 after completing;
Step S103, refreshing presentation layer, simultaneously to initiate data to primary framework more newly requested, primary framework receive more newly requested after, first similar more newly requested merging is carried out, guaranteeing in regular hour interval, Exactly-once updates operation, enters step S104 after completing.
Further, described client operation step is further comprising the steps of:
Step S104, primary framework, when performing to update operation, first obtains data from local data source and compares, performing step S105, sends data to remote data source agency more newly requested simultaneously, enters step S107 after completing;
The data of change are returned to interaction logic layer by step S105, enter step S106 after completing;
Step S106, interaction logic layer updates the internal memory Cache of self and refreshes presentation layer, enters step S109 after completing.
Further, described client operation step is further comprising the steps of:
Step S107, remote data source agency receive more newly requested after, the change data in the internal memory Cache of self are returned to mutual primary framework, after after complete, enter step S108;
Step S108, primary framework, after receiving the change data that remote data source agency returns, is first updated to local data source, then performs step S105, these change data are returned to interaction logic layer.
Step S109, client operation step terminates.
Further, when the servers' data source data that also includes described multi-level buffer accelerated method changes, carry out the step of buffer update, service end and data access layer in real time, application data source agency replaces local data source and the primary framework of client to carry out communication, deposits in service server.
Further, the described step carrying out buffer update in real time comprises the following steps:
Start from step S201, complete to enter step S202;
Step S202, remote data source is changed and carries out monitor in real time by remote data source agency, enters step S203 after completing;
Step S203, checks whether remote data source occurs data to change, if occurring data to change, then performing step S204, otherwise returning and performing step S202.
Further, the described step carrying out buffer update in real time is further comprising the steps of:
Step S204, remote data source agency is updated to the internal memory Cache of self by changing data, and performs step S202 after labelling agent update state, will change data simultaneously and send to primary framework, and enter step S205 after completing;
Step S205, checks that whether client is online, and performs step S202 after labelling client more new state, if client is online, then performs step S206, if client is not online, returns and perform step S202.
Further, the described step carrying out buffer update in real time is further comprising the steps of:
Step S206, change data, after receiving change request of data, are updated in the internal memory Cache of self, change data are sent to interaction logic layer simultaneously, perform step S207 after completing by primary framework.
Step S207, change data, after receiving change request of data, are updated in the internal memory Cache of self by interaction logic layer.
The present invention adopts above technical scheme, and prior art ratio, has the advantage that
1, can accelerating the response speed of data object operation request, average amount 20MBytes, when not using this method, average loading and response time are 40s, and after using this method, average loading with response time is 2s, and speed promotes 20 times.
2, reducing application occupied bandwidth as far as possible, and access the frequency of disk, when not using this method bright, each event update all can trigger disk access and network communication;After using this method, after data change, only trigger disk access and network communication.
3, improving systematic function, after using this method, event update postpones to be reduced to 0.5s by 5s, improves 10 times.
4, following various mixing desktop application system is met to system response time and the requirement reducing bandwidth.
Below in conjunction with drawings and Examples, the present invention will be further described.
Accompanying drawing explanation
The operation workflow figure of system when accompanying drawing 1 is user operation client in the embodiment of the present invention;
When accompanying drawing 2 is that in the embodiment of the present invention, servers' data source data changes, the present invention carries out the flow chart of buffer update in real time.
Detailed description of the invention
Embodiment, as shown in Figure 1 and Figure 2, a kind of multi-level buffer accelerated method mixing desktop application, this method adopts three-tier architecture pattern: interaction logic layer, primary framework and data access layer.
Client: interaction logic layer, encapsulates service logic and sets up internal memory Cache when user logs in, the content that storage user is browsed, discharges resource after exiting.
Primary framework, sets up local data source, locates reason interaction logic layer request data, provides data buffer storage simultaneously, accelerates data reading speed.
Service end: data access layer, application data source agency replaces local data source and the primary framework of client to carry out communication, deposits in service server.
Described multi-level buffer accelerated method includes client operation step, and client operation step is as follows:
Start from step S101, trigger interaction logic layer data more new events, after completing, enter step S102;
Step S102, receives interaction logic layer data and updates after Event trigger, and interaction logic layer is loading data refresh presentation layer from the internal memory Cache of self first, enters step S103 after completing;
Step S103, refreshing presentation layer, simultaneously to initiate data to primary framework more newly requested, primary framework receive more newly requested after, first similar more newly requested merging is carried out, guaranteeing in regular hour interval, Exactly-once updates operation, enters step S104 after completing;
Step S104, primary framework, when performing to update operation, first obtains data from local data source and compares, performing step S105, sends data to remote data source agency more newly requested simultaneously, enters step S107 after completing;
The data of change are returned to interaction logic layer by step S105, enter step S106 after completing;
Step S106, interaction logic layer updates the internal memory Cache of self and refreshes presentation layer, enters step S109 after completing;
Step S107, remote data source agency receive more newly requested after, the change data in the internal memory Cache of self are returned to mutual primary framework, after after complete, enter step S108;
Step S108, primary framework, after receiving the change data that remote data source agency returns, is first updated to local data source, then performs step S105, these change data are returned to interaction logic layer.
Step S109, client operation step terminates.
When the servers' data source data that also includes described multi-level buffer accelerated method changes, carrying out the step of buffer update in real time, the step carrying out buffer update in real time is as follows:
Start from step S201, complete to enter step S202;
Step S202, remote data source is changed and carries out monitor in real time by remote data source agency, enters step S203 after completing;
Step S203, checks whether remote data source occurs data to change, if occurring data to change, then performing step S204, otherwise returning and performing step S202;
Step S204, remote data source agency is updated to the internal memory Cache of self by changing data, and performs step S202 after labelling agent update state, will change data simultaneously and send to primary framework, and enter step S205 after completing;
Step S205, checks that whether client is online, and performs step S202 after labelling client more new state, if client is online, then performs step S206, if client is not online, returns and perform step S202;
Step S206, change data, after receiving change request of data, are updated in the internal memory Cache of self, change data are sent to interaction logic layer simultaneously, perform step S207 after completing by primary framework.
Step S207, change data, after receiving change request of data, are updated in the internal memory Cache of self by interaction logic layer.
The above is the citing of best mode for carrying out the invention, and the part wherein do not addressed in detail is the known general knowledge of those of ordinary skill in the art.Protection scope of the present invention is as the criterion with the content of claim, and the equivalent transformation that any technology based on the present invention is enlightened and carried out, also within protection scope of the present invention.

Claims (10)

1. the multi-level buffer accelerated method mixing desktop application, it is characterised in that: described multi-level buffer accelerated method adopts three-tier architecture pattern.
2. a kind of multi-level buffer accelerated method mixing desktop application as claimed in claim 1, it is characterised in that: described three-tier architecture includes interaction logic layer, primary framework and data access layer.
3. a kind of multi-level buffer accelerated method mixing desktop application as claimed in claim 2, it is characterized in that: described multi-level buffer accelerated method includes client operation step, client and interaction logic layer, encapsulate service logic and set up internal memory Cache when user logs in, the content that storage user is browsed, discharges resource after exiting.
4. a kind of multi-level buffer accelerated method mixing desktop application as claimed in claim 3, it is characterised in that: described client operation step comprises the following steps:
Start from step S101, trigger interaction logic layer data more new events, after completing, enter step S102;
Step S102, receives interaction logic layer data and updates after Event trigger, and interaction logic layer is loading data refresh presentation layer from the internal memory Cache of self first, enters step S103 after completing;
Step S103, refreshing presentation layer, simultaneously to initiate data to primary framework more newly requested, primary framework receive more newly requested after, first similar more newly requested merging is carried out, guaranteeing in regular hour interval, Exactly-once updates operation, enters step S104 after completing.
5. a kind of multi-level buffer accelerated method mixing desktop application as claimed in claim 3, it is characterised in that: described client operation step is further comprising the steps of:
Step S104, primary framework, when performing to update operation, first obtains data from local data source and compares, performing step S105, sends data to remote data source agency more newly requested simultaneously, enters step S107 after completing;
The data of change are returned to interaction logic layer by step S105, enter step S106 after completing;
Step S106, interaction logic layer updates the internal memory Cache of self and refreshes presentation layer, enters step S109 after completing.
6. a kind of multi-level buffer accelerated method mixing desktop application as claimed in claim 3, it is characterised in that: described client operation step is further comprising the steps of:
Step S107, remote data source agency receive more newly requested after, the change data in the internal memory Cache of self are returned to mutual primary framework, after after complete, enter step S108;
Step S108, primary framework, after receiving the change data that remote data source agency returns, is first updated to local data source, then performs step S105, these change data are returned to interaction logic layer;
Step S109, client operation step terminates.
7. a kind of multi-level buffer accelerated method mixing desktop application as claimed in claim 2, it is characterized in that: when described multi-level buffer accelerated method also includes the change of servers' data source data, carry out the step of buffer update in real time, service end and data access layer, application data source agency replaces local data source and the primary framework of client to carry out communication, deposits in service server.
8. a kind of multi-level buffer accelerated method mixing desktop application as claimed in claim 7, it is characterised in that: the described step carrying out buffer update in real time comprises the following steps:
Start from step S201, complete to enter step S202;
Step S202, remote data source is changed and carries out monitor in real time by remote data source agency, enters step S203 after completing;
Step S203, checks whether remote data source occurs data to change, if occurring data to change, then performing step S204, otherwise returning and performing step S202.
9. a kind of multi-level buffer accelerated method mixing desktop application as claimed in claim 7, it is characterised in that: the described step carrying out buffer update in real time is further comprising the steps of:
Step S204, remote data source agency is updated to the internal memory Cache of self by changing data, and performs step S202 after labelling agent update state, will change data simultaneously and send to primary framework, and enter step S205 after completing;
Step S205, checks that whether client is online, and performs step S202 after labelling client more new state, if client is online, then performs step S206, if client is not online, returns and perform step S202.
10. a kind of multi-level buffer accelerated method mixing desktop application as claimed in claim 7, it is characterised in that: the described step carrying out buffer update in real time is further comprising the steps of:
Step S206, change data, after receiving change request of data, are updated in the internal memory Cache of self, change data are sent to interaction logic layer simultaneously, perform step S207 after completing by primary framework;
Step S207, change data, after receiving change request of data, are updated in the internal memory Cache of self by interaction logic layer.
CN201610047001.0A 2016-01-25 2016-01-25 Multilevel cache acceleration method for mixed desktop application Active CN105718291B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610047001.0A CN105718291B (en) 2016-01-25 2016-01-25 Multilevel cache acceleration method for mixed desktop application

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610047001.0A CN105718291B (en) 2016-01-25 2016-01-25 Multilevel cache acceleration method for mixed desktop application

Publications (2)

Publication Number Publication Date
CN105718291A true CN105718291A (en) 2016-06-29
CN105718291B CN105718291B (en) 2020-07-07

Family

ID=56154025

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610047001.0A Active CN105718291B (en) 2016-01-25 2016-01-25 Multilevel cache acceleration method for mixed desktop application

Country Status (1)

Country Link
CN (1) CN105718291B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106951233A (en) * 2017-03-02 2017-07-14 广州天高软件科技有限公司 Mixed mode smart mobile phone application development framework
CN110321298A (en) * 2019-06-21 2019-10-11 北京奇艺世纪科技有限公司 A kind of time interval determines method, apparatus, electronic equipment and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101075241A (en) * 2006-12-26 2007-11-21 腾讯科技(深圳)有限公司 Method and system for processing buffer
CN101257485A (en) * 2007-03-02 2008-09-03 华为技术有限公司 Web applied system and method
CN101710327A (en) * 2009-12-04 2010-05-19 深圳创维数字技术股份有限公司 Method for caching local temporary files into embedded browser
CN102024032A (en) * 2010-11-29 2011-04-20 广州明朝网络科技有限公司 Distributed data caching and persisting method and system based on Erlang
CN103139224A (en) * 2011-11-22 2013-06-05 腾讯科技(深圳)有限公司 Network file system and method for accessing network file system
US20140337408A1 (en) * 2013-05-10 2014-11-13 Appsense Limited Systems, methods and media for minimizing data downloads

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101075241A (en) * 2006-12-26 2007-11-21 腾讯科技(深圳)有限公司 Method and system for processing buffer
CN101257485A (en) * 2007-03-02 2008-09-03 华为技术有限公司 Web applied system and method
CN101710327A (en) * 2009-12-04 2010-05-19 深圳创维数字技术股份有限公司 Method for caching local temporary files into embedded browser
CN102024032A (en) * 2010-11-29 2011-04-20 广州明朝网络科技有限公司 Distributed data caching and persisting method and system based on Erlang
CN103139224A (en) * 2011-11-22 2013-06-05 腾讯科技(深圳)有限公司 Network file system and method for accessing network file system
US20140337408A1 (en) * 2013-05-10 2014-11-13 Appsense Limited Systems, methods and media for minimizing data downloads

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106951233A (en) * 2017-03-02 2017-07-14 广州天高软件科技有限公司 Mixed mode smart mobile phone application development framework
CN106951233B (en) * 2017-03-02 2020-04-17 广州天高软件科技有限公司 Mixed-mode smart phone application development framework system
CN110321298A (en) * 2019-06-21 2019-10-11 北京奇艺世纪科技有限公司 A kind of time interval determines method, apparatus, electronic equipment and medium

Also Published As

Publication number Publication date
CN105718291B (en) 2020-07-07

Similar Documents

Publication Publication Date Title
US20170192819A1 (en) Method and electronic device for resource allocation
US8886787B2 (en) Notification for a set of sessions using a single call issued from a connection pool
CN103078933B (en) A kind of method and apparatus determining data migration time
CN102571940A (en) Remote application installation system, method, intelligent terminal and application server
CN104504106A (en) Map covering region rendering method and related equipment
WO2020019313A1 (en) Graph data updating method, system, computer readable storage medium, and device
CN104144202B (en) Access method, system and the device of Hadoop distributed file system
CN109067903B (en) Cloud platform cascade system
CN103581111A (en) Communication method and system
US11561812B2 (en) Network policy and flow state save/restore for highly available servicing
CN102193806B (en) Upgrade the method and apparatus of animation
CN108227895A (en) One kind puts out screen display methods and terminal, computer installation and readable storage medium storing program for executing
CN112698793B (en) Data storage method, device, machine-readable medium and equipment
CN105718291A (en) Multi-level cache acceleration method for mixing desktop applications
Choi et al. Improving database system performance by applying NoSQL
CN102594859A (en) Presenting method, terminal, server and system of business data
CN113515237A (en) Edge node capacity expansion method and device, edge node and program product
CN102917036A (en) Memcached-based distributed cache data synchronization realization method
CN205142283U (en) Multi -platform data sharing system
CN110383254A (en) Optimize memory mapping associated with network node
CN104714923A (en) Method and device for achieving equipment sharing
CN106776698A (en) Ticket information method for refreshing and system based on optimization caching
CN106550021A (en) The method for pushing and device of PUSH message
CN105357306A (en) Multi-platform data sharing system and data sharing method therefor
CN104216707A (en) Unified management method supporting multiple management modes

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 261061 second floor, No.155, hatching Er lane, Weifang High tech Zone, Weifang City, Shandong Province

Patentee after: SHANDONG CONTINUOUS INNOVATION NETWORK TECHNOLOGY Co.,Ltd.

Address before: 261061, Shandong, Weifang province hi tech Zone, Kim Road, North First incubator, two lane, the first accelerator 2 floor, Room 215

Patentee before: SHANDONG LANCHUANG NETWORK TECHNOLOGY Co.,Ltd.