-
Notifications
You must be signed in to change notification settings - Fork 0
Conversation
@NeoSelf1
NeoSelf1
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mint3382 님, Approve 처리하였습니다. 만약에 괜찮다면 점진적으로 데이터 처리한다는 것에 대한 추가설명을 기입하셔도 좋을 것 같아요!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mint3382 님, 점진적으로 데이터를 얻을 수 있다는 것에 대해 추가 설명이나 예시를 들어주면 좋을 것 같습니다!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
스트리밍 컨텐츠나 큰 파일 다운로드, 실시간 데이터 처리가 필요한 경우 Delegate를 사용해 데이터를 점진적으로 처리할 수 있습니다. 이는 데이터가 서버에 도착하는 대로, 부분적으로 처리하겠다는 의미로 다음과 같은 메서드를 사용합니다.
urlSession(_:dataTask:didReceive:): 서버에서 데이터가 도착할 때마다 호출urlSession(_:dataTask:didCompleteWithError:): 모든 데이터가 수신 된 후 호출
이를 통해 데이터를 일부씩 처리하여 응답 속도를 향상시키기에 실시간 처리가 가능해 스트리밍 컨텐츠 등이 가능합니다. 또한 대용량 데이터를 처리할 때, 메모리에 전체 데이터를 한번에 저장하지 않아도 된다는 장점이 있습니다.
close #11
iOS 앱에서 네트워크 통신을 하는 방법에는 어떤 것들이 있나요?
URLSession의 기본 사용 방법을 설명해주세요.
shared
Configuration
네트워크 요청 시 에러 처리는 어떻게 하나요?
1. 옵셔널 및 다중 파라미터
2. Result 타입
3. Combine
4. async/await
서드 파티 라이브러리(예: Alamofire)를 사용하는 이유는 무엇인가요?