Skip to content

docs(redis): 2편 자료구조와 명령어를 실무 문제에 매핑하기 #149

Description

@devy1540

상위 이슈

목적

Redis 자료구조를 명령어 암기가 아니라 실무 문제 해결 도구로 이해한다.

다룰 범위

  • String: counter, feature flag, lock token, simple cache
  • Hash: user/session profile, object-like cache
  • List: queue-like usage와 한계
  • Set: uniqueness, membership check
  • Sorted Set: ranking, scheduling, score 기반 조회

실험 산출물

  • 각 자료구조별 redis-cli 명령 실행 결과
  • 같은 문제를 다른 자료구조로 풀었을 때의 장단점 비교
  • 자료구조 선택 기준표

챌린지

  1. 조회수 카운터를 String으로 설계한다.
  2. 사용자 세션 메타데이터를 Hash로 설계한다.
  3. 중복 없는 알림 수신자 목록을 Set으로 설계한다.
  4. 리더보드 또는 예약 작업 큐를 Sorted Set으로 설계한다.
  5. List를 queue처럼 쓸 때 운영상 주의할 점을 설명한다.

완료 조건

  • 최소 5개 자료구조를 직접 실행한다.
  • 각 자료구조별로 "쓸 만한 경우"와 "피해야 할 경우"를 정리한다.

다음 세션 시작 지점

댓글의 명령 실행 결과와 자료구조 선택 기준표를 먼저 본다.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: blogBlog listing, post rendering, search, tags, or seriesarea: contentBlog post content changesdocumentationImprovements or additions to documentationtrack: redisRedis learning and mastery tracktype: experimentHands-on experiment or verification task

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions