-
Notifications
You must be signed in to change notification settings - Fork 55
-
Java has an options that is explained here: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-throughput-horizontal-scaling-and-batching.html
final AmazonSQS sqsClient = AmazonSQSClientBuilder.standard() .withClientConfiguration(new ClientConfiguration() .withMaxConnections(producerCount + consumerCount)) .build();
I could not find this option in the kotlin version.
Beta Was this translation helpful? Give feedback.
All reactions
Hi @jadlr. The AWS SDK for Kotlin does not support explicit configuration of maximum connections due to limitations in the underlying default HTTP engine (OkHttp). That said, it is possible to configure concurrency during client initialization:
val sqs = SqsClient { httpClient { maxConcurrency = 64u } }
Does that address your needs?
Replies: 1 comment 1 reply
-
Hi @jadlr. The AWS SDK for Kotlin does not support explicit configuration of maximum connections due to limitations in the underlying default HTTP engine (OkHttp). That said, it is possible to configure concurrency during client initialization:
val sqs = SqsClient { httpClient { maxConcurrency = 64u } }
Does that address your needs?
Beta Was this translation helpful? Give feedback.
All reactions
-
👍 1
-
Yes, absolutely! Thanks for your reply @ianbotsf
Beta Was this translation helpful? Give feedback.