Timer-based message handling for executing stateful services in a stateless environment

    公开(公告)号:US11163619B2

    公开(公告)日:2021-11-02

    申请号:US16730125

    申请日:2019-12-30

    Abstract: A state-aware microservice system for managing messages and providing a service. The state-aware microservice system includes a plurality of instances of the service, a message broker, a memory, and an electronic processor. The processor is configured to receive, via an instance of the plurality, a message for the service and determine whether a processing of the message is consistent with a current state of the system. When the processing of the message is consistent, the processor process the message via one of the plurality of instances. When the processing of the message is not consistent, the processor transmits the message to a first queue of the message broker, determines, from a timer of the message, a time-to-live of the message, and transfers the message to a second queue of one of the plurality of instances in response to the time-to-live expiring.

    TIMER-BASED MESSAGE HANDLING FOR EXECUTING STATEFUL SERVICES IN A STATELESS ENVIRONMENT

    公开(公告)号:US20210200609A1

    公开(公告)日:2021-07-01

    申请号:US16730125

    申请日:2019-12-30

    Abstract: A state-aware microservice system for managing messages and providing a service. The state-aware microservice system includes a plurality of instances of the service, a message broker, a memory, and an electronic processor. The processor is configured to receive, via an instance of the plurality, a message for the service and determine whether a processing of the message is consistent with a current state of the system. When the processing of the message is consistent, the processor process the message via one of the plurality of instances. When the processing of the message is not consistent, the processor transmits the message to a first queue of the message broker, determines, from a timer of the message, a time-to-live of the message, and transfers the message to a second queue of one of the plurality of instances in response to the time-to-live expiring.

Patent Agency Ranking