diff --git a/review/build.gradle b/review/build.gradle index c712cf8..fa8282f 100644 --- a/review/build.gradle +++ b/review/build.gradle @@ -3,4 +3,5 @@ dependencies { // File Storage implementation 'org.springframework.boot:spring-boot-starter-webflux' + implementation 'com.azure:azure-messaging-eventhubs:5.15.0' } diff --git a/store/src/main/java/com/ktds/hi/store/biz/service/ExternalIntegrationInteractor.java b/store/src/main/java/com/ktds/hi/store/biz/service/ExternalIntegrationInteractor.java index b7c8693..7329c7c 100644 --- a/store/src/main/java/com/ktds/hi/store/biz/service/ExternalIntegrationInteractor.java +++ b/store/src/main/java/com/ktds/hi/store/biz/service/ExternalIntegrationInteractor.java @@ -231,7 +231,6 @@ public class ExternalIntegrationInteractor implements ExternalIntegrationUseCase private void publishSyncEvent(Long storeId, String platform, int syncedCount) { try { - // 기존 Event Hub 설정 그대로 유지 ⭐ EventHubProducerClient producer = new EventHubClientBuilder() .connectionString(System.getenv("EVENTHUB_CONNECTION_STRING"), "review-sync") .buildProducerClient(); diff --git a/store/src/main/java/com/ktds/hi/store/infra/gateway/ExternalPlatformAdapter.java b/store/src/main/java/com/ktds/hi/store/infra/gateway/ExternalPlatformAdapter.java index b0487ed..19b78f9 100644 --- a/store/src/main/java/com/ktds/hi/store/infra/gateway/ExternalPlatformAdapter.java +++ b/store/src/main/java/com/ktds/hi/store/infra/gateway/ExternalPlatformAdapter.java @@ -72,8 +72,7 @@ public class ExternalPlatformAdapter implements ExternalPlatformPort { log.info("카카오 리뷰 동기화 시작: storeId={}, externalStoreId={}", storeId, externalStoreId); try { - // 🔥 카카오 크롤링 서비스 실제 호출 - String url = "http://kakao-review-api-service/analyze"; + String url = "http://kakao-review-api-service.ai-review-ns.svc.cluster.local/analyze"; Map requestBody = new HashMap<>(); requestBody.put("store_id", externalStoreId); diff --git a/store/src/main/resources/application.yml b/store/src/main/resources/application.yml index 917460a..f3fc027 100644 --- a/store/src/main/resources/application.yml +++ b/store/src/main/resources/application.yml @@ -33,7 +33,7 @@ external-api: base-url: https://openapi.naver.com kakao: api-key: ${KAKAO_API_KEY:} - base-url: http://kakao-review-api-service + base-url: http://kakao-review-api-service.ai-review-ns.svc.cluster.local google: api-key: ${GOOGLE_API_KEY:} base-url: https://maps.googleapis.com