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

Short link generation method and device

Pending Publication Date: 2021-05-11
BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1
View PDF0 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0011] In view of this, the embodiments of the present invention provide a method and device for generating short links, which can at least solve the problems in the prior art that the collision probability of short links is high and the resources for maintaining long and short link indexes are relatively wasteful.

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 generation method and device
  • Short link generation method and device
  • Short link generation method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0063] Exemplary embodiments of the present invention are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present invention to facilitate understanding, and they should be regarded as exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.

[0064] It should be noted that the embodiment of the present invention is applicable to all websites, or all scenarios related to the use of links, such as Weibo, WeChat, and mobile phone text messages.

[0065] Generally, the storage capacity of the system for maintaining short link services is huge, and short links are a trend, and will gradually replace particularly lon...

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 generation method and device, and relates to the technical field of computers. A specific embodiment of the method comprises the following steps: receiving a short link generation request; wherein the short link generation request comprises a long link; obtaining a number range and current allocated number information, and obtaining a number allocated to the short link generation request in combination with a predetermined number allocation mode; determining a number plate corresponding to the number, and generating a short link corresponding to the long link in combination with the protocol and the domain name in the long link. According to the embodiment, the to-be-distributed number is stored and maintained through the single machine, wherein single machine sending is achieved through cluster random distribution, then short links are generated through pseudo-random number allocation; therefore, the situation of short link collision is avoided on the whole, and the problem that short link characters are continuous is solved.

Description

technical field [0001] The present invention relates to the field of computer technology, in particular to a short link generation method and device. Background technique [0002] Short URL service, in simple terms, is to convert a very long URL address (Uniform Resource Locator, uniform resource locator) into a relatively short address and still be used normally, so that users can share links more easily, avoiding line breaks or Exceeding the character limit. [0003] There are two main methods for generating short links: [0004] 1) Message Digest Algorithm MD5 (Message Digest Algorithm MD5, the fifth edition of Message Digest Algorithm): Generate a 32-bit signature string from a long link and divide it into 4 segments, each segment is 1 byte (that is, 8 bits), and then enter it through 16 Obtain the alphabet index through system conversion complement, and then generate a 6-digit short link; [0005] 2) Sequential mapping is used, that is, it is relatively simple to gen...

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 Applications(China)
IPC IPC(8): G06F16/955G06F7/58G06F21/60G06F16/27
CPCG06F7/582G06F21/602G06F16/27G06F16/9558
Inventor 王建波李山林王金川
Owner BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD
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