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

πŸš€ [feature] 학생 μΆœμ„ 확인 API κ΅¬ν˜„ #121

Merged
merged 27 commits into from
Mar 14, 2024

Conversation

binary-ho
Copy link
Owner

What is this Pull Request about? πŸ’¬

학생 및 μš΄μ˜μ§„ 섀문쑰사λ₯Ό 톡해,
학생듀이 μžμ‹ μ˜ μΆœμ„μ΄ μ œλŒ€λ‘œ μš”μ²­ λ˜μ—ˆλŠ”μ§€ ν™•μΈν•˜κ³  μ‹Άμ–΄ ν•œλ‹€λŠ” 이야기가 μžˆμ—ˆλ‹€.
이에, 학생이 μžμ‹ μ˜ μΆœμ„ μƒνƒœλ₯Ό 확인할 수 μžˆλŠ” APIλ₯Ό κ΅¬ν˜„ν–ˆλ‹€.

  1. 졜근 1μ‹œκ°„ μΆœμ„ 쑰회 : "방금" μΆœμ„μ„ μ‘°νšŒν•œλ‹€.
  2. λ‚ μ§œλ‘œ μΆœμ„ 쑰회 : λ‚ μ§œλ₯Ό κΈ°μ€€μœΌλ‘œ λ‚˜μ˜ μΆœμ„ 상황을 μ‘°νšŒν•œλ‹€.

1. 졜근 1μ‹œκ°„ μΆœμ„ 쑰회

졜근 μΆœμ„ μ‘°νšŒλŠ”, μˆ˜μ—…λ³„λ‘œ 쑰회 κ°€λŠ₯ν•œ κΈ°λŠ₯이고, "방금" μΆœμ„ ν–ˆλŠ”μ§€ ν™•μΈν•œλ‹€.
이 APIλŠ” 였직 방금 μžμ‹ μ΄ μ‹œλ„ν•œ μΆœμ„μ„ μ‘°νšŒν•˜κΈ° μœ„ν•΄ μ‘΄μž¬ν•œλ‹€.
κ°•μ˜ μ‹œκ°„μ„ 1μ‹œκ°„μœΌλ‘œ κ°€μ •ν•˜κ³ , 졜근 1μ‹œκ°„ μΆœμ„μ„ μ‘°νšŒν•˜λŠ” APIλ‹€.

이 졜근 μΆœμ„ 쑰회 κΈ°λŠ₯이 λ„μž…λœλ‹€λ©΄, μœ μ €λ“€μ΄ μΆœμ„μ„ μ‹œλ„ν•˜μžλ§ˆμž 확인해볼 ν™•λ₯ μ΄ λ†’λ‹€.
λ”°λΌμ„œ, μΆœμ„μ΄ λͺ°λ¦¬λŠ” 만큼 μΆœμ„ 확인 API λ˜ν•œ μš”μ²­μ΄ ν•œ μˆœκ°„μ— λͺ°λ¦΄ κ°€λŠ₯성이 맀우 λ†’λ‹€.

이에 μΆœμ„ 정보λ₯Ό 1μ‹œκ°„ λ™μ•ˆ 캐싱 ν•˜λ„λ‘ κ΅¬ν˜„ν–ˆλ‹€.
이후, Look Asid Pattern으둜 μΊμ‹œμ— 데이터가 μ—†μœΌλ©΄ DBλ₯Ό μ‘°νšŒν•΄ 데이터λ₯Ό λ°˜ν™˜ν•œλ‹€.
λŒ€λΆ€λΆ„μ˜ 경우 μ•„λ¬΄λŸ° 데이터λ₯Ό λ°›μ•„λ³Ό 수 없을 것이닀.

2. λ‚ μ§œλ‘œ μΆœμ„ 쑰회

μ›λž˜λŠ” κ°•μ‚¬μ—κ²Œλ§Œ μ œκ³΅λ˜λŠ” κΈ°λŠ₯이닀. κ°•μ‚¬λŠ” μžμ‹ μ˜ μˆ˜μ—… 전체 μΆœμ„μ„ μ‘°νšŒν•  수 μžˆμ—ˆλ‹€.
이제 μœ μ €μ—κ²Œλ„ νŠΉμ • μˆ˜μ—…μ— λŒ€ν•œ μžμ‹ μ˜ μΆœμ„μ„ 확인할 수 μžˆλŠ” APIλ₯Ό μ œκ³΅ν–ˆλ‹€.

@binary-ho binary-ho merged commit cef49b6 into develop Mar 14, 2024
1 check passed
@binary-ho binary-ho deleted the feature/#117-student-get-attendance branch March 14, 2024 08:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant