스케줄러를 생성하기 위해 AWS에서 제공한 인터페이스
Interface SchedulerAsyncClient
해석하면 다음과 같다.
- Amazon EventBridge Scheduler의 서비스 클라이언트를 비동기적으로 접근 가능
- builder() 메서드를 사용해 생성 가능
- SdkAsyncHttpClient 구성하여 non-blocking I/O 수행
- EventBridge Scheduler에 사용할 수 있는 API와 데이터 타입 제공
CreateScheduleRequest
스케줄러 작업 생성 및 세부사항 지정
- target : com.amazonaws.services.scheduler.model.Target
세부사항을 지정해서 Target build
- scheduleExpression
The expression that defines when the schedule runs. The following formats are supported.
🔹at expression - at(yyyy-mm-ddThh:mm:ss)
🔹rate expression - rate(value unit)
🔹cron expression - cron(fields)
- flexibleTimeWindow: com.amazonaws.services.scheduler.model.FlexibleTimeWindow
스케줄된 작업의 실행시간 범위 설정
👉 정확한 시간에 실행하는 것보다 윈도우 내에서 유연하게 실행할 때 사용
ex). 매일 오후 8시에 작업을 실행해야 하지만, 8시 ± 30분 내에서 실행해도 되는 경우 유연한 시간 윈도우 설정
참고자료
'AWS' 카테고리의 다른 글
[AWS] AWS Cognito와 OAuth (3) | 2024.10.28 |
---|---|
[AWS] AWS CloudFormation (0) | 2024.10.15 |
[AWS] AWS IoT Core란 ? (0) | 2024.09.27 |
[AWS] Amazon EventBridge Scheduler와 AWS Lambda 사용하기 (0) | 2024.07.10 |
[AWS] Spring Boot + Docker + AWS EC2 배포 (0) | 2023.09.22 |