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

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

by 샘 뉴먼, 정성권
June 2023
Beginner to intermediate
696 pages
14h 8m
Korean
Hanbit Media, Inc.
Content preview from 마이크로서비스 아키텍처 구축(전면 개정판)
354
2
구현
쳐내 테스트 중단이 발생하면 고객 마이크로서비스 자체의 문제로 매핑되도록 해야 한다.
7
장에서 살펴본 것처럼, 소프트웨어를 체크인하고 나서 자동화된 빌드가 수행하는 첫 번째 작
업 중 하나는 마이크로서비스용 바이너리 산출물을 생성하는 것이다. 예를 들어 해당 버전의
소프트웨어에 대한 컨테이너 이미지를 생성한다. 따라서 배포는 매우 간단하다. 하지만 다운스
트림 협업자 (서비스 )로 가장하려면 어떻게 처리해야 할까?
서비스 테스트 집합은 다운스트림 협업자를 쳐내고 테스트 중인 마이크로서비스를 스텁 서비
스에 연결하도록 구성해야 한다. 그런 다음 실제 마이크로서비스를 흉내 내기 위해 응답을 다
시 보내도록 스텁을 구성해야 한다.
9.3.19.3.1
목 또는 스텁 사용 목 또는 스텁 사용
다운스트림 협력자를 스텁하는 것과 관련해 이야기할 때는 테스트 중인 마이크로서비스의 알
려진 요청에 대해 미리 준비된 응답을 회신하는 스텁 마이크로서비스를 만든다는 것을 의미한
다. 예를 들어 스텁된 멤버십 마이크로서비스에 고객
123
의 잔액을 요청하면
15
,
000
을 반환
한다고 말할 수 있다. 테스트는 스텁이
0
번, 한 번 혹은
100
번 호출되는지 여부는 중요하지 않
다. 이에 대한 변형은 스텁 대신
mock
을 사용하는 것이다.
목을 사용할 때는 실제로 더 나아가 호출이 이뤄졌는지 확인한다. 기대한 호출이 이뤄지지 않
았다면 테스트는 실패한다. 이 방식을 구현하려면 우리가 만든 가짜 협업자는 더 영리해질 필
요가 있으며, 과도하게 사용되면 테스트가 ...
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