반응형
◇ 공부 기록용으로 작성하였으니 틀린점, 피드백 주시면 감사하겠습니다 ◇
Workflow를 관리하는 서비스
- Step Functions : GUI 또는 YAML 파일로 만들 수 있다.
- SWF : GUI를 지원하지 않는다.
Workflow를 관리하는 서비스 (최신 서비스)
AWS Step Functions
AWS Step Functions는 서버리스(Serverless)의 Workflow 관리 서비스이다.
이를 통해 개발자는 AWS 리소스의 Workflow(수행 순서)를 설정할 수 있다.
- 분산 애플리케이션이나 마이크로 서비스를 State Machine이라는 구성으로 관리를 자동화 할 수 있다.
- AWS Console에서 각 서비스를 Workflow 형태로 가시화 할 수 있다.
- Step Functions는 GUI 또는 YAML 파일로 만들 수 있다.
[AWS Step Functions의 Use Cases]: https://aws.amazon.com/step-functions/use-cases/
Step Functions를 활용해서 여러 Lambda 함수를 결합하여 웹 애플리케이션을 구축하는 예제.
은행 계좌 생성: 고객의 이름과 주소를 검증한 후 새 은행 계좌를 만든다.
Lambda 병렬 실행:
- CheckName과 CheckAddress라는 두 개의 Lambda 함수가 동시에 실행된다.
- 이 두 작업이 끝나면, ApproveApplication Lambda 함수가 실행되어 계좌 생성 승인을 완료한다.
오류 처리:
- 오류가 발생할 경우, 재시도하거나 예외를 처리할 수 있는 방법을 설정한다.
- Lambda 함수는 오류 처리에 신경 쓸 필요 없이 비즈니스 로직에만 집중할 수 있다.
Workflow를 관리하는 서비스 (과거의 서비스)
Amazon SWF (Simple Workflow Service)
SWF는 GUI를 지원하지 않기 때문에 신규 작성일 경우에는 추천하지 않은 서비스이다
728x90
반응형