Skip to content

Timeouts and Polling

Polling model

EuroAPI uses queue-based message retrieval.

  • GET /sortation returns one message per call when available.
  • GET /destination returns one message per call when available.

Long polling

Both endpoints support timeOut query parameter in seconds.

  • Input range is clamped to 0..30
  • 0 means immediate check
  • Returns 204 when timeout expires with no message

Example:

GET /destination?timeOut=10

Practical guidance

  • Use one active consumer per queue path per logical client.
  • Tune polling/timeout based on throughput and latency goals.
  • Monitor GET /status queue counters (Sortation Q, Destination Q).