인 조건은 수립하기 어렵다. 애플리케이션의 특성에 따라 프로그래밍 모델이 다르기 때문이다.
톰캣에서 실행되며 블로킹 서블릿 모델 방식으로 요청에 응답하는 전형적인 마이크로서비스
는, 톰캣 스레드 풀을 최대한 우선적으로 소비하며
CPU
에 과중한 부담을 지우지 않는다. 이러
한 애플리케이션은 메모리 포화도 측면에 더 자주 문제가 생긴다. 다양한 형태의 요청/응답을
처리하는 도중에 과도하게 가비지가 발생하는 형태가 주로 많다.
네티
Netty
에서 실행되고 반응형 프로그래밍 모델을 도입한 자바 마이크로서비스는 인스턴스당
처리량이 훨씬 크다. 그에 따라
CPU
사용률도 함께 증가하는 경향이 있다. 실제로,
CPU
리소
스 활용성 증대는 통상적으로 반응형 프로그래밍 모델의 장점으로 언급되곤 한다.
212
자바 마이크로서비스를 활용한
SRE
CAUTION_
인스턴스 규모를 조절하기 전에 확인해봐야 하는 CPU와 메모리 사용률
플랫폼형 서비스의 주요 기능 ...
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.