Notice
Recent Posts
Recent Comments
Link
목록consumer (1)
munjji 님의 블로그
동기와 비동기 처리의 차이에 대해서 이전 포스트에 작성해두었지만, 간략하게 회원가입 예제로 정리해보고 시작해보자.동기public String signUpSync(String email, String name) { // 모든 작업이 순서대로 끝나야 다음으로 넘어감 User user = db.save(email, name); // 1단계: DB 저장 (300ms) emailService.sendWelcome(email); // 2단계: 이메일 발송 (3000ms) imageService.setDefaultProfile(user); // 3단계: 프로필 설정 (1000ms) crmService.register(user); // 4..
CS
2026. 3. 6. 14:24