From a9034766691e72441d59dfa64d423a0e818dd1f1 Mon Sep 17 00:00:00 2001 From: Marcus Aspin Date: Mon, 25 Mar 2024 12:06:15 +0000 Subject: [PATCH] PI-2032 Reduce default SQS publish concurrency to 75 (#3537) Co-authored-by: Anthony Britton <105213050+anthony-britton-moj@users.noreply.github.com> --- .../uk/gov/justice/digital/hmpps/publisher/QueuePublisher.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/messaging/src/main/kotlin/uk/gov/justice/digital/hmpps/publisher/QueuePublisher.kt b/libs/messaging/src/main/kotlin/uk/gov/justice/digital/hmpps/publisher/QueuePublisher.kt index 3f89c21265..b04b7ea384 100644 --- a/libs/messaging/src/main/kotlin/uk/gov/justice/digital/hmpps/publisher/QueuePublisher.kt +++ b/libs/messaging/src/main/kotlin/uk/gov/justice/digital/hmpps/publisher/QueuePublisher.kt @@ -19,7 +19,7 @@ class QueuePublisher( private val sqsTemplate: SqsTemplate, private val objectMapper: ObjectMapper, @Value("\${messaging.producer.queue}") private val queue: String, - @Value("\${messaging.producer.concurrency:100}") private val limit: Int + @Value("\${messaging.producer.concurrency:75}") private val limit: Int ) : NotificationPublisher { private val permit = Semaphore(limit)