Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |
Tags
- 인텔리제이에서 프로젝트 이름 바꾸기
- 어댑터패턴
- Spring
- WebMvcConfigurationSupport
- java병렬처리
- 유스콘
- 테스트더블
- 테스트대역
- Java
- reflection api
- 동시요청
- test double
- 클린아키텍처
- 개발컨퍼런스
- refelction API
- GOF
- 개발블로그
- js숫자체크
- MajorGC
- 스프링부트 프로젝트 이름 변경
- @advice
- 자바디자인패턴
- MappingJackson2HttpMessageConverter
- 멀티코어 프로그래밍
- MinorGC
- WebMvcConfigurer
- 헥사고날
- java 멀티스레딩
- mustache함수
- spring boot
Archives
- Today
- Total
목록CompletableFuture (1)
져니의 개발 정원 가꾸기
(java/spring) 병렬 프로그래밍 - 동시에 일을 처리하는 방법들
목차 배경 최근 특정 데이터 수집하는 배치를 개발할 기회가 있었다. 외부 연동사로부터 데이터를 얻어와 데이터 후처리 및 DB에 적재하는 배치작업이었고, 처리 대상 데이터들이 많을 경우 배치의 수행속도를 높이기 위해 어떻게 배치 로직을 가져갈 것인가를 고민했다. 특히 [후처리 ~ DB적재 부분]을 배치 프로젝트 내부에서 다룰 것인지 마이크로서비스 API 서버에서 기능을 제공하도록 개발할 것인지가 메인 고민이었는데, 두 프로젝트 중 하나는 Java7이고, 하나는 Java8+ 이어서 어느 서버에서 제공할 것인지에 따라 적용 가능한 병렬 프로그래밍이 달라졌다. 실제로 수집되는 데이터를 확인해보니 수행시간이 과도하게 길어질 정도로 데이터가 많지 않아서 순차처리하기로 결정했지만, 트래픽이나 데이터 양이 많아질 경우..
개발노트/Spring | Java
2024. 4. 14. 18:39