Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโ€™ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

๐Ÿ› [Fix] redis ๋ฌธ์ œ #361

Merged
merged 13 commits into from
Dec 14, 2023
Merged

Conversation

AYoungSn
Copy link
Contributor

@AYoungSn AYoungSn commented Dec 8, 2023

๐Ÿ“Œ ๊ฐœ์š”

  • ๊ธฐ์กด์— ๋žญํ‚น ๊ธฐ๋Šฅ์„ Redis ๋ฅผ ํ†ตํ•ด ๊ด€๋ฆฌํ•˜๋ฉด์„œ ๋™์ผ ์ ์ˆ˜๊ฐ€ ๋‹ค๋ฅธ ๋“ฑ์ˆ˜๋กœ ๋ณด์—ฌ์ง€๋Š” ๋ฌธ์ œ๋ฅผ ์ˆ˜์ •ํ–ˆ์Šต๋‹ˆ๋‹ค.
  • v2 ๋กœ ๋ณ€๊ฒฝํ•˜๋ฉด์„œ ํ…Œ์ŠคํŠธ ํ›„ ์ œ๋Œ€๋กœ ์ž‘๋™๋˜๋Š” ๊ฒƒ์ด ํ™•์ธ๋˜๋ฉด ๊ทธ๋•Œ ๊ธฐ์กด api ์‚ญ์ œํ•  ์˜ˆ์ •์ž…๋‹ˆ๋‹ค.

๐Ÿ’ป ์ž‘์—…์‚ฌํ•ญ

  • ๊ธฐ์กด Redis ๋กœ ๋žญํ‚น ์กฐํšŒ๋ฅผ ๊ด€๋ฆฌํ•˜๋ฉด์„œ ๋™์ผ ์ ์ˆ˜์ž„์—๋„ ๋ถˆ๊ตฌํ•˜๊ณ  ๋‹ค๋ฅธ ๋“ฑ์ˆ˜๊ฐ€ ๋‚˜์˜ค๋Š” ๋ฌธ์ œ๊ฐ€ ์žˆ์–ด db ํ•จ์ˆ˜์ธ rank() over() ๋กœ ๋ณ€๊ฒฝํ•˜์˜€์Šต๋‹ˆ๋‹ค.
  • ์†๋„ ๋ฌธ์ œ๋Š” ์บ์‹ฑ ๊ธฐ๋Šฅ์„ ํ†ตํ•ด ํ•ด๊ฒฐํ–ˆ๊ณ , ์ผ๊ด€์„ฑ์„ ์œ„ํ•ด ๊ด€๋ จ api ์— ๊ด€๋ จ ์บ์‹œ ์ œ๊ฑฐ๋˜๋„๋ก ์ˆ˜์ •ํ–ˆ์Šต๋‹ˆ๋‹ค.
  • ๊ธฐ์กด api ๋Š” ์œ ์ง€ํ•˜๊ณ  api v2 ๋ฒ„์ „์œผ๋กœ ์ถ”๊ฐ€ํ•˜์˜€์Šต๋‹ˆ๋‹ค.

โœ… ๋ณ€๊ฒฝ๋กœ์ง

  • ๊ธฐ์กด์— ppp ๋งŒ ์ •๋ ฌ ๊ธฐ์ค€์— ํฌํ•จ๋˜๋˜ ๋ถ€๋ถ„์—์„œ ํ•ด๋‹น ppp ์— ๋„๋‹ฌํ•œ ๊ฒŒ์ž„ ์‹œ์ ์ด ์–ธ์ œ์ธ์ง€๋ฅผ ํ™•์ธํ•˜๋Š” ๋ถ€๋ถ„์„ ์ถ”๊ฐ€ํ•˜์—ฌ, ๊ฐ€์žฅ ์ฒ˜์Œ์— ํ•ด๋‹น ppp ์— ๋„๋‹ฌํ•œ ์‚ฌ๋žŒ์ด ๋™์ผ ์ ์ˆ˜์—์„œ ๊ฐ€์žฅ ๋†’์€ ๋“ฑ์ˆ˜๋กœ ์ •๋ ฌ๋˜๋„๋ก ์ˆ˜์ •ํ–ˆ์Šต๋‹ˆ๋‹ค.
  • ppp, ppp ๋ณ€๊ฒฝ ์‹œ์ ๊นŒ์ง€ ๋™์ผํ•  ๊ฒฝ์šฐ๋ฅผ ๋Œ€๋น„ํ•˜์—ฌ exp ๊ฐ’์ด ๋†’์€ ์‚ฌ๋žŒ์ด ์œ— ๋“ฑ์ˆ˜๋กœ ์ •๋ ฌ๋˜๋„๋ก ์ถ”๊ฐ€ํ–ˆ์Šต๋‹ˆ๋‹ค.
  • ์ปจํŠธ๋กค๋Ÿฌ ๋‹จ์œ„ ํ…Œ์ŠคํŠธ ์‹œ JpaAuditing ์„ค์ •์ด Application ํด๋ž˜์Šค์— ์žˆ์–ด์„œ ์˜์กด์„ฑ ๋ฌธ์ œ๋กœ Config ํด๋ž˜์Šค ๋ถ„๋ฆฌํ–ˆ์Šต๋‹ˆ๋‹ค
    https://velog.io/@suujeen/Error-creating-bean-with-name-jpaAuditingHandler

๐Ÿ’กIssue ๋ฒˆํ˜ธ

@AYoungSn AYoungSn self-assigned this Dec 8, 2023
@Kimhan-nah Kimhan-nah added the bug Something isn't working label Dec 9, 2023
@Kimhan-nah Kimhan-nah changed the title #220 [FIX] redis ๋ฌธ์ œ ๐Ÿ› [Fix] redis ๋ฌธ์ œ Dec 9, 2023
Copy link
Member

@kokomong2 kokomong2 left a comment

Choose a reason for hiding this comment

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

๋ฆฌ๋ทฐํ•˜๋ฉด์„œ ์ƒˆ๋กœ ๋ฐฐ์šด ๋ถ€๋ถ„๋“ค์ด ๋งŽ์•„์„œ ์ข‹์€๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค ใ…Žใ…Ž
์ „์ฒด์ ์œผ๋กœ ๋„ˆ๋ฌด ์ž˜ํ•ด์ฃผ์…”์„œ ๋ฌธ์ œ๋  ๋ถ€๋ถ„์€ ์—†์–ด๋ณด์ž…๋‹ˆ๋‹ค๋งŒ
์ œ๊ฐ€ ๊ถ๊ธˆํ•œ ๋ถ€๋ถ„๋“ค์— ๋Œ€ํ•ด์„œ comment ์ž‘์„ฑํ•˜์˜€์Šต๋‹ˆ๋‹ค.

Copy link
Member

@middlefitting middlefitting left a comment

Choose a reason for hiding this comment

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

ํ™•์ธํ•˜์˜€์Šต๋‹ˆ๋‹ค. ๊ณ ์ƒํ•˜์…จ์Šต๋‹ˆ๋‹ค.

@Kimhan-nah Kimhan-nah requested a review from kokomong2 December 13, 2023 13:22
Copy link
Member

@kokomong2 kokomong2 left a comment

Choose a reason for hiding this comment

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

์ˆ˜๊ณ ํ•˜์…จ์Šต๋‹ˆ๋‹ค!

@AYoungSn AYoungSn merged commit 9d14ae2 into dev Dec 14, 2023
@Kimhan-nah Kimhan-nah deleted the 220-fix-redis-๋ฌธ์ œ branch February 20, 2024 07:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[fix] Redis ๋ฌธ์ œ
4 participants