The article “Bridging the Gap: Google Cloud Pub/Sub with SAP using ABAP SDK for Google Cloud” showcased the potential of integrating Google Cloud Pub/Sub and SAP to create robust event-driven solutions. The article Consuming Events from Pub/Sub into SAP using ABAP SDK for Google Cloud explored the use of pull subscriptions to retrieve events from a Pub/Sub topic. While this method is viable, it requires implementing a polling job on the SAP side, which would execute at regular intervals.
This blog explores alternative strategies for sending events from Google Cloud services to SAP, venturing beyond the pull subscription-based approach. Google Cloud Pub/Sub offers push subscriptions, which enable Pub/Sub to proactively deliver messages to subscribers without the need for explicit requests. This approach caters to applications demanding low latency and real-time event processing.
However, implementing push subscriptions requires a publicly addressable target endpoint for the messages. This may pose challenges in certain SAP environments where external network access is restricted.
In this blog post, we will explore alternative strategies for sending events from Google Cloud services to SAP, addressing the limitations of pull subscriptions and circumventing the requirement for a public endpoint in push subscriptions.
Here are couple of design draft for achieving this:
Architecture:
Key Terms:
Key Points:
Conclusion:
This design allows you to send events from Google Cloud Pub/Sub to SAP without requiring a public endpoint. The use of a Cloud Function to relay the event provides an opportunity to read and route the event to the appropriate endpoints.
Architecture:
Key Terms:
Note: At the time of writing this article, services like Network Attachment and Eventarc Internal HTTP Endpoint feature were available as preview only(pre-GA) offerings.
Key Points:
Conclusion:
This innovative design eliminates the need for a public endpoint, enabling seamless communication between Google Cloud Pub/Sub and SAP. By leveraging the power of Google Eventarc and Network Attachment, you can effortlessly connect SAP SICF services to Google Cloud, empowering SAP processes to react swiftly to events from diverse sources.
In an upcoming blog post, I will provide a step-by-step guide to implementing these architectures using ABAP SDK for Google Cloud. Stay tuned to embark on this transformative journey!
The ABAP SDK for Google Cloud Community is now open! This is a place for you to ask questions, share knowledge, and collaborate with other ABAP developers who are using Google Cloud. We encourage you to get involved in the community and help us make the ABAP SDK for Google Cloud even better. We have a lot of exciting things planned for the future, and we want you to be a part of it.
Click the link to join and innovate with us.
Subscribe to the youtube channel where you would find, a quick 5 minutes overview covering the design principles and capabilities of ABAP SDK, reference architectures and art of the possible SAP solutions based on Google’s AI services, Google Workspace APIs and Google Maps Platform APIs…. along many more insightful references.
Follow this medium tag for more content on ABAP SDK for Google Cloud.
Happy Learning! and Happy Innovating!