×
1 Choose EITC/EITCA Certificates
2 Learn and take online exams
3 Get your IT skills certified

Confirm your IT skills and competencies under the European IT Certification framework from anywhere in the world fully online.

EITCA Academy

Digital skills attestation standard by the European IT Certification Institute aiming to support Digital Society development

LOG IN TO YOUR ACCOUNT

CREATE AN ACCOUNT FORGOT YOUR PASSWORD?

FORGOT YOUR PASSWORD?

AAH, WAIT, I REMEMBER NOW!

CREATE AN ACCOUNT

ALREADY HAVE AN ACCOUNT?
EUROPEAN INFORMATION TECHNOLOGIES CERTIFICATION ACADEMY - ATTESTING YOUR PROFESSIONAL DIGITAL SKILLS
  • SIGN UP
  • LOGIN
  • INFO

EITCA Academy

EITCA Academy

The European Information Technologies Certification Institute - EITCI ASBL

Certification Provider

EITCI Institute ASBL

Brussels, European Union

Governing European IT Certification (EITC) framework in support of the IT professionalism and Digital Society

  • CERTIFICATES
    • EITCA ACADEMIES
      • EITCA ACADEMIES CATALOGUE<
      • EITCA/CG COMPUTER GRAPHICS
      • EITCA/IS INFORMATION SECURITY
      • EITCA/BI BUSINESS INFORMATION
      • EITCA/KC KEY COMPETENCIES
      • EITCA/EG E-GOVERNMENT
      • EITCA/WD WEB DEVELOPMENT
      • EITCA/AI ARTIFICIAL INTELLIGENCE
    • EITC CERTIFICATES
      • EITC CERTIFICATES CATALOGUE<
      • COMPUTER GRAPHICS CERTIFICATES
      • WEB DESIGN CERTIFICATES
      • 3D DESIGN CERTIFICATES
      • OFFICE IT CERTIFICATES
      • BITCOIN BLOCKCHAIN CERTIFICATE
      • WORDPRESS CERTIFICATE
      • CLOUD PLATFORM CERTIFICATENEW
    • EITC CERTIFICATES
      • INTERNET CERTIFICATES
      • CRYPTOGRAPHY CERTIFICATES
      • BUSINESS IT CERTIFICATES
      • TELEWORK CERTIFICATES
      • PROGRAMMING CERTIFICATES
      • DIGITAL PORTRAIT CERTIFICATE
      • WEB DEVELOPMENT CERTIFICATES
      • DEEP LEARNING CERTIFICATESNEW
    • CERTIFICATES FOR
      • EU PUBLIC ADMINISTRATION
      • TEACHERS AND EDUCATORS
      • IT SECURITY PROFESSIONALS
      • GRAPHICS DESIGNERS & ARTISTS
      • BUSINESSMEN AND MANAGERS
      • BLOCKCHAIN DEVELOPERS
      • WEB DEVELOPERS
      • CLOUD AI EXPERTSNEW
  • FEATURED
  • SUBSIDY
  • HOW IT WORKS
  •   IT ID
  • ABOUT
  • CONTACT
  • MY ORDER
    Your current order is empty.
EITCIINSTITUTE
CERTIFIED

What is the delivery type of a subscription by default when adding it to a topic in Cloud Pub/Sub?

by EITCA Academy / Thursday, 03 August 2023 / Published in Cloud Computing, EITC/CL/GCP Google Cloud Platform, Getting started with GCP, Cloud Pub/Sub, Examination review

When adding a subscription to a topic in Cloud Pub/Sub, the default delivery type is "PULL". Cloud Pub/Sub is a messaging service provided by Google Cloud Platform that allows for the asynchronous communication between applications. It enables publishers to send messages to topics, and subscribers to receive those messages from the topics.

In Cloud Pub/Sub, there are two types of message delivery: "PUSH" and "PULL". The delivery type determines how messages are sent from the topic to the subscription.

By default, when a subscription is added to a topic, the delivery type is set to "PULL". This means that the subscriber needs to actively request messages from the subscription using the Pub/Sub API. The subscriber can periodically pull messages from the subscription using the `projects.subscriptions.pull` method. This method will return any available messages, up to the maximum number specified in the request.

Here is an example of how to pull messages from a subscription using the Pub/Sub API in Python:

python
from google.cloud import pubsub_v1

project_id = "your-project-id"
subscription_id = "your-subscription-id"

subscriber = pubsub_v1.SubscriberClient()
subscription_path = subscriber.subscription_path(project_id, subscription_id)

response = subscriber.pull(subscription_path, max_messages=10)

for message in response.received_messages:
    print(f"Received message: {message.message.data}")

# Acknowledge the received messages
ack_ids = [message.ack_id for message in response.received_messages]
subscriber.acknowledge(subscription_path, ack_ids)

On the other hand, the "PUSH" delivery type allows messages to be automatically pushed to a specified endpoint (HTTP/HTTPS) by Cloud Pub/Sub. This means that the subscriber doesn't need to actively request messages, as they are delivered directly to the endpoint. To use "PUSH" delivery, you need to configure a push endpoint URL for the subscription.

To summarize, the default delivery type of a subscription when adding it to a topic in Cloud Pub/Sub is "PULL". This means that the subscriber needs to actively pull messages from the subscription using the Pub/Sub API. However, it is also possible to configure the subscription for "PUSH" delivery if messages need to be automatically pushed to a specified endpoint.

Other recent questions and answers regarding Cloud Pub/Sub:

  • What is one way to perform a pull operation on a subscription in Cloud Pub/Sub?
  • How can you publish a message to a topic in Cloud Pub/Sub using the GCP console?
  • What is the purpose of adding a subscription to a topic in Cloud Pub/Sub?
  • What is the first step to get started with Cloud Pub/Sub on Google Cloud Platform (GCP)?

More questions and answers:

  • Field: Cloud Computing
  • Programme: EITC/CL/GCP Google Cloud Platform (go to the certification programme)
  • Lesson: Getting started with GCP (go to related lesson)
  • Topic: Cloud Pub/Sub (go to related topic)
  • Examination review
Tagged under: Cloud Computing, Cloud Pub/Sub, Delivery Type, Google Cloud Platform, Messaging Service, Subscription
Home » Cloud Computing » EITC/CL/GCP Google Cloud Platform » Getting started with GCP » Cloud Pub/Sub » Examination review » » What is the delivery type of a subscription by default when adding it to a topic in Cloud Pub/Sub?

Certification Center

USER MENU

  • My Account

CERTIFICATE CATEGORY

  • EITC Certification (105)
  • EITCA Certification (9)

What are you looking for?

  • Introduction
  • How it works?
  • EITCA Academies
  • EITCI DSJC Subsidy
  • Full EITC catalogue
  • Your order
  • Featured
  •   IT ID
  • EITCA reviews (Medium publ.)
  • About
  • Contact

EITCA Academy is a part of the European IT Certification framework

The European IT Certification framework has been established in 2008 as a Europe based and vendor independent standard in widely accessible online certification of digital skills and competencies in many areas of professional digital specializations. The EITC framework is governed by the European IT Certification Institute (EITCI), a non-profit certification authority supporting information society growth and bridging the digital skills gap in the EU.

Eligibility for EITCA Academy 90% EITCI DSJC Subsidy support

90% of EITCA Academy fees subsidized in enrolment by

    EITCA Academy Secretary Office

    European IT Certification Institute ASBL
    Brussels, Belgium, European Union

    EITC / EITCA Certification Framework Operator
    Governing European IT Certification Standard
    Access contact form or call +32 25887351

    Follow EITCI on X
    Visit EITCA Academy on Facebook
    Engage with EITCA Academy on LinkedIn
    Check out EITCI and EITCA videos on YouTube

    Funded by the European Union

    Funded by the European Regional Development Fund (ERDF) and the European Social Fund (ESF) in series of projects since 2007, currently governed by the European IT Certification Institute (EITCI) since 2008

    Information Security Policy | DSRRM and GDPR Policy | Data Protection Policy | Record of Processing Activities | HSE Policy | Anti-Corruption Policy | Modern Slavery Policy

    Automatically translate to your language

    Terms and Conditions | Privacy Policy
    EITCA Academy
    • EITCA Academy on social media
    EITCA Academy


    © 2008-2025  European IT Certification Institute
    Brussels, Belgium, European Union

    TOP
    CHAT WITH SUPPORT
    Do you have any questions?