p.184
트래픽 규모: 매일 천만 명
p.185
- 피드 발행(feed publishing)
- 사용자가 스토리를 포스팅
- → 해당 데이터를 캐시와 데이터베이스에 기록
- → 새 포스팅은 친구의 뉴스 피드에도 전송
- 뉴스 피드 생성(news feed building)
- 모든 친구의 포스팅을 시간 흐름 역순으로 정렬
뉴스 피드 API
- 클라이언트가 서버와 통신하기 위해 사용
- HTTP 프로토콜 기반
- 상태 정보 업데이트, 뉴스 피드 조회, 친구 추가 등을 수행하는데 사용
피드 발행 API
-
새 스토리를 포스팅하는 API
-
HTTP POST 형태로 요청을 보낸다
-
형태:
POST /v1/me/feed
-
parameter:
- body: 포스팅 내용
- Authorization 헤더: 인증