Commit 40bdde8
SQS Automatic Request Batching (#5580)
* Codegenerate BatchManager API under AsyncClient and Initail Interfaces for BatchManager (#5321)
* Codegenerate BatchManager API under AsyncClient and Add empty initial Batchmanager interfaces and Implementations
* Addressed review comments
* Added Internal classes required for BatchManager Implementation
* Revert "Added Internal classes required for BatchManager Implementation"
This reverts commit 318969b.
* Internal classes and RequestBatchManager Impelementation (#5418)
* Added Internal classes required for BatchManager Implementation
* Added Batch Send Implementation
* Handled review comments
* Handled review comments
* Handled review comments
* Made RequestBatchManager class a Abstract class
* Checkstyle issues
* Removed unused methods
* New lines removed
* Made public static to private state for sqsBatch functions
* Constants added
* Sonar cloud issues fixed
* commit to check why test on codebuild
* Increased Timeouts for get
* Added abstract methods
* Handled comments to remove Builders
* Handled comments to take care when batchmanager closed while pending requests
* Handled comments
* Checkstyle issue
* Added Consumer builders args for existing APIs of BatchManager (#5514)
* Receive Batch Manager Implementation (#5488)
* Add Recieve Buffer Queue And its related configuration
* Update ReceiveBatch manager
* Recieve Batch Manager Implementation
* Receive Batch Manager Implemetation
* Handled review comments
* Checkstyle failure
* Flsky test case fixed
* Flaky test case fixed
* Hamdled review comments
* Handled comments
* Removed ReceiveMessageCompletableFuture
* SdkClosable implemented
* Added ReceiveMessageBatchManager class for completeness
* Checkstyle issues
* Null checks
* Handled comments from Zoe
* Updated the defaults to 50ms same as V1 after surface area review
* Revert "Updated the defaults to 50ms same as V1 after surface area review"
This reverts commit e7d2295.
* Bytes Based batching for SendMessageRequest Batching (#5540)
* Initial changes
* Initial changes 2
* Byte Based batching for SendMessage API
* Byte Based batching for SendMessage API
* Handled comments
* Checkstyle issue
* Add User Agent for Sqs Calls made using Automatic Batching Manager (#5546)
* Add User Agent for Sqs Calls made using Automatic Batching Manager as hll/abm
* Review comments
* Update comments from PR 5488 (#5550)
* Update comments of PR 5488
* Update comments from PR 5488
* Handled surface area review comments (#5563)
* Initial version
* Intermediate changes
* Update after internal poll
* ResponseCOnfiguration construction updated
* RequestOverride configuration check added to Bypass batch manager
* Handled review comments
* Removed TODO since validations are handled in BatchPverrideConfiguration
* Fix issue where the Scheduled Timeout was incorrectly completing the futures with empty messages (#5571)
* Fix issue where the Scheduled Timeout was incorrectly completing the futures with empty messages
* Handled review comments
* Integ test for Automatic Request Batching (#5576)
* feat(sqs): add BatchManager for client-side request batching to Amazon SQS
The new BatchManager allows for simple request batching using client-side buffering, improving cost efficiency and reducing the number of requests sent to Amazon SQS. The client-side buffering supports up to 10 requests per batch and is supported by the SqsAsyncClient. Batched requests, along with receive message polling, help to increase throughput.
* Add check for scheduledExecutor such that it not null when creating SqsAsyncBatchManager (#5582)
* Add check for scheduledExecutor such that it not null when creating SqsAsyncBatchManager
* Update services/sqs/src/test/java/software/amazon/awssdk/services/sqs/batchmanager/SqsAsyncBatchManagerBuilderTest.java
Co-authored-by: David Ho <[email protected]>
* Update services/sqs/src/test/java/software/amazon/awssdk/services/sqs/batchmanager/SqsAsyncBatchManagerBuilderTest.java
Co-authored-by: David Ho <[email protected]>
* Update services/sqs/src/test/java/software/amazon/awssdk/services/sqs/batchmanager/SqsAsyncBatchManagerBuilderTest.java
Co-authored-by: David Ho <[email protected]>
---------
Co-authored-by: David Ho <[email protected]>
* Updating Timeouts in gets so that we dont wait infinitely
---------
Co-authored-by: David Ho <[email protected]>1 parent 28cfca9 commit 40bdde8
File tree
64 files changed
+7154
-7
lines changed- .changes/next-release
- codegen/src
- main/java/software/amazon/awssdk/codegen
- internal
- model
- config/customization
- intermediate
- naming
- poet
- client
- test
- java/software/amazon/awssdk/codegen/poet
- client
- resources/software/amazon/awssdk/codegen/poet/client
- c2j
- batchmanager
- rest-json
- sra
- services/sqs
- src
- it/java/software/amazon/awssdk/services/sqs
- main
- java/software/amazon/awssdk/services/sqs
- batchmanager
- internal/batchmanager
- resources/codegen-resources
- test/java/software/amazon/awssdk/services/sqs/batchmanager
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
64 files changed
+7154
-7
lines changedLines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| 79 | + | |
| 80 | + | |
79 | 81 | | |
80 | 82 | | |
81 | 83 | | |
| |||
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
342 | 342 | | |
343 | 343 | | |
344 | 344 | | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
345 | 350 | | |
346 | 351 | | |
347 | 352 | | |
| |||
901 | 906 | | |
902 | 907 | | |
903 | 908 | | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
904 | 917 | | |
Lines changed: 20 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| 74 | + | |
| 75 | + | |
74 | 76 | | |
75 | 77 | | |
76 | 78 | | |
| |||
789 | 791 | | |
790 | 792 | | |
791 | 793 | | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
792 | 812 | | |
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
192 | 197 | | |
193 | 198 | | |
194 | 199 | | |
| |||
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
77 | 82 | | |
78 | 83 | | |
79 | 84 | | |
| |||
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
199 | 204 | | |
Lines changed: 41 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
104 | 105 | | |
105 | 106 | | |
106 | 107 | | |
| 108 | + | |
107 | 109 | | |
108 | 110 | | |
109 | 111 | | |
| |||
139 | 141 | | |
140 | 142 | | |
141 | 143 | | |
142 | | - | |
| 144 | + | |
143 | 145 | | |
144 | 146 | | |
145 | 147 | | |
| |||
155 | 157 | | |
156 | 158 | | |
157 | 159 | | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
158 | 164 | | |
159 | 165 | | |
160 | 166 | | |
| |||
180 | 186 | | |
181 | 187 | | |
182 | 188 | | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | 189 | | |
187 | 190 | | |
188 | 191 | | |
| |||
263 | 266 | | |
264 | 267 | | |
265 | 268 | | |
266 | | - | |
| 269 | + | |
267 | 270 | | |
268 | 271 | | |
269 | 272 | | |
270 | 273 | | |
271 | 274 | | |
272 | 275 | | |
273 | 276 | | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
274 | 281 | | |
275 | 282 | | |
276 | 283 | | |
| |||
547 | 554 | | |
548 | 555 | | |
549 | 556 | | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
550 | 577 | | |
551 | 578 | | |
552 | 579 | | |
| |||
621 | 648 | | |
622 | 649 | | |
623 | 650 | | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
624 | 660 | | |
Lines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
99 | 102 | | |
100 | 103 | | |
101 | 104 | | |
| |||
162 | 165 | | |
163 | 166 | | |
164 | 167 | | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
165 | 178 | | |
166 | 179 | | |
167 | 180 | | |
| |||
532 | 545 | | |
533 | 546 | | |
534 | 547 | | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
535 | 554 | | |
0 commit comments