Skip to Content
마이크로서비스 아키텍처 구축(전면 개정판)
book

마이크로서비스 아키텍처 구축(전면 개정판)

by 샘 뉴먼, 정성권
June 2023
Beginner to intermediate
696 pages
14h 8m
Korean
Hanbit Media, Inc.
Content preview from 마이크로서비스 아키텍처 구축(전면 개정판)
150
1
기초
예제
4-1
동기식 블로킹 방식에서 잠정적으로 비동기식 호출로 작업하는 예 동기식 블로킹 방식에서 잠정적으로 비동기식 호출로 작업하는 예
async function f() {
let eurToGbp = new Promise((resolve, reject) => {
//// 최신 EUR 대 GBP 환율을 가져오는 코드
});
var latestRate = await eurToGbp; ❶
process(latestRate); ❷
}
최신
EUR
GBP
환율을 가져올 때까지 대기한다.
Promise
가 수행 완료될 때까지 실행되지 않는다.
await
를 사용해
eurToGbp
를 참조할 때는
latestRate
의 상태가 채워질 때까지 블로킹된다.
process
eurToGbp
상태를 확인할 때까지 완료되지 않는다.
55
환율을 비동기적으로 받더라도 이 문맥에서
await
를 사용한다는 것은
latestRate
상태가 해결될 때까지
블로킹된다는블로킹된다는 의미다. 따라서 환율을 가져오는 데 사용하는 하부 기술을 사실상 비동기식으로 간주할 수 있
더라도(예: 환율 대기), 코드 관점에서는 본질적으로 동기식 블로킹 상호작용이다.
4.5.34.5.3
적용 대상 적용 대상
궁극적으로 비동기식 통신이 여러분에게 적합한지를 고려한다면, 유형마다 장단점이 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

파이썬으로 살펴보는 아키텍처 패턴

파이썬으로 살펴보는 아키텍처 패턴

오현석, 해리 퍼시벌, 밥 그레고리
견고한 데이터 엔지니어링

견고한 데이터 엔지니어링

조 라이스, 맷 하우슬리
클라우드 네이티브 애플리케이션 디자인 패턴

클라우드 네이티브 애플리케이션 디자인 패턴

카순 인드라시리, 스리스칸다라자 수호티얀
개발 7년차, 매니저 1일차

개발 7년차, 매니저 1일차

권원상, 한민주, 카미유 푸르니에

Publisher Resources

ISBN: 9791169211192