====== Spring Cloud AWS - SQS ====== * [[aws:sqs|AWS SQS]] * [[springframework:aws|Spring Cloud AWS]] ===== 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]] 로 리스너 구현하고 배압 처리 ===== 참조 ===== * [[https://reflectoring.io/spring-cloud-aws-sqs/|Getting Started With AWS SQS and Spring Cloud]] * [[https://www.baeldung.com/spring-cloud-aws-messaging|Spring Cloud AWS – Messaging Support | Baeldung]]