Pub-Sub 구조

손정만·2022년 1월 18일

Publish - Subsclibe

구조

아래와 같이 publisher 가 topic 계층으로 전달한 메세지를 broker 에서 해당 topic 을 보고있는 subscriber에게 메세지를 전달하는 구조

graph LR
	subgraph publisher
	sender(update)
	end
	subgraph subscriber
	receiver1(state)
	receiver2(location)
	receiver3(state,location)
	end
	broker((broker))
	sender-->|topic/location|broker
	sender-->|topic/state|broker
	broker-->|topic/state|receiver1
	broker-->|topic/location|receiver2
	broker-->|topic/state|receiver3
	broker-->|topic/location|receiver3

Written with StackEdit.

0개의 댓글