Unlock instant, AI-driven research and patent intelligence for your innovation.

Distributed system multi-server request processing method and electronic device

A distributed system and multi-server technology, applied to the request processing method of distributed system multi-server, electronic equipment and storage media, can solve the problems of inability to be universal and poor user experience

Active Publication Date: 2021-08-31
深圳掌阅动漫科技有限公司
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

User A will first see the information that his ranking is fifth, and then when user A checks it again, he will find that his ranking is sixth, which leads to poor experience for user A
Although this situation can be solved by delaying the announcement of ranking results, this delayed announcement solution is suitable for non-real-time activities, which has limitations and cannot be used universally

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
  • Distributed system multi-server request processing method and electronic device
  • Distributed system multi-server request processing method and electronic device
  • Distributed system multi-server request processing method and electronic device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0024] figure 1 A schematic flowchart showing a request processing method for multiple servers in a distributed system according to an embodiment of the present invention, as shown in figure 1 As shown, the method includes the following steps:

[0025] Step S101, receiving an event participation request sent by a user to a current server.

[0026] In this embodiment, the distributed system includes multiple servers, each of which can receive activity participation requests sent by users. An activity has an activity start time and an activity end time, and users can participate in the activity by sending an activity participation request to the server between the activity start time and the activity end time. The activity start time and activity end time can be recorded through configuration files, or directly bound to the activity, so that the activity can be determined according to the activity participation request, and the activity start time and activity end time can be ...

Embodiment 2

[0038] figure 2 A schematic flowchart showing a request processing method for multiple servers in a distributed system according to another embodiment of the present invention, as shown in figure 2 As shown, the method includes the following steps:

[0039] Step S201, when publishing an activity, write a specified identifier into the shared database of the distributed system.

[0040] When the activity is published, the specified identifier is written in the shared database of the distributed system in advance, and the expiration time of the specified identifier is set as the end time of the activity. When the end time of the activity is reached, the designated identifier reaches the expiration time, and the designated identifier is an expired designated identifier, so that all servers can be unified to determine whether the activity is over according to the designated identifier.

[0041] Step S202, receiving the activity participation request sent by the user to the curr...

Embodiment 3

[0050] Embodiment 3 of the present application provides a non-volatile computer storage medium, the computer storage medium stores at least one executable instruction, and the computer executable instruction can execute the request processing of the distributed system multi-server in any of the above method embodiments method.

[0051] Specifically, the executable instructions can be used to cause the processor to perform the following operations: For any server in the distributed system, receive the activity participation request sent by the user to the current server; obtain the system time of the current server, and compare the system time with the preconfigured activity The start time is compared with the activity end time; if the comparison result is that the system time is between the activity start time and the activity end time, the specified identifier is searched from the shared database of the distributed system, and the search result of the specified identifier is o...

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 multi-server request processing method and electronic equipment in a distributed system. For any server in the distributed system, the method includes: receiving an activity participation request sent by a user to the current server; obtaining the system time of the current server, Compare the system time with the pre-configured activity start time and activity end time; if the comparison result shows that the system time is between the activity start time and the activity end time, look up the specified ID from the shared database of the distributed system and get the specified ID Search results; respond to activity participation requests sent by users based on search results. Use the shared database of the distributed system to store the specified identifier, and determine the response to the activity participation request sent by the user through the search result of the specified identifier, thereby unifying the judgment criteria for the end of the activity, and comparing the system time of each server with the end time of the activity The comparison of is converted into a unified search result judgment of the specified identifier.

Description

technical field [0001] The invention relates to the field of software, in particular to a request processing method for multiple servers in a distributed system, electronic equipment and a storage medium. Background technique [0002] For multiple servers in a distributed system, the system time of each server may be inconsistent. For example, the system time of the X server is the local system time of the X server, and the system time of the Y server is the local system time of the Y server. The two system times may be inconsistent. When the existing technology solves the problem of inconsistent system time of multiple servers, a synchronization mechanism is generally adopted, but the synchronization mechanism will also cause problems such as non-real-time synchronization (not synchronized within a period of time), synchronization errors, etc., resulting in system time differences between different servers. Cannot be consistent in real time. [0003] Specific to the use o...

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): G06F16/176G06F16/182
CPCG06F16/176G06F16/182
Inventor 王振翼李兆蒙余菲王宇
Owner 深圳掌阅动漫科技有限公司