Skip to content

Conversation

@chanwonlee
Copy link
Contributor

관련 Issue (필수)

주요 변경 사항 (필수)

  • session clustering 추가

리뷰어 참고 사항

없음

추가 정보

일단 session clustering 추가로 배포 해보겠습니다!

PR 작성 체크리스트 (필수)

  • 제목이 Issue와 동일함을 확인했습니다.
  • 리뷰어를 지정했습니다.
  • 프로젝트를 연결했습니다.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Summary of Changes

Hello @chanwonlee, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

이 PR은 애플리케이션의 세션 관리 방식을 개선하여 여러 인스턴스 간에 세션을 공유할 수 있도록 세션 클러스터링을 구현합니다. 이를 통해 애플리케이션의 확장성과 안정성이 향상될 것으로 기대됩니다.

Highlights

  • 세션 클러스터링 기능 추가: Spring Session Data Redis를 활용하여 애플리케이션에 세션 클러스터링 기능을 도입했습니다.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point in your pull request via creating an issue comment (i.e. comment on the pull request page) using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in issue comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

이 PR은 Redis를 사용하여 세션 클러스터링을 도입하는 것을 목표로 하고 있습니다. build.gradle.kts, RedisConfig.java, application-prod.yml 파일에 관련 의존성 추가 및 설정 변경이 이루어졌습니다.

전반적으로 올바른 방향의 변경이지만, 치명적인 문제점이 있어 리뷰를 남깁니다. 현재 SecurityConfig.java 파일에서 세션 생성 정책이 SessionCreationPolicy.STATELESS로 설정되어 있습니다. 이 설정은 HTTP 세션을 생성하지 않도록 강제하므로, 이번 PR에서 추가하신 세션 클러스터링 기능이 전혀 동작하지 않게 됩니다. Redis에 세션이 저장되려면, 스프링 시큐리티가 세션을 생성하도록 허용해야 합니다.

이 문제를 해결하려면 SecurityConfig에서 .sessionManagement(session -> session.sessionCreationPolicy(SessionCreationPolicy.STATELESS)) 부분을 제거하거나, SessionCreationPolicy.IF_REQUIRED (기본값) 등으로 변경해야 합니다. 이 변경이 이루어지지 않으면 이번 PR의 변경 사항들은 아무런 효과가 없으므로, 배포 전에 반드시 수정이 필요합니다.

@chanwonlee chanwonlee merged commit bf9397a into develop Sep 11, 2025
3 checks passed
@chanwonlee chanwonlee deleted the feature/153-session-clustering branch September 11, 2025 08:54
@github-project-automation github-project-automation bot moved this to Done in 💙 BE Sep 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[FEATURE] session clustering 추가

3 participants