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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com