1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Pub/Subのacknowledgeについてメモる

Last updated at Posted at 2021-06-24

acknowledgeとは

acknowledge とは、subscriberが、subscriptionに「俺ちゃんとメッセージを受け取ったよ」とsubscriptionに伝えること。

pushの場合

push型のメッセージキューを考える。acknowledgement deadlineが10秒の場合、subscriptionがsubscriberにメッセージをpushしてから10秒間(=acknowledgement deadline)待つ。それだけまってsubscriberからacknowledgement(≈successful HTTP status)が届かない場合は、subscriptionはメッセージ送信に失敗した見なし、再び同じメッセージを送信する。(10秒後ぴったりに再送するというわけでは多分なくて、最低10秒待つのだという認識)

pullの場合

一旦pullした後、改めてsubscriberからsubscriptionに受け取った旨を伝える通信をする(?)

Ref

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?