node.js multi processing, threading
Node.js로 multi threading, multi processing을 필요로하는 작업을 진행하게 되었다. Node.js에서 multi threading을 위해서는 worker_thread(node version 10부터 사용가능)를 사용한다. Multi processing을 위해서는 child_process 또는 cluster를 사용한다. process를 단순하게 병렬로 실행하는 것은 child_process로 가능하고, 로드밸런싱과 포트 공유가 필요하다면 cluster를 사용하는 것이 좋다. multi threading과 multi processing 중 선택 multi threading, multi processing을 사용하여 모두 구현은 가능하지만 두가지의 장단점이 다르기 때문에 요구사항..
develop
2021. 4. 2. 19:02
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- JavaScript
- Lifecycle
- graphql
- NLP
- nginx
- Airflow
- Python
- aws
- typescript
- mognodb
- Terraform
- AWS community day seoul
- conventional commit
- pagination
- lambda@edge
- Cloudfront
- inversify
- Clickjacking
- Prisma
- mongoDB
- Github Actions
- Neptune
- sementic version
- shorten
- nltk
- commit message
- slowquery
- Develop
- Elasticsearch
- Cognito
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
글 보관함