CN116938871B - Domain name short code determining method and device, storage medium and electronic device - Google Patents

Domain name short code determining method and device, storage medium and electronic device Download PDF

Info

Publication number
CN116938871B
CN116938871B CN202311202298.XA CN202311202298A CN116938871B CN 116938871 B CN116938871 B CN 116938871B CN 202311202298 A CN202311202298 A CN 202311202298A CN 116938871 B CN116938871 B CN 116938871B
Authority
CN
China
Prior art keywords
short code
target
domain name
server
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202311202298.XA
Other languages
Chinese (zh)
Other versions
CN116938871A (en
Inventor
唐仕良
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Wooden House Times Technology Co ltd
Original Assignee
Beijing Wooden House Times Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Wooden House Times Technology Co ltd filed Critical Beijing Wooden House Times Technology Co ltd
Priority to CN202311202298.XA priority Critical patent/CN116938871B/en
Publication of CN116938871A publication Critical patent/CN116938871A/en
Application granted granted Critical
Publication of CN116938871B publication Critical patent/CN116938871B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/30Managing network names, e.g. use of aliases or nicknames
    • H04L61/301Name conversion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the application provides a method and a device for determining a domain name short code, a storage medium and an electronic device, and relates to the technical field of short link conversion technology. The method comprises the following steps: acquiring a target domain name; performing short code conversion processing on the target domain name through a preset first algorithm to obtain a first short code; and performing personalized processing on the first short code according to a preset first rule to obtain a target short code. The application solves the problem of higher use cost of the long domain name, thereby achieving the effects of reducing the use cost of the long domain name and improving the response efficiency of the system.

Description

Domain name short code determining method and device, storage medium and electronic device
Technical Field
The embodiment of the application relates to the technical field of domain name short link conversion, in particular to a method and a device for determining a domain name short code, a storage medium and an electronic device.
Background
At present, the Internet rapidly develops, all enterprise applications are not separated from the network, and the network sharing links form an indispensable part of life.
The existing network domain name is generally longer in length, so that the problem of difficulty in memorization exists, and particularly when domain name sharing is performed, other parameters are included, so that the sharing cost is increased; meanwhile, the too long domain name causes that the short message sends too long URL (Uniform Resource Locator ) to increase the cost of the short message by more than 69 characters (usually according to 2 short messages for charging), and the enterprise cost is increased.
Disclosure of Invention
The embodiment of the application provides a method and a device for determining a domain name short code, which are used for at least solving the problem of high use cost caused by overlong network domain names in the related technology.
According to an embodiment of the present application, there is provided a domain name short code determining method, including:
acquiring a target domain name;
performing short code conversion processing on the target domain name through a preset first algorithm to obtain a first short code;
and carrying out personalized processing on the first short code according to a preset first rule to obtain a target short code, wherein the target short code comprises a time stamp of a target domain name and/or conversion information after data conversion processing is carried out on service request parameters.
In an exemplary embodiment, the personalizing the first short code according to a preset first rule to obtain a target short code includes:
acquiring alias information of the target domain name according to the first rule;
and based on the alias information, performing splicing processing on the first short code to obtain the target short code.
In an exemplary embodiment, the performing, based on the alias information, a concatenation process on the first short code to obtain the target short code includes:
acquiring a time stamp and/or a service request parameter of the target domain name;
performing character string generation processing on the time stamp and/or the service request parameter to obtain a first character string;
carrying out hash calculation on the first character string to obtain a first hash value;
and based on the alias information and the first hash value, performing splicing processing on the first short code to obtain the target short code.
In an exemplary embodiment, after the personalizing the first short code according to the preset first rule to obtain the target short code, the method further includes:
obtaining a mapping relation between the target short code and the target domain name;
and storing the mapping relation to a target database.
In an exemplary embodiment, the method further comprises:
acquiring a load state of a target server, wherein the short code conversion process and the individualization process are executed in the target server;
and executing a first operation under the condition that the load state does not meet the preset load condition, wherein the first operation comprises the following steps:
obtaining server information, wherein the server information comprises load information of a first server, the load information comprises the load state, and the first server comprises any one or more servers except the target server; and forwarding a service request containing the target domain name to the first server to execute the short code conversion process and/or the personalized process at the first server under the condition that the load state meets the load condition.
In an exemplary embodiment, in case the load state does not meet a preset load condition, the method further comprises:
and calling a first server node to execute the short code conversion processing and/or the personalized processing according to the service request, wherein the first server node comprises other server resource nodes except the server node contained in the target server.
According to another embodiment of the present application, there is provided a domain name short code determining apparatus including:
the domain name acquisition module is used for acquiring a target domain name;
the domain name conversion module is used for carrying out short code conversion processing on the target domain name through a preset first algorithm so as to obtain a first short code;
and the short code determining module is used for carrying out personalized processing on the first short code according to a preset first rule to obtain a target short code, wherein the target short code comprises a time stamp of a target domain name and/or conversion information after data conversion processing is carried out on service request parameters.
In one exemplary embodiment, the short code determination module includes:
the alias determining unit is used for acquiring the alias information of the target domain name according to the first rule;
and the short code determining unit is used for performing splicing processing on the first short code based on the alias information so as to obtain the target short code.
According to a further embodiment of the application, there is also provided a computer readable storage medium having stored therein a computer program, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
According to a further embodiment of the application, there is also provided an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
According to the application, the domain name is converted into the short code, so that the problem of overhigh use cost caused by a long domain name is avoided, and meanwhile, the uniqueness of the short code is ensured through personalized treatment, so that the response speed of the system is improved, and therefore, the problem of overhigh use cost of the long domain name can be solved, and the effects of reducing the use cost of the domain name and improving the response speed of the system are achieved.
Drawings
Fig. 1 is a hardware block diagram of a mobile terminal of a domain name short code determining method according to an embodiment of the present application;
FIG. 2 is a flow chart of a method of determining a domain name short code according to an embodiment of the application;
fig. 3 is a block diagram showing a structure of a domain name short code determining apparatus according to an embodiment of the present application;
fig. 4 is a flow chart according to an embodiment of the present application.
Detailed Description
Embodiments of the present application will be described in detail below with reference to the accompanying drawings in conjunction with the embodiments.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order.
The method embodiments provided in the embodiments of the present application may be performed in a mobile terminal, a computer terminal or similar computing device. Taking the mobile terminal as an example, fig. 1 is a block diagram of a hardware structure of the mobile terminal of a method for determining a domain name short code according to an embodiment of the present application. As shown in fig. 1, a mobile terminal may include one or more (only one is shown in fig. 1) processors 102 (the processor 102 may include, but is not limited to, a microprocessor MCU or a processing device such as a programmable logic device FPGA) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 for communication functions and an input-output device 108. It will be appreciated by those skilled in the art that the structure shown in fig. 1 is merely illustrative and not limiting of the structure of the mobile terminal described above. For example, the mobile terminal may also include more or fewer components than shown in fig. 1, or have a different configuration than shown in fig. 1.
The memory 104 may be used to store a computer program, for example, a software program of application software and a module, such as a computer program corresponding to a method for determining a domain name short code in an embodiment of the present application, and the processor 102 executes the computer program stored in the memory 104 to perform various functional applications and data processing, that is, implement the method described above. Memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory remotely located relative to the processor 102, which may be connected to the mobile terminal via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, simply referred to as NIC) that can connect to other network devices through a base station to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is configured to communicate with the internet wirelessly.
In this embodiment, a method for determining a domain name short code is provided, fig. 2 is a flowchart of determining a domain name short code according to an embodiment of the present application, and as shown in fig. 2, the flowchart includes the following steps:
step S201, obtaining a target domain name;
in this embodiment, the obtaining the target domain name may be that the user sends a service request to the server through the application or the user itself through the mobile device, where the service request includes the domain name to be accessed and other information, and then the server identifies the service request, where the server calls an API to identify the domain name for the domain name sent by the application, and directly identifies the domain name for the server request sent by the mobile device.
The target domain name may include, but is not limited to, other content besides the domain name itself, such as a timestamp of the domain name transmission, a server address, and so on.
Step S202, performing short code conversion processing on the target domain name through a preset first algorithm to obtain a first short code;
in this embodiment, the domain name is converted into the short code by a preset algorithm, so that the resources occupied by the long domain name are shortened, and the subsequent use is convenient.
The first algorithm may be, but is not limited to, MD5 algorithm, SHA-256 algorithm, or other algorithms, such as SHA-1 algorithm; the specific calculation process is as follows:
the system page is used for generating a 32-bit MD5 string $md5=md5 ($url) by using an MD5 algorithm according to the URL path parameter to be accessed; and then, cycling for 5 times from the 32-bit MD5 string, randomly taking out one-bit character from the 32-bit at a time, and splicing into a short code key with 5-bit distinguishing case, wherein the short code key is the first short code.
Step S203, performing personalized processing on the first short code according to a preset first rule to obtain a target short code, where the target short code includes a timestamp of a target domain name and/or conversion information after performing data conversion processing on a service request parameter.
In this embodiment, after the first short code is obtained, the first short code is personalized to ensure the uniqueness of the short code, so that the process of repeatedly checking and repeatedly generating the short code can be reduced, and the response speed of the system is improved.
Wherein the first rule may be, but is not limited to, randomly generating a domain name alias for the first short code, and then pasting the domain name alias with the first short code, wherein the domain name alias may be at a specific location, e.g., before, after, or the like the first short code; the target short code comprises a first short code and other information for personalized treatment, and the method can be used for ensuring the uniqueness of the target short code besides linking the domain name alias with the first short code in the personalized treatment process, for example, adding a time stamp of a service request into the first short code and the like; the short code alias can be a character string generated randomly, can be a random number, and can also be other text information; the conversion information includes, but is not limited to, a hash value corresponding to a character string composed of a timestamp of the target domain name and/or a service request parameter; the service request parameters include, but are not limited to, identity authentication parameters (e.g., API key, token, etc.), request content parameters (e.g., request parameters may include recipient address, mail subject, body, etc. in the case of an email sending service), query parameters (parameters for filtering, ordering, or limiting the service return results. For example, if an order list for a user is requested to be obtained, page numbers to be obtained, the number of pages per page, ordering, etc. may be specified by the query parameters), path parameters, and so forth.
Through the steps, the domain name is converted into the short code, the problem of overhigh use cost caused by a long domain name is avoided, the system is convenient to memorize, meanwhile, the uniqueness of the short code is guaranteed through personalized processing, so that the response speed of the system is improved, the problem of overhigh use cost of the long domain name is solved, the use cost of the domain name is reduced, and the response speed of the system is improved.
The main execution body of the above steps may be, but not limited to, a base station, a terminal, and the like.
In an optional embodiment, the personalizing the first short code according to a preset first rule to obtain a target short code includes:
step S2031, obtaining alias information of the target domain name according to the first rule;
step S2032, performing a concatenation process on the first short code based on the alias information, so as to obtain the target short code.
In this embodiment, the alias information is acquired by the first rule to achieve automation of alias generation, and manual operations are reduced.
The first rule includes (but is not limited to) randomly splicing according to the randomly generated text, so that an alias of the random target domain name is obtained, and other rules can be adopted; the alias information may include information such as a domain name identifier, a domain name length, and the like, in addition to the domain name alias.
In an optional embodiment, the performing, based on the alias information, a concatenation process on the first short code to obtain the target short code includes:
step S20321, obtaining a timestamp and/or a service request parameter of the target domain name;
step S20322, performing a string generation process on the timestamp and/or the service request parameter to obtain a first string;
step S20323, performing hash computation on the first string to obtain a first hash value;
and step S20324, performing a splicing process on the first short code based on the alias information and the first hash value, so as to obtain the target short code.
In this embodiment, because the timestamp and the service request parameter of the target domain name are unique, adding the timestamp and/or the service request parameter to the target short code can ensure the uniqueness of the target short code, so that the problem that the short code corresponding to the domain name is not unique due to collision of the hash value can be avoided, the short code does not need to be regenerated under the condition that the short code is repeated, and the response speed of the system is improved.
The character string generation process may be to connect the time stamp and the service request parameter through a separator, or to convert the time stamp or the service request parameter into a character string according to a predetermined format; for example, for a timestamp, assume that the timestamp is an integer and is converted to a datetime object using the datetime module. We then format the datetime object into a string using the strftime method.
It should be noted that, in order to ensure the uniqueness of the short code, the characteristics of the service request parameter itself may be considered, for example, the service request is usually regional and unique (normally, a device will only make a service request at one location and at one time), so that the distribution characteristics of the service request in the current area (the number of regional distributions, the distribution density of devices sending related requests, the distribution density of related requests in the time domain, etc.), these data are converted into a character string according to a predetermined coding rule, and the hash value thereof is also calculated and added to the short code, and specifically, the data that is most representative or needs to be observed in a focused manner may be selected according to the use environment for hash value conversion.
In an optional embodiment, after the personalizing the first short code according to the preset first rule to obtain the target short code, the method further includes:
step S204, obtaining the mapping relation between the target short code and the target domain name;
step S205, storing the mapping relation to a target database.
In this embodiment, in order to ensure that the target short code and the target domain name can be detected later, the mapping relationship between the target short code and the target domain name needs to be saved.
The mapping relationship includes a correspondence relationship between the target short code and the target domain name, for example, a-a, where a is the target short code, a is the target domain name, and so on.
In an alternative embodiment, the method further comprises:
step S206, obtaining the load state of a target server, wherein the short code conversion processing and the personalized processing are executed in the target server;
step S207, performing a first operation in a case where the load state does not satisfy a preset load condition, where the first operation includes:
obtaining server information, wherein the server information comprises load information of a first server, the load information comprises the load state, and the first server comprises any one or more servers except the target server; and forwarding a service request containing the target domain name to the first server to execute the short code conversion process and/or the personalized process at the first server under the condition that the load state meets the load condition.
In this embodiment, because the domain name conversion is performed in the server, in the domain name conversion process, the load condition of the server needs to be monitored at any time, so that overload of the server is avoided, and stability of the system is ensured.
Wherein the load condition includes (but is not limited to) the load being below a certain threshold, which can be set according to practical situations, and is usually 80% of the load limit of the server; load information includes, but is not limited to, server remaining resources, CPU load, memory usage, network load, number of processes and threads, request processing time, etc.
It should be noted that, in the case of a heavy load, the relevant request may be forwarded to other servers with low loads, so as to avoid overload of the servers.
In an alternative embodiment, in case the load status does not meet a preset load condition, the method further comprises:
step S208, invoking a first server node to execute the short code conversion process and/or the personalization process according to the service request, where the first server node includes other server resource nodes except the server node included in the target server.
In this embodiment, to ensure the normal operation of the system, other server nodes may be called to assist in data processing when the server load exceeds the threshold, so as to ensure the normal operation of the system.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in part in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) and including instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present application.
The embodiment also provides a device for determining a domain name short code, which is used for implementing the above embodiment and the preferred implementation, and is not described in detail. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
Fig. 3 is a block diagram of a domain name short code determining apparatus according to an embodiment of the present application, as shown in fig. 3, including:
a domain name acquisition module 31, configured to acquire a target domain name;
the domain name conversion module 32 is configured to perform short code conversion processing on the target domain name through a preset first algorithm, so as to obtain a first short code;
the short code determining module 33 is configured to perform personalized processing on the first short code according to a preset first rule, so as to obtain a target short code, where the target short code includes a timestamp of a target domain name and/or conversion information after performing data conversion processing on service request parameters.
In an alternative embodiment, the short code determination module 33 includes:
the alias determining unit is used for acquiring the alias information of the target domain name according to the first rule;
and the short code determining unit is used for performing splicing processing on the first short code based on the alias information so as to obtain the target short code.
In an alternative embodiment, the short code determining unit comprises:
the information acquisition subunit is used for acquiring the time stamp and/or the service request parameter of the target domain name;
a character string determining subunit, configured to perform a character string generating process on the timestamp and/or the service request parameter, so as to obtain a first character string;
a hash calculation subunit, configured to perform hash calculation on the first string to obtain a first hash value;
and the short code determining subunit is used for performing splicing processing on the first short code based on the alias information and the first hash value so as to obtain the target short code.
In an alternative embodiment, the apparatus further comprises:
the mapping relation acquisition module is used for acquiring the mapping relation between the target short code and the target domain name after the first short code is subjected to personalized processing according to a preset first rule to obtain the target short code;
and the storage module is used for storing the mapping relation to a target database.
In an alternative embodiment, the apparatus further comprises:
the load monitoring module is used for acquiring the load state of a target server, wherein the short code conversion processing and the personalized processing are executed in the target server;
the first operation module is used for executing a first operation under the condition that the load state does not meet the preset load condition, wherein the first operation comprises the following steps:
obtaining server information, wherein the server information comprises load information of a first server, the load information comprises the load state, and the first server comprises any one or more servers except the target server; and forwarding a service request containing the target domain name to the first server to execute the short code conversion process and/or the personalized process at the first server under the condition that the load state meets the load condition.
In an alternative embodiment, in case the load status does not meet a preset load condition, the apparatus further comprises:
and the node calling module is used for calling a first server node to execute the short code conversion processing and/or the personalized processing according to the service request, wherein the first server node comprises other server resource nodes except the server node contained in the target server.
It should be noted that each of the above modules may be implemented by software or hardware, and for the latter, it may be implemented by, but not limited to: the modules are all located in the same processor; alternatively, the above modules may be located in different processors in any combination.
The application is illustrated by the following specific examples.
As shown in fig. 4, when a service request of an application requiring access to a domain name is acquired, an API is called to transfer a URL, and then a target URL is converted into a short code by using an algorithm such as MD5, and the like, and a custom short code and an alias function are provided, so that the ease and individuation of a short link are increased; storing the generated short codes and the original target URL correspondingly into a database (the storage format is id, key, URL) and linking the return end to an application (domain name/key); for the user access end link, the system matches the application source URL according to the short code key of the end link, and jumps to display the content.
Wherein the system further provides the following functions:
1. access control and security:
the password protection function is realized, the password for accessing the short link is allowed to be set, and the security of the link is improved.
And limiting the access rights of certain short links according to the user roles and the rights control.
Preventing malicious attack and abuse, and adopting security measures such as a firewall, an intrusion detection system and the like.
2. Link forwarding and load balancing:
and a load balancing strategy is realized, the request is forwarded to a back-end server with lower load, and the system performance and stability are improved.
And monitoring the load state of the back-end server, dynamically adjusting the target address, and ensuring that the request is forwarded to the server with lower load.
And intercepting the request according to the load condition, temporarily stopping forwarding or rejecting part of traffic, and avoiding overload of the server.
3. Statistics and analysis functions:
and collecting access data of the short link, including information such as user IP, access times, time intervals and the like.
Statistical reporting and analysis functions are provided, including conversion rate, click through rate, geographic location distribution, etc. data.
User behavior and access trends are analyzed to provide refined statistics and reports to the user.
4. System performance and scalability:
the high availability and fault tolerance are considered in the architecture design, and the cluster or distributed deployment is adopted to prevent single-point faults.
The method can realize horizontal expansion, dynamically increase server nodes according to load conditions, and cope with peak access demands.
And the response speed and the system performance are improved by using a cache and database optimization technology.
Asynchronous processing and task queues, and improves the concurrent processing capacity of the system.
5. User experience and personalization:
custom short code and alias functionality is provided to enable the user to select personalized short links.
Increasing the effective period of the link and controlling the access authority provides more flexible link management strategy.
6. And the device type is automatically identified, the user is jumped to the most suitable target page, and better user experience is provided.
7. Monitoring and alerting:
and (5) monitoring indexes such as server load, network flow, database connection number and the like in real time, and timely finding potential problems.
An alarm mechanism is set, and a notification is sent so that an administrator can timely cope with the abnormal situation.
8. Link preview: the preview function of the target URL is provided, so that the user can preview the content of the target page before clicking the short link, and the user trust and the clicking rate are increased.
9. Social media integration: the user is allowed to directly share the short link to the social media platform, a convenient and quick sharing function is provided, and the effect of sharing the link is tracked.
10. Two-dimensional code supports: and providing corresponding two-dimensional codes for each generated short link, and facilitating the user to access the links on the mobile device in a mode of scanning the two-dimensional codes.
11. API integration and extension: providing an open API interface allows other applications or developers to integrate the functionality of the short-link system and provides rich API documentation and support.
12. Link editing and updating: the user is allowed to edit the generated short links, update the target URL or other attributes, and the link management and maintenance are convenient for the user.
13. Link collaboration and sharing: supporting multi-user collaboration allows users to share link management rights, edit together, and track usage of links.
14. a/B test and link optimization: providing an A/B test function allows a user to create short links of multiple variants and compare their performance, optimizing the conversion and effectiveness of the links.
15. Link advertisement marketing: the system is integrated with an advertisement platform, provides functions of link conversion tracking, advertisement delivery monitoring and analysis and the like, and helps users to conduct link advertisement marketing and effect evaluation.
Embodiments of the present application also provide a computer readable storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
In one exemplary embodiment, the computer readable storage medium may include, but is not limited to: a usb disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing a computer program.
An embodiment of the application also provides an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
In an exemplary embodiment, the electronic apparatus may further include a transmission device connected to the processor, and an input/output device connected to the processor.
Specific examples in this embodiment may refer to the examples described in the foregoing embodiments and the exemplary implementation, and this embodiment is not described herein.
It will be appreciated by those skilled in the art that the modules or steps of the application described above may be implemented in a general purpose computing device, they may be concentrated on a single computing device, or distributed across a network of computing devices, they may be implemented in program code executable by computing devices, so that they may be stored in a storage device for execution by computing devices, and in some cases, the steps shown or described may be performed in a different order than herein, or they may be separately fabricated into individual integrated circuit modules, or multiple modules or steps within them may be fabricated into a single integrated circuit module. Thus, the present application is not limited to any specific combination of hardware and software.
The above description is only of the preferred embodiments of the present application and is not intended to limit the present application, but various modifications and variations can be made to the present application by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the principle of the present application should be included in the protection scope of the present application.

Claims (10)

1. A method for determining a domain name short code, comprising:
acquiring a target domain name;
performing short code conversion processing on the target domain name through a preset first algorithm to obtain a first short code;
individuation processing is carried out on the first short code according to a preset first rule to obtain a target short code, wherein the target short code comprises a time stamp of a target domain name and/or conversion information after data conversion processing is carried out on service request parameters corresponding to the target domain name; the service request parameters at least comprise any one of identity authentication parameters, request content parameters, query parameters and path parameters.
2. The method of claim 1, wherein personalizing the first short code according to a preset first rule to obtain a target short code comprises:
acquiring alias information of the target domain name according to the first rule;
and based on the alias information, performing splicing processing on the first short code to obtain the target short code.
3. The method of claim 2, wherein the concatenating the first short code based on the alias information to obtain the target short code comprises:
acquiring a time stamp and/or a service request parameter of the target domain name;
performing character string generation processing on the time stamp and/or the service request parameter to obtain a first character string;
carrying out hash calculation on the first character string to obtain a first hash value;
and based on the alias information and the first hash value, performing splicing processing on the first short code to obtain the target short code.
4. The method of claim 1, wherein after the personalizing the first short code according to the preset first rule to obtain a target short code, the method further comprises:
obtaining a mapping relation between the target short code and the target domain name;
and storing the mapping relation to a target database.
5. The method according to claim 1, wherein the method further comprises:
acquiring a load state of a target server, wherein the short code conversion process and the individualization process are executed in the target server;
and executing a first operation under the condition that the load state does not meet the preset load condition, wherein the first operation comprises the following steps:
obtaining server information, wherein the server information comprises load information of a first server, the load information comprises the load state, and the first server comprises any one or more servers except the target server; and forwarding a service request containing the target domain name to the first server to execute the short code conversion process and/or the personalized process at the first server under the condition that the load state meets the load condition.
6. The method of claim 5, wherein in the event that the load status does not meet a preset load condition, the method further comprises:
and calling a first server node to execute the short code conversion processing and/or the personalized processing according to the service request, wherein the first server node comprises other server resource nodes except the server node contained in the target server.
7. A domain name short code determining apparatus, comprising:
the domain name acquisition module is used for acquiring a target domain name;
the domain name conversion module is used for carrying out short code conversion processing on the target domain name through a preset first algorithm so as to obtain a first short code;
the short code determining module is used for carrying out personalized processing on the first short code according to a preset first rule to obtain a target short code, wherein the target short code comprises a time stamp of a target domain name and/or conversion information after data conversion processing is carried out on service request parameters; the service request parameters at least comprise any one of identity authentication parameters, request content parameters, query parameters and path parameters.
8. The apparatus of claim 7, wherein the short code determination module comprises:
the alias determining unit is used for acquiring the alias information of the target domain name according to the first rule;
and the short code determining unit is used for performing splicing processing on the first short code based on the alias information so as to obtain the target short code.
9. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a computer program, wherein the computer program is arranged to execute the method of any of the claims 1 to 6 when run.
10. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to run the computer program to perform the method of any of the claims 1 to 6.
CN202311202298.XA 2023-09-18 2023-09-18 Domain name short code determining method and device, storage medium and electronic device Active CN116938871B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311202298.XA CN116938871B (en) 2023-09-18 2023-09-18 Domain name short code determining method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311202298.XA CN116938871B (en) 2023-09-18 2023-09-18 Domain name short code determining method and device, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN116938871A CN116938871A (en) 2023-10-24
CN116938871B true CN116938871B (en) 2023-11-28

Family

ID=88390095

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311202298.XA Active CN116938871B (en) 2023-09-18 2023-09-18 Domain name short code determining method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN116938871B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017114206A1 (en) * 2015-12-30 2017-07-06 阿里巴巴集团控股有限公司 Method and device for processing short link, and short link server
CN110851748A (en) * 2019-10-14 2020-02-28 平安科技(深圳)有限公司 Short link generation method, server, storage medium and computer equipment
CN114549068A (en) * 2022-02-15 2022-05-27 北京沃东天骏信息技术有限公司 Short link generation method, equipment, device and computer readable storage medium
CN114547214A (en) * 2022-02-24 2022-05-27 亿咖通(湖北)技术有限公司 Long-link data processing method, device and equipment
CN116501997A (en) * 2023-06-28 2023-07-28 太平金融科技服务(上海)有限公司深圳分公司 Short link generation method, device, electronic equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017114206A1 (en) * 2015-12-30 2017-07-06 阿里巴巴集团控股有限公司 Method and device for processing short link, and short link server
CN110851748A (en) * 2019-10-14 2020-02-28 平安科技(深圳)有限公司 Short link generation method, server, storage medium and computer equipment
CN114549068A (en) * 2022-02-15 2022-05-27 北京沃东天骏信息技术有限公司 Short link generation method, equipment, device and computer readable storage medium
CN114547214A (en) * 2022-02-24 2022-05-27 亿咖通(湖北)技术有限公司 Long-link data processing method, device and equipment
CN116501997A (en) * 2023-06-28 2023-07-28 太平金融科技服务(上海)有限公司深圳分公司 Short link generation method, device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN116938871A (en) 2023-10-24

Similar Documents

Publication Publication Date Title
CN107733972B (en) Short link analysis method, device and equipment
CN103607385B (en) Method and apparatus for security detection based on browser
CN109802941A (en) A kind of login validation method, device, storage medium and server
CN108173938A (en) Server load shunt method and device
US9438493B2 (en) Monitoring network entities via a central monitoring system
CN101621541A (en) Method and apparatus for distributed application context-aware transaction processing
CN109756528B (en) Frequency control method and device, equipment, storage medium and server
CN114827161B (en) Service call request sending method and device, electronic equipment and readable storage medium
Singh et al. ZapDroid: managing infrequently used applications on smartphones
US7512949B2 (en) Status hub used by autonomic application servers
CN113434293A (en) Method and apparatus for processing repeat request, storage medium, and electronic apparatus
US10225358B2 (en) Page push method, device, server and system
US8224933B2 (en) Method and apparatus for case-based service composition
CN112148508B (en) Information processing method and related device
JP2017174158A (en) Monitoring system, monitoring method, and monitoring program
Michel Lombera et al. Mobile decentralized search and retrieval using SMS and HTTP
CN116938871B (en) Domain name short code determining method and device, storage medium and electronic device
CN117579308A (en) Authentication method and system based on ISTIO
CN111786940A (en) Data processing method and device
CN114338809B (en) Access control method, device, electronic equipment and storage medium
CN115629880A (en) Log desensitization method, device, equipment and storage medium
CN116996440A (en) Flow control method, flow control device, electronic device, storage medium, and program product
CN116032762B (en) Processing method, system and gateway equipment of network service
CN114285889A (en) Method, device and equipment for processing configuration information of application service
CN108809909A (en) Data processing method and data processing equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant