Event-Based Real-Time Cloud Functions Examples

Google Cloud Function Setup

  1. Configure the Cloud Run with the google.cloud.storage.object.v1.finalizedtrigger to process newly added objects.
  2. Python Function Example:
Python
Copy
  1. Requirements.txt example:
requirements.txt
Copy

Alibaba Cloud Function Setup

  1. Follow the official Alibaba Cloud documentation to create a compute function with an OSS trigger: https://www.alibabacloud.com/help/en/function-compute/latest/configure-an-oss-trigger
  2. Specify the bucket to monitor and subscribe to the oss:ObjectCreated:* event.
  3. Python Function Example:
Python
Copy

Wasabi Function Setup

  1. Follow the official Wasabi documentation to create an event notification: https://docs.wasabi.com/v1/docs/event-notifications-bucket
  2. Establish a connection with a service capable of sending requests to MetaDefender Storage Security (MDSS).
  3. The Wasabi documentation example uses AWS SNS, which can be integrated with AWS Lambda (see Amazon S3 Lambda Function Setup: How do I configure Event Notifications on my Wasabi bucket using AWS SNS?

S3 Compatible function setup

  • Event-based real-time processing configuration varies for different S3-compatible services.
  • Most S3-compatible services offer event notification similar to Wasabi.
  • The service must send a request to the MDSS endpoint: http(s)://{baseurl}/api/webhook/realtime with the appropriate request body:
JSON
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard