본문 바로가기

전체 글

AWS @SqsListener 사용시 warn 문제. The failing operation will be retried in 10000 milliseconds ... Running, pool size = 3, active threads = 3, queued tasks = 0, completed tasks = 20 ... 개발환경에서는 문제없이 잘 받아주던 Queue 리스너가 운영에 배포되면서 위와 같은 오류가 났다. 처리 되기는 하는데 밀리는 상황. 메세지 내용으로 보면 대략 처리량의 문제로 보인다. 즉, 베타의 간헐적 메시지 처리가 운영에서의 무지막지한 메시지 처리를 허용하지 못한. 아.. 뭔가 또, Configuration을 만들어줘야 하는 구나... 하고 찾아보니. https://stackoverflow.com/questions/51373082/sp.. 더보기
note https://thoughts-on-java.org/complete-guide-inheritance-strategies-jpa-hibernate/ Complete Guide: Inheritance strategies with JPA and Hibernate Hibernate and JPA support 4 inheritance strategies which map the entities to different table models. But which one is the best for your use case? thoughts-on-java.org https://www.logicbig.com/tutorials/java-ee-tutorial/jpa/mapped-super-class.html JPA + H.. 더보기
Spring Cache Error 오늘의 삽질. 첫번째: spring-data-jpa에서 인터페이스 기반의 projection을 반환 받아 redis cache에 담으면 에러가 난다. (리포팅되어 있는 듯.) "java.io.NotSerializableException: org.springframework.data.projection.DefaultMethodInvokingMethodInterceptor" ... 두번째: @JsonView가 지정된 Dto를 캐시에 담은 후 Controller에서 재조회시 @JsonView의 속성이 지정되지 않는다. 즉, Controller를 거쳐 출력되는 것은 옵션에 따라 다르지만 empty 이거나 Dto 전체 속성이거나 일것이다.(전체 속성이여도 값은 null) 좀 더 해봐야 겠지만 거참... 더보기
Bean Mapper/Transformer Mapper/Transformer bull-bean-transformer : https://github.com/HotelsDotCom/bull HotelsDotCom/bull BULL - Bean Utils Library. Contribute to HotelsDotCom/bull development by creating an account on GitHub. github.com Mapstruct : https://mapstruct.org/ MapStruct – Java bean mappings, the easy way! Java bean mappings, the easy way! Get started Download mapstruct.org Orika : https://github.com/orika-m.. 더보기
요즘 Local 개발 환경 맞추기 힘드네 힘들어.. 개발서버 환경을 AWS 기반으로 이전하면서 Local 환경 꾸미기가 좀 난해한 경우가 많아서.. DB나 Redis를 제외하고는 그냥 서버별 Mock을 놔두고 Configuration에 따라 local/dev가 스위칭 되도록 처리해서 쓰고 있는데.. 이것도 몇몇은 좀 그래... 그렇다고 Docker 를 마구 띄워두고 하자니 16G 메모리가 터지려고 그러고..ㅎㅎ 가끔 IDC에 Spring 2.x가 그리운건 꼰대가 되어 간다는 거겠지..콜록콜록. 옆에 널부러저 있는 vuejs와 kotlin 책이 날 슬프게 하는 군..ㅎㅎ ...아.. nodejs 가 들어오면서 더 힘들어졌어.. oTL.. https://github.com/localstack/localstack localstack/localstack 💻 A .. 더보기