最后,假设买方的银行帐户状态良好,供应商就向仓库发送一个按订单发货的请求。
Finally, assuming that the bank account status is good, the supplier sends a request to the warehouse to ship the order.
因为订单在变化,所以在每次请求的时候查询它并检查它的状态会更容易。
Because the order is changing, it's easier to simply look it up and check it's status each request.
RPC模型中的通信通常是同步的,并且请求的操作通常代表了细致且个别的工作项(例如:检查一个订单的状态)。
Communication in the RPC model is most often synchronous, and requested operations generally represent fine-grained, individual work items (for example, checking on the status of an order).
Orders是分别发送的,并为稍后聚合为单个响应消息存储每个订单的响应,从而显示批处理请求中所有元素的状态。
Orders are sent individually, the response from each order being stored for later aggregation into a single response message, which shows the status of all the elements in the batch request.
这意味着业务状态机始终处于两种状态之间,因此无法接受诸如请求取消订单之类的其他操作。
This would mean the business state machine is between states and thus would not be able to accept other operations, such as a request to cancel the order.
这意味着业务状态机始终处于两种状态之间,因此无法接受诸如请求取消订单之类的其他操作。
This would mean the business state machine is between states and thus would not be able to accept other operations, such as a request to cancel the order.
应用推荐