Data Action timeout on large payload batch updates

Quick question about the Data Action behavior when handling bulk record updates via our AppFoundry integration. we are seeing intermittent 504 Gateway Timeout errors when the payload size exceeds approximately 50kb. this is happening on the POST /api/v2/integrations/dataactions/{dataActionId}/execute endpoint.

our integration is deployed across three orgs in the us-west-2 region and we are using the standard OAuth 2.0 client credentials flow for authentication. the data action is configured to update a custom object in an external system via a REST API call. we have verified that the external system can handle the load and the response times are well within the acceptable range for smaller payloads.

the error occurs consistently when we attempt to update more than 500 records in a single batch. the request headers include the standard content-type and authorization headers. we have also tried increasing the timeout value in the data action configuration but that did not resolve the issue.

we are using the Genesys Cloud platform API v2. the SDK version is 12.0.0. we have checked the logs and there are no specific error messages indicating the cause of the timeout. the request seems to hang for about 30 seconds before the 504 error is returned.

we have tried splitting the payload into smaller chunks but that introduces latency issues for our end users. we need a reliable way to handle large batch updates without hitting these timeout errors.

any insights into the rate limiting or payload size restrictions for data actions would be appreciated. we are also curious if there is a way to configure the timeout value at the API gateway level or if it is strictly controlled by the platform.

we are currently working around this by implementing a retry mechanism with exponential backoff but that is not ideal for our use case. we would prefer a more deterministic solution.

thanks for any help.