amazonka icon indicating copy to clipboard operation
amazonka copied to clipboard

`Seconds` type is too coarse

Open endgame opened this issue 2 years ago • 2 comments

Some services (example: DynamoDB) generally respond really quickly (<10ms is normal, IME), and occasionally take much longer. A DynamoDB specialist advised us to give up on slow requests and retry them instead of waiting, but the Seconds type can only hold an integral number of seconds.

Replace it with either more granular integral type, or a type that can handle decimals?

endgame avatar Sep 27 '21 12:09 endgame

Probably should switch to using DiffTime (or Pico directly.)

brendanhay avatar Sep 27 '21 13:09 brendanhay

DiffTime sounds good, as it's a type about time, but will need to see what http-client is prepared to accept. But will think about that later.

endgame avatar Sep 27 '21 21:09 endgame