binchoo / PaimonGanyu

여행 비서 페이몬! Genshin Impact AWS workflows & KakaoTalk chatbot skills
https://pf.kakao.com/_mtPFb
GNU General Public License v3.0
7 stars 1 forks source link

[Redeem][Application] sqsClient.sendMessageBatch should not exceed the batch size (current 10) #13

Closed binchoo closed 2 years ago

binchoo commented 2 years ago

As-is: This code is trying to send the redemption requests for all users at once. The batch size should be less than equal to 10. https://github.com/binchoo/PaimonGanyu/blob/429dea044755c503493a0bd2432fc3a12e33e707/PaimonGanyu/application/src/main/java/org/binchoo/paimonganyu/lambda/redeem/RedeemCodeDeliveryLambda.java#L62-L70

To-be: Split requests into groups whose size is less than or equal to 10.

binchoo commented 2 years ago

2.8 PV is on-air on Saturday July, 2nd. Do this quickly.