Short link address generating method and system thereof

A technology for generating addresses and linking addresses, which is applied in transmission systems, electrical components, etc., can solve problems such as easy collisions and low system availability, and achieve the effects of improving availability, improving retrieval conversion speed, and avoiding increased possibility of collisions

Inactive Publication Date: 2017-02-15
沈阳东软睿道教育服务有限公司
View PDF0 Cites 19 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0009] The present invention provides a short link address generation method and system to solve the technical problem tha...

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
  • Short link address generating method and system thereof
  • Short link address generating method and system thereof
  • Short link address generating method and system thereof

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0045] The first preferred embodiment of the present invention provides a short link address generation method, which is based on an incremental short link address generation method that generates a short link resource pool by specifying a character set, effectively avoiding problems caused by too small a value range of the hash function. The problem of increased collision probability. refer to figure 1 , the present embodiment short link address generation method comprises:

[0046] Step S101, receiving a link address translation request, and generating a corresponding hash value from the original URL based on a hash algorithm;

[0047] As a preferred manner, after receiving the link address conversion request sent by the client, the server uses the MD5 hash algorithm to generate a hash value based on the original URL.

[0048] Step S102, judging whether there is a short link address matching the hash value in the memory cache, if so, execute step S103, otherwise execute st...

Embodiment 2

[0059] The difference between the second embodiment and the first embodiment is that the short link address generation method in the second embodiment also includes monitoring the resource consumption of the short link resource pool, including:

[0060] Determine whether the resource consumption of the short link resource pool reaches the threshold, and if so, start a resource consumption alarm, and manually or automatically expand the resources of the short link resource pool.

[0061] refer to image 3 , the management of the short link resource pool in this embodiment includes:

[0062] Step S301, selecting the coded character set corresponding to the short link address;

[0063] This coded character set conforms to the URL encoding rules and has no special meaning characters. For details, please refer to the RFC3986 file. As a better method, the 62 characters of 'A~Z', 'a~z', and '0~9' are used as the coded character set of the unique identification string of the short l...

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 invention discloses a short link address generating method and a system thereof. The method comprises the following steps of receiving a link address conversion request and generating a corresponding Hash value for an original URL based on a Hash algorithm; determining whether a memory cache has a short link address matching with the Hash value, and if the memory cache has the short link address, directly returning the short link address; otherwise, taking one resource from a short link resource pool to generate the short link address, and returning the newly-generated short link address and storing in the memory cache, wherein the short link resource pool is created according to a generation strategy corresponding to a short link address resource demand; the generation strategy includes a selected coding character set and an only identification character string length corresponding to the short link address; and the short link resource pool carries out resource expansion through changing the only identification character string length. In the invention, a short link address retrieval conversion speed is increased and a problem that a collision possibility is increased because a value domain of a Hash function is too small is effectively avoided so that system availability is increased.

Description

technical field [0001] The invention relates to the field of instant messaging, in particular to a method and system for generating short link addresses. Background technique [0002] In Internet applications, application scenarios based on content sharing, dissemination, and acquisition are ubiquitous. In particular, the wide application of social networking services makes information dissemination based on user relationships more convenient. However, this method of information dissemination generally has the problem of character limit. In order to carry more information, a short URL (Uniform Resource Locator: Uniform Resource Locator) link address is usually added to the shared content to reduce the problem of the effective word count caused by the target URL being too long. [0003] The short URL service can shorten a long URL, making it convenient for users to share links on social networks, Weibo or even mobile phone text messages. For example, you can put a long URL...

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
IPC IPC(8): H04L29/12
CPCH04L61/2503H04L2101/672
Inventor 郑东哲孙进保
Owner 沈阳东软睿道教育服务有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products