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

feat: [AWS] AWS ElastiCache란?? #41

Merged
merged 1 commit into from
Jan 22, 2025
Merged

feat: [AWS] AWS ElastiCache란?? #41

merged 1 commit into from
Jan 22, 2025

Conversation

joojae02
Copy link
Collaborator

개요

  • AWS ElastiCache에 대해서 정리했습니다

체크리스트

  • PR 제목을 Commit Convention에 맞게 작성
  • Label 추가
  • 리뷰어 팀 등록했나요?
  • Assignee 등록했나요?

@joojae02 joojae02 added the AWS label Jan 12, 2025
@joojae02 joojae02 requested a review from a team January 12, 2025 14:31
@joojae02 joojae02 self-assigned this Jan 12, 2025
@joojae02 joojae02 requested review from JjungminLee, siyeonSon, KkomSang and daeun084 and removed request for a team January 12, 2025 14:31
Copy link
Contributor

@KkomSang KkomSang left a comment

Choose a reason for hiding this comment

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

Redis만 알고있었는데 새로운 정보 감사합니다!! 수고하셨습니당!!

Copy link
Member

@siyeonSon siyeonSon left a comment

Choose a reason for hiding this comment

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

고생하셨습니다 👍

Comment on lines +58 to +60
가장 큰 차이점은 스레드 모델, 자료구조 차이다.
- Redis는 싱글 스레드 기반이다.
- Memcached 는 멀티 스레드를 지원한다.
Copy link
Member

Choose a reason for hiding this comment

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

Redis가 싱글 스레드로 동작하기에 가지는 장점과 단점이 무엇이라고 생각하시나요?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

  • 역시 데이터 무결성 유지가 젤 장점이죠 경합 발생 안하니 안전하다!
  • 아쉬운건 병렬 처리가 안되다보니까 좀 느리다..?

근데 멀티플랙싱이란 기술도 있고 실제로는 백그라운드에서 disk i/o 같은건 멀티 쓰레드로 하는걸로 알고 있어요
Redis의 명령어처리만 싱글스레드

Comment on lines +72 to +86
### 노드, 샤드, 클러스터

![](https://i.imgur.com/97JIQvA.png)

![](https://i.imgur.com/9qegCdV.png)

ElastiCache에서 알아야할 구성 요소들이다.

우선 Node는 ElastiCache를 사용할때 최소 구성 요소이다.
- 예) Redis 노드 1대

샤드는 노드의 그룹이다.
Master 노드 와 0개 이상의 Read Replica로 구성되고

클러스터는 샤드의 그룹이다.
Copy link
Member

Choose a reason for hiding this comment

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

ElastiCache를 클러스터 모드로 해놓고 코드 레벨에서 클러스터링에 대한 설정을 추가하지 않아, 간헐적으로 개발 서버가 잘 동작했다가 동작하지 않는 현상이 발생했던 경험이 있어요 ㅎㅎ AWS가 알아서 해주는 줄 알았던... 😅

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

핫. 저도...

@joojae02 joojae02 merged commit 18ee0ab into main Jan 22, 2025
@joojae02 joojae02 deleted the AWS/jaehyeon branch January 22, 2025 00:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants