March 2019
Beginner to intermediate
778 pages
34h 20m
English
In the push model of message delivery, subscriptions are configured with a push endpoint. When a message enters the subscription's queue, Cloud Pub/Sub makes an HTTP POST request to the specified endpoint, with the message body, attributes, and metadata contained within the request body. Each message is delivered individually, and messages are considered acknowledged when the endpoint returns an HTTP status code of 200, 201, 202, 204, or 102. The POST body of push delivery takes the following form:
{ "message": { "attributes": { "KEY_1": "VALUE_1", "KEY_2": "VALUE_2" }, "data": "BASE64_ENCODED_DATA", "message_id": "340384930238" }, "subscription": "projects/PROJECT_ID/topics/TOPIC_ID/subscriptions/SUBSCRIPTION_ID"}
In order ...
Read now
Unlock full access