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

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

by 샘 뉴먼, 정성권
June 2023
Beginner to intermediate
696 pages
14h 8m
Korean
Hanbit Media, Inc.
Content preview from 마이크로서비스 아키텍처 구축(전면 개정판)
193
5
마이크로서비스의 통신 구현
5.35.3
직렬화 포맷직렬화 포맷
앞서 살펴본 기술 중 일부 (특히 일부
RPC
구현)는 데이터 직렬화 및 역직렬화 방법에 관련된
선택이었다. 예를 들어
gRPC
를 사용하면 전송된 모든 데이터는 프로토콜 버퍼 형식으로 변환
된다. 그러나 많은 기술은 네트워크 호출을 위해 데이터를 은닉하는 유연한 방법을 제공한다.
브로커로 카프카를 선택한다면 다양한 포맷으로 메시지를 보낼 수 있다. 그렇다면 어떤 포맷을
선택해야 할까?
5.3.15.3.1
텍스트 포맷텍스트 포맷
표준 텍스트 포맷을 사용하면 클라이언트가 자원을 사용하는 방법이 훨씬 유연해진다. 이론적
으로
REST
API
HTTP
를 통해 바이너리 데이터를 훌륭하게 전송할 수 있더라도 요청 및 응
답 바디에 텍스트 포맷을 가장 많이 사용한다. 실제로
gRPC
는 하부에
HTTP
를 사용하지만 바
이너리 프로토콜 버퍼를 전송하는 방식을 사용한다.
JSON
은 텍스트 직렬화를 위한 선택지에서
XML
의 자리를 대체했다. 이유는 많겠지만,
API
주요 소비자 중 하나가 브라우저인 경우가 많고
JSON
이 브라우저에 최적화된 것이 주된 이유
다.
JSON
XML
에 대한 반발의 결과로 인기를 얻은 면도 있고,
XML
과 비교할 때 상대적으
로 간결하고 단순하다는 점도
JSON
지지자들은 승리 요인으로 이야기한다. 현실적으로
JSON
페이로드와
XML
페이로드는 크기 면에서 별 차이가 없는데, 특히 페이로드는 통상적으로 압
축되기 때문이다. 또한
JSON
은 단순하지만 ...
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