config_params.go 774 B

1234567891011121314151617181920212223
  1. package ups_sdk
  2. import "time"
  3. var (
  4. // HttpClientTimeout HTTP超时
  5. HttpClientTimeout = 30 * time.Second
  6. // MessageReceiverVisibilityTimeout 消息保持pending的时长,超过这个时长的空闲消息会被消费者再次消费
  7. MessageReceiverVisibilityTimeout = 30 * time.Second
  8. // MessageReceiverBlockingTimeout 获取消息的阻塞时长,会影响停止接收消息时的等待时长
  9. MessageReceiverBlockingTimeout = 5 * time.Second
  10. // MessageReceiverReclaimInterval 重新拉取消息的间隔
  11. MessageReceiverReclaimInterval = 1 * time.Second
  12. // MessageReceiverBufferSize 消息队列的缓冲大小,缓存多少消息
  13. MessageReceiverBufferSize = 1000
  14. // MessageReceiverConcurrency 处理消息的协程数
  15. MessageReceiverConcurrency = 10
  16. )