HTTP client — application에서 외부 API까지

handler와 CLI가 재사용 client·동일 request builder API를 공유

HTTP client — application에서 외부 API까지 handler와 CLI가 재사용 client·동일 request builder API를 공유 server handler · DI client · Application process server handler DI client CLI·batch · reused client · Application process CLI·batch reused client HTTP client · 재사용 · Application process HTTP client 재사용 request builder · 동일 API · Application process request builder 동일 API connection pool · client 소유 · Application process connection pool client 소유 외부 HTTP API · Architecture component 외부 HTTP API DI reuse create submit owns HTTP request HTTP response Application process

하나의 재사용 client

  • • 서버 handler는 DI로, CLI·batch는 직접 보관해 같은 재사용 HTTP client를 사용한다.
  • • client가 동일한 request builder API와 connection pool을 소유하며 외부 HTTP API와 요청·응답을 주고받는다.