Timeouts and Polling¶
Polling model¶
EuroAPI uses queue-based message retrieval.
GET /sortationreturns one message per call when available.GET /destinationreturns one message per call when available.
Long polling¶
Both endpoints support timeOut query parameter in seconds.
- Input range is clamped to
0..30 0means immediate check- Returns
204when 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 /statusqueue counters (Sortation Q,Destination Q).