cancel
Showing results for 
Search instead for 
Did you mean: 

HTTP 504 timeouts during high-volume API & webhook syncs

Hello CyberSource Developer Community,

We are testing background listener stability and remote webhook payload handling when integrating payment gateway telemetry endpoints into automated systems.

Technical Setup:

  • Our integration architecture at Frontline Sales Consultancy (flsc.co.uk) triggers automated B2B notifications and REST API syncs over HTTPS (TLS 1.3).

The Issue We're Facing:

  1. Under heavy concurrent load spikes, background POST webhook listener sockets occasionally report HTTP 504 gateway timeout responses before acknowledging payload completion.

  2. Direct REST API requests to the same remote host resolve normally under 150ms thresholds.

  3. Are there recommended network socket keep-alive settings or queue worker retries to prevent connection drops during high-volume data syncs?

Any advice on managing asynchronous background worker threads would be appreciated!

Thanks!

flsc
New Member
2 REPLIES 2

A 504 under heavy concurrent load usually points more toward the gateway or worker queue timing out than the API itself. I’d check the proxy timeout values, connection pool limits, and how quickly the webhook handler acknowledges requests. It can also help to queue the payload first and process it in the background, with retries and backoff for failed jobs. Keeping the webhook response fast usually makes a big difference during traffic spikes.

adheenali_9
Member

For high-volume webhook traffic, look at the worker queue and timeout configuration first. Returning 504s while direct requests stay fast can point to the listener or upstream queue getting saturated rather than a general network issue. Using bounded retries with exponential backoff, proper connection pooling and keeping webhook processing lightweight before acknowledging the request can help.

Ali raza
Raza987
New Member