客户机代码将轮询输出队列以获得响应,或等待响应消息交付时的回调通知。
The client code would either poll the output queue for the response or wait for some kind of call-back notification when the response message has been delivered.
现在,我们不是在代码中直接使用队列和主题,而是使用通用基类(例如 Destination)来产生消息。
Now, instead of using queues and topics directly in the code, we can use generic base classes, such as Destination, to produce the message.
就这么简单—将一条消息放到sqs队列仅需要那三行代码。
That's it - it took just those three lines of code to place a message on an SQS queue.
应用推荐