Patent ID: 7730196

Claim:
At a computing system within a Web Services (WS) environment, a method of efficiently transferring messages between endpoints in accordance with a Reliable Messaging of WS (RM-WS) protocol by dynamically determining a message window size for sending the messages based on an acceptor's available buffer size, the method comprising acts of: establishing, at an application layer, a sequence session between an initiator and an acceptor in accordance with a RM-WS protocol; receiving over the sequence session a message that includes acceptor buffer size information, which indicates an amount of available memory for buffering messages that are awaiting processing by an application, wherein the acceptor's total amount of memory allocated for buffering messages is dynamically configurable on a per connection basis, wherein the allocated amount of memory is based on at least one of a plurality of factors; identifying a number of in flight messages that have been sent to the acceptor without receiving corresponding acknowledgements in accordance with the RM-WS protocol; and using the acceptor buffer size information and the number of in flight messages to calculate a message window size, which represents an upper limit on a number of messages that can be sent to the acceptor in order to prevent resending messages due to buffer overrun.