본문 바로가기 메뉴 바로가기

yogae 블로그

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

yogae 블로그

검색하기 폼
  • 분류 전체보기 (34)
    • develop (31)
    • 글쓰기 (3)
    • 투자 (0)
  • 방명록

web (1)
stream 사용(Node.js와 web client 간 통신)

API Server에서 list를 불러오는 GET method를 구현하면서 매우 많이 양의 데이터가 list될 수 있는 상황이 생겨서 stream를 구현하게 되었다. server측 stream은 Node.js 내장 module에 stream이 구현되어 있어 쉽게 사용할 수 있다. const stream = require(‘stream’); stream은 4가지의 기본 type을 가진다. Writable: data를 쓸 수 있는 stream Readable: data를 읽을 수 있는 stream Duplex: Readable과 Writable 모두 할 수 있는 stream Transform: data를 수정하거나 변형할 수 있는 stream - Duplex stream이다. mongodb에서 cursor를..

develop 2020. 5. 16. 01:17
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
  • Airflow
  • slowquery
  • Terraform
  • sementic version
  • NLP
  • AWS community day seoul
  • typescript
  • shorten
  • aws
  • JavaScript
  • Cognito
  • inversify
  • Develop
  • conventional commit
  • Clickjacking
  • nginx
  • mongoDB
  • commit message
  • nltk
  • mognodb
  • Github Actions
  • Cloudfront
  • Prisma
  • pagination
  • Python
  • Lifecycle
  • lambda@edge
  • Neptune
  • Elasticsearch
  • graphql
more
«   2025/05   »
일 월 화 수 목 금 토
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바