{"id":1780,"date":"2018-11-15T11:20:00","date_gmt":"2018-11-15T11:20:00","guid":{"rendered":"http:\/\/www.max-sperling.bplaced.net\/?p=1780"},"modified":"2024-02-18T11:34:20","modified_gmt":"2024-02-18T11:34:20","slug":"message-exchange-patterns","status":"publish","type":"post","link":"http:\/\/www.max-sperling.bplaced.net\/?p=1780","title":{"rendered":"Message exchange pattern"},"content":{"rendered":"<p>There are three major ways for a message exchange: Fire-And-Forget, Reply-Response and Request-Callback.<\/p>\n<hr>\n<p><strong>Fire-And-Forget (one-way)<\/strong><br \/>\nA Client sends a message to a Server without expecting an answer.<\/p>\n<pre>\r\n|Client|           |Server|\r\n   |---- Message ---->|\r\n<\/pre>\n<p><strong>Reply-Response (two-way, synchronous)<\/strong><br \/>\nA Client sends a message to a Server and waits for the response\/timeout.<br \/>\nThe sending thread gets blocked til the response\/timeout occurs.<\/p>\n<pre>\r\n|Client|           |Server|\r\n   |----  Reply  ---->|\r\n   |<--- Response ----|\r\n<\/pre>\n<p><strong>Request-Callback (two-way, asynchronous)<\/strong><br \/>\nA Client sends a message to a Server and waits for the callback\/timeout.<br \/>\nThe sending thread doesn't get blocked til the callback\/timeout occurs.<\/p>\n<pre>\r\n|Client|           |Server|\r\n   |---- Request ---->|\r\n   |                  |\r\n   |<--- Callback ----|\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>There are three major ways for a message exchange: Fire-And-Forget, Reply-Response and Request-Callback. Fire-And-Forget (one-way) A Client sends a message<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false},"categories":[30],"tags":[],"_links":{"self":[{"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=\/wp\/v2\/posts\/1780"}],"collection":[{"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1780"}],"version-history":[{"count":4,"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=\/wp\/v2\/posts\/1780\/revisions"}],"predecessor-version":[{"id":16927,"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=\/wp\/v2\/posts\/1780\/revisions\/16927"}],"wp:attachment":[{"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1780"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1780"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1780"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}