A method and apparatus for accessing data through cache and CDN
The invention discloses a method and a device for accessing data through a cache and a CDN. The method comprises: responding to a data request transmitted from a client, querying a CDN file in each CDN server to judge whether the latest CDN file exists; If yes, locking the target CDN server, and dec...
Gespeichert in:
Hauptverfasser: | , , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention discloses a method and a device for accessing data through a cache and a CDN. The method comprises: responding to a data request transmitted from a client, querying a CDN file in each CDN server to judge whether the latest CDN file exists; If yes, locking the target CDN server, and decrypting the node service data and returning to the client; otherwise, performing the following steps; reading the corresponding latest data from the database according to the data request; transmitting the latest data to an interpreter so that the interpreter interprets the latest data into a CDN distributable file format to obtain the latest CDN file; transmitting the latest CDN file to the middle-layer server so that the middle-layer server encrypts the latest CDN file and distributes it to each CDN server. The method and the device can reduce the workload of the server to generate the cache repeatedly without changing the processing mode of the existing CDN operator, and improve the access efficiency of users at |
---|