Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Reverse proxy method and device, electronic device, storage medium

A technology of reverse proxy and electronic equipment, applied in the direction of electrical components, electrical digital data processing, special data processing applications, etc., can solve problems such as inability to obtain data, ease of use discounts, and differences in data uniformity, so as to reduce learning and cost of use, the effect of increased ease of use and flexibility

Active Publication Date: 2021-04-13
携程旅游信息技术(上海)有限公司
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] Existing distributed object storage (such as Ceph) has great advantages over traditional storage services in terms of security, availability, and scalability, but there are still certain problems in terms of ease of use and flexibility
[0003] In terms of ease of use, object storage services have a set of built-in object (data) reading, writing, and authentication processes, which leads to users having to use the provided application programming interface to complete data access. Even for users with a technical background, a certain amount of interface learning costs must be paid. If the implementation of the interface does not provide a computer language that users are familiar with, the process of learning, developing and finally using the computer language will be longer. , greatly compromised in ease of use
[0004] In terms of flexibility, companies with a certain scale now have more than one data center, and each data center is equipped with a set of storage services. For the sake of speed, it is necessary to build a set of synchronization services between storage services, but Because of various potential problems in network transmission, there will be differences in data uniformity, which leads to the fact that the same application deployed in different data centers cannot get the latest data from local storage in time

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Reverse proxy method and device, electronic device, storage medium
  • Reverse proxy method and device, electronic device, storage medium
  • Reverse proxy method and device, electronic device, storage medium

Examples

Experimental program
Comparison scheme
Effect test

no. 1 example

[0051]The user can request a file stored in the data center 130a (or 130b) by the browser 111 on the electronic device 110.

[0052]Step S210: The script module 121 receives the file request information transmitted from the browser 111 on the electronic device 110. The file request information includes a file name and a file path. For example, the file request information can be the "Test / Test.txt" that the user entered in the browser address bar, where Test.txt is the file name, TEST / for the file path.

[0053]Step S220: The script module 121 can determine the data center (e.g., data center 130a) where the file is located according to the file request information.

[0054]Step S230: The script module 121 acquires the username and key of accessing the data center 130A in the configuration file 122.

[0055]Step S240: The script module 121 encrypts the file request information, the username, and key to generate a token.

[0056]Step S250: The script module 121 generates an access address of the...

no. 2 example

[0060]The user can request a file via the application 112 on the electronic device 110. The user has a username and password accessing the data center 130A. The file has not been synchronized from the source data center 130b to the data center 130a. Alternatively, the data center 130a is closer to the electronic device operating in the data center 130b at the physical distance / routing distance.

[0061]Step S210: The script module 121 receives the file request information transmitted from the application 112 on the electronic device 110. The file request information includes a file name, a file path, a username and password of the data center 130a.

[0062]Step S220: The script module 121 can determine if the file is stored in the data center 130A based on the username and password of the access data center 130a. Since the file has not synchronized from the source data center 130B to the data center 130a, step S220 can determine the source data center 130b as the data center to obtain t...

no. 3 example

[0069]In the present embodiment, the same file is splitted in the data center 130A and 130B, and the user only has a username and password accessing one of the data centers (e.g., data center 130a).

[0070]Step S210: The script module 121 receives the file request information transmitted from the application 112 on the electronic device 110. The file request information includes a file name, a file path, a username and password of the data center 130a.

[0071]Step S220: The script module 121 can extract some of the data stored in the data center 130a based on the username and password of the access data center 130a, and determine the data center 130b as the data center to obtain the file.

[0072]Step S230: The script module 121 acquires the username and key of accessing the data center 130b in the configuration file 122.

[0073]Step S240: The script module 121 encrypts the file request information, the username, and key to generate a token.

[0074]Step S250: The script module 121 generates an...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The present invention provides a reverse proxy method and device, electronic equipment, and storage media. The reverse proxy method based on object storage includes: receiving file request information, the file request information is used to obtain files, and the file request information includes at least File name and file path; Determine the data center where the file is located; Obtain the user name and key for accessing the determined data center from a configuration file, and the user name and password for accessing one or more data centers are stored in the configuration file ; encrypt the file request information, the user name and the key to generate a token; generate an access address to access the determined data center, the access address includes the token; access the determined data according to the access address The center verifies the token for the determined data center, extracts the file from the determined data center. The method and device provided by the invention realize automatic file acquisition.

Description

Technical field[0001]The present invention relates to the field of computer applications, in particular to a reverse proxy method and apparatus, an electronic device, and a storage medium.Background technique[0002]Existing distributed object storage (such as Ceph) has a great advantage in terms of security, availability, and scalability, but there is still a certain issue in terms of ease and flexibility.[0003]With regard to ease of use, the object storage service has a set of self-contained objects (data) read, write, and authentication processes, which lead to the user must use the application programming interface provided to complete the data. Even for users with technical background, there should be a certain interface learning cost. If the implementation of its interface does not provide the computer language familiar to the user, the process of learning to the computer language, the process of developing to the end can be used longer It is easy to use.[0004]Regarding the flex...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): H04L29/08H04L9/32H04L9/08G06F21/62G06F16/14G06F16/182
Inventor 杨均益
Owner 携程旅游信息技术(上海)有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products