tencent cloud

Feedback

SCF Target

Last updated: 2022-05-05 16:10:05

    By using an event rule, you can deliver collected events to the specified delivery target for processing and consumption. Currently, EventBridge allows you to set SCF as a delivery target and provides multiple preconfigured templates to help you deliver events.

    Template Function-based Delivery

    Select a function template, and EventBridge will create a target function for event delivery for you based on the provided default template. Currently, two function templates are available: CKafka and EIS delivery templates. You can select and configure them in Event Rule > Event Target.

    Note

    If your target CKafka instance has a username and password, please ensure that the entered information is correct; otherwise, event delivery may fail.


    Custom Function Delivery

    In addition to using templates, you can deliver events to your created custom functions to implement more business logic.

    Enabling Batch Delivery

    If the delivery target is SCF, EventBridge will support batch delivery, and you can select a delivery method based on your actual business requirements:

    Batch delivery parameter description:

    • Maximum waiting time: The maximum waiting time for each function trigger. Value range: 0–60s. Default value: 0.
    • Maximum messages: The maximum number of messages that can be pulled and batch delivered to the current function at a time, which can be up to 10,000 currently. According to the message size and writing speed, the number of messages delivered when the function is triggered each time may not always reach the maximum number; instead, it is a variable value between 1 and the maximum number.
    Note:

    After the batch delivery feature is enabled, events will be delivered together as an array. Please ensure that the event consumer is compatible with such format.

    {
    "specversion": "1.0.2",
    "id": "13a3f42d-7258-4ada-da6d-023a333b4662",
    "type": "connector:apigw",
    "source": "apigw.cloud.tencent",
    "subject": "qcs::apigw:ap-guangzhou:uid1250000000/appidxxx:Serverid/Appid",
    "time": "1615430559146",
    "region": "ap-guangzhou",
    "datacontenttype": "application/json;charset=utf-8",
    "data":{
    $data_value
    }
    }

    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support