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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


