Skip to content

deploy: EDA choreography 패턴 전환 및 GCS ADC 마이그레이션#84

Merged
lsh1215 merged 11 commits intomainfrom
develop
Feb 13, 2026
Merged

deploy: EDA choreography 패턴 전환 및 GCS ADC 마이그레이션#84
lsh1215 merged 11 commits intomainfrom
develop

Conversation

@lsh1215
Copy link
Member

@lsh1215 lsh1215 commented Feb 13, 2026

Summary

  • AMQP domain events 기반 choreography 패턴 구현 (OCR → Event → Alert 독립 구독)
  • Alert Worker: Celery worker → kombu event consumer 전환
  • GCS 인증: JSON 키 → ADC (Application Default Credentials) 마이그레이션
  • 부하테스트 스크립트 전면 개선 (5개 시나리오, 가설-실행-비교 프레임워크)

Test plan

  • 6개 GCE 인스턴스 배포 및 E2E 파이프라인 검증 완료
  • 실제 GCS 이미지로 OCR 처리 확인
  • CI 전체 통과 (lint, pytest, docker build)

- Add main branch to CI triggers
- Add GCP authentication for Artifact Registry
- Push images to AR on main branch merge
- Add trigger-deploy job to dispatch depoly CD workflow
- Add docker/monitoring/README.md clarifying local vs production
- Add repository responsibility matrix to README.md
Replace GCP_SA_KEY (JSON key) with WIF for keyless authentication.
Hardcode AR_REGION and GCP_PROJECT_ID as env vars instead of secrets.
Add id-token write permission for OIDC token.
Remove setup-gcloud step (not needed with WIF).
ci: add Artifact Registry push and cross-repo deploy trigger
VehicleCreateSerializer was missing the id field, causing POST
/api/v1/vehicles/ to return a response without the created resource's
ID. This broke any client that needs the ID after creation (e.g., FCM
token update via PATCH /api/v1/vehicles/{id}/fcm-token/).
…onse-missing-id

fix: include id in vehicle creation response
- AMQP domain events 기반 choreography 패턴 구현
  - core/events/publisher.py: topic exchange로 이벤트 발행
  - core/events/consumer.py: kombu ConsumerMixin으로 이벤트 구독
  - OCR → detections.completed 이벤트 → Alert 독립 구독
- Alert Worker: Celery worker → kombu event consumer로 전환
- GCS 인증: JSON 키 파일 → ADC (Application Default Credentials)
  - GOOGLE_APPLICATION_CREDENTIALS 환경변수 제거
  - GCE 메타데이터 서버 자동 인증 사용
  - FIREBASE_CREDENTIALS는 유지 (FCM용)
- MQTT subscriber: paho-mqtt v2 API 적용
- 부하테스트 스크립트 전면 개선
  - 5개 시나리오 (smoke/baseline/saturation/spike/sustained)
  - 가설-실행-비교 프레임워크
  - MySQL 파이프라인 검증
- 부하테스트 문서 추가 (docs/load-testing.md)
- Remove unnecessary f-string prefixes (F541)
- Fix line too long >120 chars (E501)
…horeography

refactor: EDA choreography 패턴 전환 및 GCS ADC 마이그레이션
@lsh1215 lsh1215 merged commit 246d4f9 into main Feb 13, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant