From c82dbc65725e7604b30210b6c658f5523e7b8a70 Mon Sep 17 00:00:00 2001 From: cherry2250 Date: Mon, 27 Oct 2025 11:50:19 +0900 Subject: [PATCH] =?UTF-8?q?Content=20Service=20Kafka=20=EC=9D=98=EC=A1=B4?= =?UTF-8?q?=EC=84=B1=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - build.gradle에서 spring-kafka 의존성 삭제 - application*.yml에서 Kafka 설정 제거 - content-service는 Redis에 데이터를 저장하는 역할만 수행 - 서비스 간 비동기 통신이 필요 없어 Kafka 불필요 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- content-service/build.gradle | 3 --- content-service/src/main/resources/application-dev.yml | 8 -------- content-service/src/main/resources/application-local.yml | 7 ------- content-service/src/main/resources/application.yml | 8 -------- 4 files changed, 26 deletions(-) diff --git a/content-service/build.gradle b/content-service/build.gradle index 2346bcc..3518c28 100644 --- a/content-service/build.gradle +++ b/content-service/build.gradle @@ -5,9 +5,6 @@ configurations { } dependencies { - // Kafka Consumer - implementation 'org.springframework.kafka:spring-kafka' - // Redis for AI data reading and image URL caching implementation 'org.springframework.boot:spring-boot-starter-data-redis' diff --git a/content-service/src/main/resources/application-dev.yml b/content-service/src/main/resources/application-dev.yml index a155a85..a58c15c 100644 --- a/content-service/src/main/resources/application-dev.yml +++ b/content-service/src/main/resources/application-dev.yml @@ -8,14 +8,6 @@ spring: port: ${REDIS_PORT:6379} password: ${REDIS_PASSWORD:} - kafka: - bootstrap-servers: ${KAFKA_BOOTSTRAP_SERVERS:4.230.50.63:9092} - consumer: - group-id: ${KAFKA_CONSUMER_GROUP_ID:content-service-consumers} - auto-offset-reset: earliest - key-deserializer: org.apache.kafka.common.serialization.StringDeserializer - value-deserializer: org.apache.kafka.common.serialization.StringDeserializer - server: port: ${SERVER_PORT:8084} diff --git a/content-service/src/main/resources/application-local.yml b/content-service/src/main/resources/application-local.yml index c7ac1dd..eb843f8 100644 --- a/content-service/src/main/resources/application-local.yml +++ b/content-service/src/main/resources/application-local.yml @@ -28,17 +28,10 @@ spring: host: localhost port: 6379 - kafka: - # Kafka 연결 비활성화 (Mock 사용) - bootstrap-servers: localhost:9092 - consumer: - enabled: false - autoconfigure: exclude: - org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration - org.springframework.boot.autoconfigure.data.redis.RedisRepositoriesAutoConfiguration - - org.springframework.boot.autoconfigure.kafka.KafkaAutoConfiguration server: port: 8084 diff --git a/content-service/src/main/resources/application.yml b/content-service/src/main/resources/application.yml index c55102d..9da4c98 100644 --- a/content-service/src/main/resources/application.yml +++ b/content-service/src/main/resources/application.yml @@ -8,14 +8,6 @@ spring: port: ${REDIS_PORT:6379} password: ${REDIS_PASSWORD:} - kafka: - bootstrap-servers: ${KAFKA_BOOTSTRAP_SERVERS:localhost:9092} - consumer: - group-id: ${KAFKA_CONSUMER_GROUP_ID:content-service-consumers} - auto-offset-reset: earliest - key-deserializer: org.apache.kafka.common.serialization.StringDeserializer - value-deserializer: org.apache.kafka.common.serialization.StringDeserializer - server: port: ${SERVER_PORT:8084}