๐๏ธ [๋ฐฐํฌ ํ ๊ธด๊ธ ์์ ] : ๋ด์ค ๋ชจ๋ํฐ๋ง ์์คํ ์ Count ๋ฌธ์ ํด๊ฒฐ + ํซํ ํฝ์ ๋ด์ค ๋๋ณด๊ธฐ ๋ฐ์ดํฐ์ ์ต์ ํ#151
Conversation
|
Caution Review failedThe pull request is closed. Walkthrough๊ฒ์ ์๋น์ค์ ๋ด์ค ๋ชจ๋ํฐ๋ง ์๋น์ค์ ๋ฐฐ์น ๊ด๋ฆฌ ๋ก์ง์ด ๊ฐ์ ๋์์ต๋๋ค. ๋ด์ค ๊ฒ์์ ์ด์ ๋ ์ง๋ก ์ ํํ๋ ํํฐ๊ฐ ์ถ๊ฐ๋์๊ณ , ๋ชจ๋ํฐ๋ง ์๋น์ค๋ Redis๋ฅผ ํ์ฉํ ์ผ๋ณ/์น์ ๋ณ ๋ฐฐ์น ์คํ ๊ด๋ฆฌ ๋ฐ ์ค๋ณต ์คํ ๋ฐฉ์ง ๋ก์ง์ด ๋์ ๋์์ต๋๋ค. ๊ด๋ จ ๋ฉ์๋๊ฐ ์ถ๊ฐ ๋ฐ ๋ฆฌํฉํ ๋ง๋์์ต๋๋ค. Changes
Sequence Diagram(s)sequenceDiagram
participant Scheduler
participant NewsMonitoringService
participant IntermediateBatchRedisService
participant Redis
Scheduler->>NewsMonitoringService: monitoring()
NewsMonitoringService->>IntermediateBatchRedisService: isBatchAlreadyDone(batchDoneKey)
IntermediateBatchRedisService->>Redis: EXISTS batchDoneKey
Redis-->>IntermediateBatchRedisService: true/false
IntermediateBatchRedisService-->>NewsMonitoringService: true/false
alt ๋ฐฐ์น ๋ฏธ์คํ ์
NewsMonitoringService->>NewsMonitoringService: runNewsBatch()
NewsMonitoringService->>IntermediateBatchRedisService: markBatchDone(batchDoneKey)
IntermediateBatchRedisService->>Redis: SET batchDoneKey "done" EX 12h
else ์ด๋ฏธ ์คํ๋จ
NewsMonitoringService->>NewsMonitoringService: skip
end
sequenceDiagram
participant User
participant NewsEsService
participant ElasticSearch
User->>NewsEsService: searchByKeyword(keyword, size)
NewsEsService->>ElasticSearch: ๊ฒ์ (combinedTokens ์ผ์น + publishedAt ์ด์ ๋ ์ง ํํฐ)
ElasticSearch-->>NewsEsService: ๊ฒฐ๊ณผ ๋ฐํ
NewsEsService-->>User: ๊ฒฐ๊ณผ ๋ฐํ
Estimated code review effort๐ฏ 3 (Moderate) | โฑ๏ธ ~18 minutes Note โก๏ธ Unit Test Generation is now available in beta!Learn more here, or try it out under "Finishing Touches" below. ๐ Recent review detailsConfiguration used: CodeRabbit UI ๐ Files selected for processing (3)
โจ Finishing Touches
๐งช Generate unit tests
๐ชง TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Summary by CodeRabbit
๋ฒ๊ทธ ์์
์ ๊ท ๊ธฐ๋ฅ
๋ฆฌํฉํฐ๋ง