In distributed systems,high efficiency can be achieved using asynchronous API between client and server.This paper provides an architectural pattern that implements asynchronous API generally. Asynchronous methods don...In distributed systems,high efficiency can be achieved using asynchronous API between client and server.This paper provides an architectural pattern that implements asynchronous API generally. Asynchronous methods donot execute operations directly,however,they delegate the sending and receiving process to individual threads via aqueue ,the client deals with results by means of callback ,wait or check. Synchronous API is implemented on the baseof asynchronous API. Presently the asynchronous API pattern has been employed in the implementation of messagequeue middleware ISMQ.展开更多
文摘In distributed systems,high efficiency can be achieved using asynchronous API between client and server.This paper provides an architectural pattern that implements asynchronous API generally. Asynchronous methods donot execute operations directly,however,they delegate the sending and receiving process to individual threads via aqueue ,the client deals with results by means of callback ,wait or check. Synchronous API is implemented on the baseof asynchronous API. Presently the asynchronous API pattern has been employed in the implementation of messagequeue middleware ISMQ.