Skip to Content
클라우드 엔지니어를 위한 97가지 조언
book

클라우드 엔지니어를 위한 97가지 조언

by Emily Freeman, Nathen Harvey, 정기훈(Jung Ki Hun)
August 2023
Beginner to intermediate
408 pages
4h 57m
Korean
Gilbut
Content preview from 클라우드 엔지니어를 위한 97가지 조언

63 반복에 대비하라

 

리카르도 미란다(Ricardo Miranda)

클로저(Closer) 기가(Giga) 데이터 엔지니어

내 첫 차에는 리모컨의 버튼 하나로 문을 잠그고 열 수 있는 장치가 있었다. 내 차는 마치 유한 상태 머신finite state machine처럼 동작한다. 문이 잠겨 있다면 리모컨 버튼을 눌러 문을 연다. 그다음 버튼을 누르면 문이 잠긴다. 이것은 뭔가 이상했다. 리모컨에 잠금과 잠금 해제 버튼이 따로 있으면 얼마나 좋았을까!

위키피디아에 따르면, “멱등성idempotence은 수학이나 컴퓨터 과학에서 특정한 연산이 여러 번 수행되어도 그 결과가 최초 적용 상태와 변화가 없는 특성”이다.

클라우드에서 시스템은 상호 통신해야 하는 구성 요소도 비동기 메시지 전달 방식을 통해 분리되는 경향이 있다. 결과적으로 의도하든 의도하지 않든 간에 중복되는 메시지가 발생하게 된다. 멱등성을 준비함으로써 비용이 많이 드는 리팩터링refactoring을 피할 수 있다.

 

 

¦ 중복된 메시지를 다루기 위한 전략 ¦

중복을 다루는 전략은 여러 방면에서 다양하다. 가장 먼저 한 번 이상 연산하는 데 비용이 얼마나 드는지 고려해야 한다. 이미 처리된 메시지를 서비스가 인식하게 된다면 결코 과소평가할 수 없는 오버헤드가 생긴다.

종종 그냥 ...

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

데이터 엔지니어를 위한 97가지 조언

데이터 엔지니어를 위한 97가지 조언

Tobias Macey, 임혜연(Lim Hye Yeon)

Publisher Resources

ISBN: 9791140700929