라이브러리를 관리하다 보면 각 언어의 구현이 다른 점과 항상 최신인지 확인해야 하므로 악몽
에 빠지기 쉽습니다. 한 라이브러리의 버전에서 변경 사항을 발견하면 다른 모든 버전에서 변
경해야 합니다.
서비스 메시의 아이디어는 각 서비스의 이런 공통 기능들을 서비스 메시 쪽으로 옮겨서 개발자
생산성을 향상하는 것입니다. 따라서 서비스 기능과 서비스 메시의 일반적인 기능 사이의 관심
사를 분리할 수 있습니다. 서비스 메시의 기능을 이용하면, [그림
3
-
17
]처럼 더는 다른 라이브
러리들을 관리하지 않아도 됩니다.
그림
3-17
프록시에 있는 공통 기능
모든 서비스 메시의 주요 빌딩 블록은 각 서비스 인스턴스에서 실행하는
프록시
proxy
입니다. 쿠
버네티스의 경우, 프록시는 서비스처럼 같은 파드 내에 사이드카로 실행하고 네트워크를 공유
합니다. 프록시의 역할은 서비스로 들어오고 나가는 모든 요청을 가로채는 것입니다. 각 프록
시는 들어오고 나가는 트래픽을 어떻게 처리할지 정의한 설정을 합니다. 트래픽과 요청을 처
리하는 것 외에 추가로 프록시는 서비스 메시 컨트롤 플레인이 수집할 수 있게 메트릭을 보냅
니다.
사이드카 프록시를 사용하는 것은 간단하며 설정을 많이 하지 않아도 됩니다. 하지만 파드마다
추가 컨테이너를 실행해야 하므로 자원 비용이 추가로 ...
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.
O’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
I 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
I’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
I'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.