US 12,088,677 B2
Systems and methods for asynchronous and synchronous network communication
Brenton Strickler, Glen Allen, VA (US)
Assigned to Capital One Services, LLC, McLean, VA (US)
Filed by Capital One Services, LLC, McLean, VA (US)
Filed on Aug. 16, 2022, as Appl. No. 17/820,122.
Prior Publication US 2024/0064207 A1, Feb. 22, 2024
Int. Cl. H04L 67/142 (2022.01); H04L 47/24 (2022.01); H04L 67/143 (2022.01)
CPC H04L 67/142 (2013.01) [H04L 47/24 (2013.01); H04L 67/143 (2013.01)] 18 Claims
OG exemplary drawing
 
1. An asynchronous system that emulates a synchronous system allowing the asynchronous system to send messages synchronously and asynchronously, the asynchronous system comprising:
one or more processors programmed with computer program instructions that, when executed by the one or more processors, cause operations comprising:
in response to obtaining a client request to send a message, generating a data structure comprising (i) the message and (ii) a callback variable identifying a call back uniform resource locator (URL);
determining that the message should be sent synchronously by:
generating, based on inputting the message into a machine learning model, output indicating an urgency score of the message; and
based on the urgency score satisfying a threshold score, determining that the message should be sent synchronously;
based on determining that the message should be sent synchronously, while holding a network connection open, causing the data structure with the callback variable to be sent via an application programming interface (API) call, wherein causing the data structure to be sent comprises modifying the data structure for the API call by removing the callback URL from the data structure such that the callback variable of the data structure (i) identifies the callback URL when the data structure was generated and (ii) no longer identifies the callback URL when sent via the API call;
waiting for a response indicating that the data structure was sent; and
receiving a first response indicating that the message was sent, and closing the network connection based on the first response.