Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feat] 배포 서버에서 에러 발생 시 Slack에 알림 전송 #29

Merged
merged 8 commits into from
Sep 5, 2024

Conversation

jaeuk520
Copy link
Contributor

@jaeuk520 jaeuk520 commented Sep 4, 2024

#️⃣ 이슈

📝 작업사항

  • 에러 핸들링 ControllerAdvice 구현
  • 스프링-Slack 연동
  • 에러 메시지 전송 @Async로 비동기 처리

📌 비동기 처리 이유

  • Slack 메시지 전송은 제어할 수 있는 부분이 아니다. 만약 Slack 서버에 지연이 생겨 전송이 늦는다면 가장 중요한 프로세스인 클라이언트 응답이 제대로 수행되지 않게 될 수 있다.

따라서 Slack 메시지 전송 로직을 비동기로 처리하여 클라이언트에게 응답을 제공하는 부분에 지연이 생기지 않도록 처리한다.

  • 스레드 풀 방식을 사용하도록 TaskExecutor 사용

@jaeuk520 jaeuk520 added 인프라/데브옵스 인프라 / 데브옵스 기능 구현 기능 구현 labels Sep 4, 2024
Copy link

sonarqubecloud bot commented Sep 5, 2024

@jaeuk520 jaeuk520 merged commit e30da06 into develop Sep 5, 2024
2 checks passed
@jaeuk520 jaeuk520 deleted the feature/slack branch September 9, 2024 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
기능 구현 기능 구현 인프라/데브옵스 인프라 / 데브옵스
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant