Patent ID: 11880419
Assignee: MICROSOFT TECHNOLOGY LICENSING, LLC
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 8:
9. A method for performing a procedure implemented by a network function utilizing cloud native architecture, the procedure including a plurality of transactions performed by stateless microservices, the stateless microservices being independently deployable, the procedure being stateful such that subsequent transactions within the procedure use results of preceding transactions within the procedure, the method comprising:
at a first microservice instance assigned by the network function to perform a first transaction of the procedure, the first transaction utilizing state data:
querying an external database for state data to be used while performing the first transaction, wherein the state data includes information from previous transactions within the procedure to affect processing of the first transaction, the external database being external to the first microservice instance;
retrieving the state data from the external database; and
taking a lock on the state data in the external database such that the state data is unavailable except by the first microservice instance;

invoking a durable timer indicating a duration of time in which the state data is locked; and
at a second microservice instance assigned by the network function to perform a second transaction of the procedure, the second transaction utilizing the state data:
querying the external database for the locked state data to be used to perform the second transaction and to affect results of the second transaction, the external database being external to the second microservice instance; and
receiving a notification that the lock on the state data is taken and that the state data is unavailable, wherein the lock on the state data being taken and the state data being unavailable is based at least in part on whether the durable timer has expired.