Method and device for processing multiple concurrent asynchronous characteristic network requests

The invention provides a method and device for processing multiple concurrent asynchronous characteristic network requests, and the method comprises the steps: packaging and recompiling each asynchronous characteristic network request through a promise tool, and obtaining each service request; sendi...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
1. Verfasser: SHEN MENGYUE
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The invention provides a method and device for processing multiple concurrent asynchronous characteristic network requests, and the method comprises the steps: packaging and recompiling each asynchronous characteristic network request through a promise tool, and obtaining each service request; sending each service request to a server, and executing a processing process corresponding to the current service request: sending a small token to the server; if the small token is not invalid, executing the service logic corresponding to the current service request; if the small token fails, determining whether the request is the first service request; if yes, a large token is sent to the server to enable the server to execute token refreshing, and the current service request is retransmitted after token refreshing succeeds, so that a first service message fed back by the server is obtained, and corresponding service logic is executed; and if not, running the trigger function to resend the current service request, so