사용자 도구

사이트 도구


springframework:aws:sqs

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

다음 판
이전 판
springframework:aws:sqs [2023/07/27 17:12]
kwon37xi 만듦
springframework:aws:sqs [2023/09/19 08:12] (현재)
kwon37xi
줄 1: 줄 1:
 ====== Spring Cloud AWS - SQS ====== ====== Spring Cloud AWS - SQS ======
   * [[aws:sqs|AWS SQS]]   * [[aws:sqs|AWS SQS]]
 +  * [[springframework:aws|Spring Cloud AWS]]
  
-===== Concurrency ===== +===== Spring Cloud AWS 3 Concurrency ===== 
-  * [[+  * 동시성 조정등이 옵션으로 자유롭게 되도록 변경되었다. 
 + 
 +===== Spring Cloud AWS 2 이하 Concurrency ===== 
 +  * ''@SqsListener'' 는 ''concurrency'' 를 아무리 많이 줘도 최대 10개를 넘을 수 없다. 
 +  * 가장 단순한 해결책은 동일한 queue 를 바라보는 리스너를 여러개 만들고 각각 10으로 설정하는 것이다. 
 +  * 하지만 난잡하다. 
 +  * 별도 쓰레드풀을 만들고, 거기서 처리하되 ''DeletionPolicy.NEVER'' 로 지정하고 쓰레드에서 작업 수행하고 난뒤에 ''ack''를 하면 된다. 
 +    * 이때 쓰레드풀의 정책중 요청이 넘쳤을 때 호출자 쓰레드를 사용하게 해도 좋다. 
 +  * [[https://medium.com/conductor-r-d/processing-more-than-10-sqs-messages-concurrently-with-spring-cloud-aws-messaging-5d09ebd94abd|Processing more than 10 SQS messages concurrently with Spring Cloud AWS Messaging | by Anton Shumsky | Conductor R&D | Medium]] 
 +  * [[https://awstip.com/how-to-efficiently-scale-aws-sqs-to-process-millions-of-messages-concurrently-in-spring-cloud-aws-c2431ed9e828|How to Efficiently Scale AWS SQS Listener to Process Millions of Messages Concurrently in Spring Cloud AWS java? | by saurabh bhatia | AWS Tip]] 
 +  * [[https://techblog.woowahan.com/2667/|배달의민족 최전방 시스템! ‘가게노출 시스템’을 소개합니다. | 우아한형제들 기술블로그]] : [[reactive_programming:reactor|Project Reactor]] 로 리스너 구현하고 배압 처리
  
 ===== 참조 ===== ===== 참조 =====
springframework/aws/sqs.1690445531.txt.gz · 마지막으로 수정됨: 2023/07/27 17:12 저자 kwon37xi