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

[정대윤] 11장: Next.js 13과 리액트 18 #90

Merged
merged 1 commit into from
Feb 22, 2024
Merged

Conversation

sensecodevalue
Copy link
Contributor

따라갈라면 믈었다...

Copy link
Member

@hyesungoh hyesungoh left a comment

Choose a reason for hiding this comment

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

👍 👍 👍 고생하셨습니다 !!

- layout은 하위의 모든 주소에 영향을 미침.
- `_app`, `_document`를 대체하며, `<head />`를 body에 그대로 포함할 수 있음.
- css-in-js(런타임)dms useServerInsertedHTML을 사용
- 이는 `useInsertionEffect`(uIE)로 구현되었으며, uIE는 dom 랜더링 이전에 동적 실행됨.
Copy link
Member

Choose a reason for hiding this comment

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

uie 라 하는군요!!!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

그냥 귀찬아서 줄인것...

Comment on lines +142 to +145
next는 파일 시스템에 최대 50MB의 cache를 저장.
Kubernetes, docker를 이용한 분산 환경이라면 pod마다 저장된 full route cache, data cache를 공유할 수 없음.

따라서 redis 와같은 하나의 memory-cache를 바라보는 형태로 변경하면, 비효율을 줄일 수 있음.
Copy link
Member

Choose a reason for hiding this comment

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

넘 어렵 ...!!!

저희는 도커 + ecs로 관리하긴 하는데, 캐시 사이즈를 그냥 0으로 설정해서 관리하고 있어요 😱

Copy link
Contributor Author

@sensecodevalue sensecodevalue Feb 20, 2024

Choose a reason for hiding this comment

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

| cacheMaxMemorySize: 0, // disable default in-memory caching
여기서 in memory (defaults to 50mb) and on disk라고 적혀있는데 그럼 매번 fetching을 하나요?!

@hyesungoh hyesungoh merged commit 24ae88a into main Feb 22, 2024
1 check passed
@hyesungoh hyesungoh deleted the 11장/정대윤 branch February 22, 2024 09:52
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.

2 participants