my-subattached to the topic
my-topic. All of the messages published to
my-topicwill be delivered to this subscription.
ack-deadlineoption sets an acknowledgement deadline of 60 seconds for this subscription. This deadline is explained in more detail later.
helloand the second is
goodbye. When you successfully publish a message, you should see the
messageIdreturned from the server. This is a unique ID automatically assigned by the server to each message.
goodbye, as well as
MESSAGE_IDis a unique ID of the message that the server assigned.
--auto-ackflag passed with the
pullcommand automatically acknowledges a message when it is pulled.
thanksmessage, as well as
ACK_IDis an ID that you can use for acknowledging the message. Copy the
ACK_IDvalue, which you will paste into an acknowledgement in the next step.
[ACK_ID]with the ID that you copied in the previous step:
gcloudcommand-line tutorial, but let's look at the web interface for the Cloud Console before finishing the tutorial.