🐰 Add RabbitMQ Integration for Chat Log Processing Triggers#1
Merged
Conversation
…at_logger.py, rabbitmq_publisher.py, test_rabbitmq.py, Makefile updated for international collaboration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🐰 Add RabbitMQ Integration for Chat Log Processing Triggers
📋 개발 배경 (Development Background)
기존의 MCP Chat Logger는 단순히 파일 저장만 지원했으나, chat log를 가공하기 위한 트리거로서 AMQP(RabbitMQ)를 사용하도록 확장했습니다.
AMQP를 도입한 주요 이유:
✨ 주요 변경사항 (Key Changes)
🏗️ 아키텍처 개선
utils/rabbitmq_publisher.py추가로 AMQP 로직 분리dev-tools/디렉토리에 개발용 Docker 환경 집중🔧 핵심 기능 추가
llmLogger(direct type)llm_loggerllm_loggerRABBITMQ_HOST,RABBITMQ_PORT,RABBITMQ_USERNAME,RABBITMQ_PASSWORD🌍 국제화 및 사용성 개선
📊 변경 통계 (Change Statistics)
🆕 새로운 파일들
utils/rabbitmq_publisher.py- RabbitMQ 메시지 발행 모듈dev-tools/docker-compose.yml- 개발용 RabbitMQ 환경dev-tools/.env.example- 환경변수 템플릿dev-tools/test_rabbitmq.py- 개발용 연결 테스트rabbitmq_init/init.sh- RabbitMQ 초기화 스크립트🔄 주요 수정
chat_logger.py- AMQP 통합 및 자동 모드 감지 로직 추가README.md,README_ko.md,README_en.md- 전면 개편으로 새로운 아키텍처 반영pyproject.toml-pika,python-dotenv의존성 추가❌ 제거된 요소
README_zh.md- 중복 파일 정리 (README.md가 중국어)Makefile- 환경변수 기반 자동 설정으로 대체test_rabbitmq_connection,get_rabbitmq_config)🚀 사용 예시 (Usage Examples)
RabbitMQ 모드 (환경변수 설정)
파일 전용 모드 (환경변수 없음)
🔗 연관 이슈 및 배경
이 PR은 chat log 데이터의 후속 처리를 위한 안정적인 트리거 시스템 구축을 목표로 합니다. 파일 저장만으로는 처리 트리거가 소실될 위험이 있어, RabbitMQ를 통한 메시지 기반 트리거 시스템을 도입하여 데이터 처리의 안정성과 확장성을 확보했습니다.
이 Pull Request는 기존 기능을 유지하면서도 확장 가능한 아키텍처로 발전시킨 중요한 업데이트입니다. 🎉