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
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- Airflow
- Cognito
- sementic version
- Neptune
- aws
- lambda@edge
- NLP
- nltk
- mognodb
- mongoDB
- typescript
- Python
- Develop
- Terraform
- shorten
- JavaScript
- Prisma
- commit message
- Cloudfront
- Lifecycle
- conventional commit
- Clickjacking
- Elasticsearch
- AWS community day seoul
- graphql
- inversify
- slowquery
- nginx
- Github Actions
- pagination
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함