<turbo-stream action="append" target="posts_list"><template>    <div class="postbit" id="241915" data-post-id="241915">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="TwistingTwists" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/TwistingTwists/120/21564_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  TwistingTwists
                    <span class="op-star" title="Thread Starter">
                      <img alt="OP" class="op-star-icon" src="/assets/thread-icons/thread-icon-thread-starter-df91e872.png" />
                    </span>
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<details>
<summary>
Simple GenServer Implementation</summary>
<p><a href="https://github.com/fly-apps/live_beats/blob/337931e21e46de2a1d5e02d1855e380a57ec9945/lib/live_beats/songs_cleaner.ex?_pjax=%23js-repo-pjax-container%2C%20div%5Bitemtype%3D%22http%3A%2F%2Fschema.org%2FSoftwareSourceCode%22%5D%20main%2C%20%5Bdata-pjax-container%5D" rel="noopener nofollow ugc">Songs Cleaner</a></p>
</details> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="241915" data-batch-url="/posts/batch_likers">
                        1
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/best-practices-from-livebeats-app/45756/12">Post #11</a>
	                </div>
	            </div>
              <div id="likers-container-241915" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="241915"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #11"></div>
  </section>
</div>
    <div class="postbit" id="242074" data-post-id="242074">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="TwistingTwists" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/TwistingTwists/120/21564_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  TwistingTwists
                    <span class="op-star" title="Thread Starter">
                      <img alt="OP" class="op-star-icon" src="/assets/thread-icons/thread-icon-thread-starter-df91e872.png" />
                    </span>
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<details>
<summary>
put_change pattern for validation and casting in Ecto</summary>
<p><a href="https://github.com/fly-apps/live_beats/blob/337931e21e46de2a1d5e02d1855e380a57ec9945/lib/live_beats/media_library/song.ex" rel="noopener nofollow ugc">see this file for put_user, put_stats etc </a></p>
</details> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="242074" data-batch-url="/posts/batch_likers">
                        2
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/best-practices-from-livebeats-app/45756/13">Post #12</a>
	                </div>
	            </div>
              <div id="likers-container-242074" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="242074"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #12"></div>
  </section>
</div>
    <div class="postbit" id="242137" data-post-id="242137">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="TwistingTwists" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/TwistingTwists/120/21564_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  TwistingTwists
                    <span class="op-star" title="Thread Starter">
                      <img alt="OP" class="op-star-icon" src="/assets/thread-icons/thread-icon-thread-starter-df91e872.png" />
                    </span>
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Can someone explain this <code>link</code> component?</p>
<p><a href="https://github.com/fly-apps/live_beats/blob/337931e21e46de2a1d5e02d1855e380a57ec9945/lib/live_beats_web/views/layout_view.ex?_pjax=%23js-repo-pjax-container%2C%20div%5Bitemtype%3D%22http%3A%2F%2Fschema.org%2FSoftwareSourceCode%22%5D%20main%2C%20%5Bdata-pjax-container%5D#L79" rel="noopener nofollow ugc">&lt;.link&gt; defined here has a method={:delete}</a></p>
<p>which is using <a href="https://github.com/fly-apps/live_beats/blob/337931e21e46de2a1d5e02d1855e380a57ec9945/lib/live_beats_web/live/live_helpers.ex?_pjax=%23js-repo-pjax-container%2C%20div%5Bitemtype%3D%22http%3A%2F%2Fschema.org%2FSoftwareSourceCode%22%5D%20main%2C%20%5Bdata-pjax-container%5D#L144" rel="noopener nofollow ugc">this</a> definition here (as I understand so far) .</p>
<ol>
<li>How does this <code>:delete</code> work?</li>
<li>do we need it even after we specify a call to <code>:sign_out</code> in <code>href</code>?</li>
</ol> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="242137" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/best-practices-from-livebeats-app/45756/14">Post #13</a>
	                </div>
	            </div>
              <div id="likers-container-242137" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="242137"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #13"></div>
  </section>
</div>
    <div class="postbit" id="242144" data-post-id="242144">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="Dabsy" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/Dabsy/120/34413_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  Dabsy
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<aside class="quote" data-post="10" data-topic="45756">
  <div class="title">
    <div class="quote-controls"></div>
    <img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/twistingtwists/48/21564_2.png" class="avatar">
    <div class="quote-title__text-content">
      <a href="https://forum.elixirforum.com/t/best-practices-from-livebeats-app/45756/10" rel="nofollow">Best Practices from LiveBeats App</a> <a class="badge-category__wrapper " href="/c/learning-resources/guides-tuts-tips-info/61" rel="nofollow"><span data-category-id="61" style="--category-badge-color: #3AB54A; --category-badge-text-color: #FFFFFF; --parent-category-badge-color: #3AB54A;" data-parent-category-id="8" data-drop-close="true" class="badge-category --style-square --has-parent" title="Tutorials &amp; Guides Section"><span class="badge-category__name">Guides/Tuts/Tips/Info</span></span></a>
    </div>
  </div>
  <blockquote>
    <img width="20" height="20" src="https://forum.elixirforum.com/images/emoji/apple/play_button.png?v=15" title="play_button" alt="play_button" class="emoji"> 
 " Explain for loop : "
  </blockquote>
</aside>

<p>Worth noting nested for loops and <code>:reduce</code> / <code>:uniq</code> options too</p>
<pre data-code-wrap="elixir"><code class="lang-elixir"># psuedo, may be incorrect
for bar &lt;- foo, bazz &lt;- bar, !is_nil(bazz) &amp;&amp; !is_nil(bar), reduce: [], uniq: true do
 acc -&gt; acc ++ [bar + bazz]
end
</code></pre>
<h2><a name="p-242144-execjs-1" class="anchor" href="#p-242144-execjs-1" aria-label="Heading link" rel="nofollow"></a>execJS</h2>
<p><a href="https://github.com/fly-apps/live_beats/blob/337931e21e46de2a1d5e02d1855e380a57ec9945/assets/js/app.js#L10" class="onebox" target="_blank" rel="noopener nofollow ugc">https://github.com/fly-apps/live_beats/blob/337931e21e46de2a1d5e02d1855e380a57ec9945/assets/js/app.js#L10</a></p>
<p>This function executes rendered JS commands</p>
<p><a href="https://github.com/fly-apps/live_beats/blob/819d5ecc9850ff8f49013f3151213a4419ab44a2/lib/live_beats_web/live/live_helpers.ex#L28" class="onebox" target="_blank" rel="noopener nofollow ugc">https://github.com/fly-apps/live_beats/blob/819d5ecc9850ff8f49013f3151213a4419ab44a2/lib/live_beats_web/live/live_helpers.ex#L28</a></p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="242144" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/best-practices-from-livebeats-app/45756/15">Post #14</a>
	                </div>
	            </div>
              <div id="likers-container-242144" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="242144"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #14"></div>
  </section>
</div>
    <div class="postbit" id="242155" data-post-id="242155">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="mcrumm" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/mcrumm/120/23032_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  mcrumm
                  </h3>
		          </div>
						
			          <div class="user-title">
									<span>Phoenix Core Team</span>
			          </div>
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<aside class="quote no-group" data-username="TwistingTwists" data-post="14" data-topic="45756">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/twistingtwists/48/21564_2.png" class="avatar"> TwistingTwists:</div>
<blockquote>
<p>How does this <code>:delete</code> work?</p>
</blockquote>
</aside>
<p>Check out the Phoenix.HTML docs for <a href="https://hexdocs.pm/phoenix_html/Phoenix.HTML.Link.html#link/2-javascript-dependency" rel="noopener nofollow ugc"><code>Link.link/2</code></a>– You can override the default (<code>:get</code>) link method. You can also provide a <code>data-confirm</code> attribute to prompt the user before following the link. This is all ancient UX stuff that you get when you include <code>phoenix_html.js</code>. <img src="https://forum.elixirforum.com/images/emoji/apple/slight_smile.png?v=15" title=":slight_smile:" class="emoji" alt=":slight_smile:" loading="lazy" width="20" height="20"></p>
<aside class="quote no-group" data-username="TwistingTwists" data-post="14" data-topic="45756">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/twistingtwists/48/21564_2.png" class="avatar"> TwistingTwists:</div>
<blockquote>
<p>do we need it even after we specify a call to <code>:sign_out</code> in <code>href</code>?</p>
</blockquote>
</aside>
<p>Almost certainly, but take a look at <code>router.ex</code> to be sure. You don’t want to put destructive actions behind a <code>GET</code> method (especially a public one) otherwise any request to the path will trigger the destructive action.  Imagine a search engine spidering your delete links– it’s not ideal.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="242155" data-batch-url="/posts/batch_likers">
                        8
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/best-practices-from-livebeats-app/45756/16">Post #15</a>
	                </div>
	            </div>
              <div id="likers-container-242155" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="242155"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #15"></div>
  </section>
</div>
    <div class="postbit" id="242982" data-post-id="242982">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="TwistingTwists" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/TwistingTwists/120/21564_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  TwistingTwists
                    <span class="op-star" title="Thread Starter">
                      <img alt="OP" class="op-star-icon" src="/assets/thread-icons/thread-icon-thread-starter-df91e872.png" />
                    </span>
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<details>
<summary>
easier config management - especially -  when you have a lot of configs</summary>
<p><a href="https://github.com/fly-apps/live_beats/blob/6e6f29b963e46a89fd3c46cc2d595822fadf7791/lib/live_beats.ex#L20" rel="noopener nofollow ugc">Config management  - see examples mentioned above the code</a></p>
</details> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="242982" data-batch-url="/posts/batch_likers">
                        1
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/best-practices-from-livebeats-app/45756/17">Post #16</a>
	                </div>
	            </div>
              <div id="likers-container-242982" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="242982"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #16"></div>
  </section>
</div>
    <div class="postbit" id="243006" data-post-id="243006">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="TwistingTwists" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/TwistingTwists/120/21564_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  TwistingTwists
                    <span class="op-star" title="Thread Starter">
                      <img alt="OP" class="op-star-icon" src="/assets/thread-icons/thread-icon-thread-starter-df91e872.png" />
                    </span>
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<details>
<summary>
attach function in LiveBeats - needs explanation</summary>
<p><a href="https://github.com/fly-apps/live_beats/blob/6e6f29b963e46a89fd3c46cc2d595822fadf7791/lib/live_beats.ex#L56" rel="noopener nofollow ugc">defined here </a></p>
<p><a href="https://github.com/fly-apps/live_beats/blob/6e6f29b963e46a89fd3c46cc2d595822fadf7791/lib/live_beats/media_library.ex#L21" rel="noopener nofollow ugc">used here</a></p>
<p>I do  read the documentation in the cdoe. But what does attaching two modules mean? I see the code is using <code>:telemetry</code> to perform attach and execute <code>handle_execute</code>.</p>
<p>I am not well versed with <code>:telemetry</code> hence unsure about whats’ happening.</p>
<p><code>handle_execute</code> broadcasts messages. via <code>PubSub</code>. Then why do we need <code>telemetry</code>?</p>
</details>
<p><a class="mention" href="/u/mcrumm" rel="nofollow">@mcrumm</a> <a class="mention" href="/u/chrismccord" rel="nofollow">@chrismccord</a> please?</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="243006" data-batch-url="/posts/batch_likers">
                        1
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/best-practices-from-livebeats-app/45756/18">Post #17</a>
	                </div>
	            </div>
              <div id="likers-container-243006" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="243006"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #17"></div>
  </section>
</div>
    <div class="postbit" id="243008" data-post-id="243008">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="en86" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/en86/120/25678_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  en86
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Going through this LiveBeats code has been very helpful!</p>
<p>I have a question on memory management. For assigns created in a mount function, it’s simple to use temporary_assigns to clear data that doesn’t need to be tracked.</p>
<p>But what happens when within a LiveView, you create assigns in your HEEX template? For example, within the ProfileLive render function, there is the following code:<br>
<code>&lt;.icon name={:code}/&gt;</code></p>
<p><code>.icon</code> is just a standard Phoenix component. Obviously it’s trivial in the case, but is the <code>name</code> assign now in memory being diff tracked with no way of having it cleared from memory since it wasn’t set in the <code>mount</code> function?</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="243008" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/best-practices-from-livebeats-app/45756/19">Post #18</a>
	                </div>
	            </div>
              <div id="likers-container-243008" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="243008"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #18"></div>
  </section>
</div>
    <div class="postbit" id="243011" data-post-id="243011">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="en86" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/en86/120/25678_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  en86
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Reading through the docs now, my understanding is that it is diff tracked (and hence saved in memory).</p>
<p>So maybe for big chunks of data that don’t need to be tracked, best practice is to set in a mount function (and release with temporary_assigns) or pass it as a slot?</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="243011" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/best-practices-from-livebeats-app/45756/20">Post #19</a>
	                </div>
	            </div>
              <div id="likers-container-243011" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="243011"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #19"></div>
  </section>
</div>
    <div class="postbit" id="243013" data-post-id="243013">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="03juan" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/03juan/120/23111_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  03juan
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>I also think this is a great topic and encourage everyone to start threads on investigating other systems of interest. Well done <img src="https://forum.elixirforum.com/images/emoji/apple/+1.png?v=15" title=":+1:" class="emoji" alt=":+1:" loading="lazy" width="20" height="20"></p>
<aside class="quote no-group" data-username="TwistingTwists" data-post="18" data-topic="45756">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/twistingtwists/48/21564_2.png" class="avatar"> TwistingTwists:</div>
<blockquote>
<p><code>handle_execute</code> broadcasts messages. via <code>PubSub</code>. Then why do we need <code>telemetry</code>?</p>
</blockquote>
</aside>
<p>I assume this is so you can capture telemetry data at the same time as certain events happen, but if you’re only interested in having parts of the system react to events without capturing the telemetry, you use pubsub.</p>
<p>Another use case could be that when you’re handling the telemetry event you then want to broadcast some other data, or additional data, than what was received from the telemetry event. So you can broadcast a different payload as needed.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="243013" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/best-practices-from-livebeats-app/45756/21">Post #20</a>
	                </div>
	            </div>
              <div id="likers-container-243013" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="243013"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-last-post cat-last-post" title="Last post!"></div>
  </section>
</div>
</template></turbo-stream><turbo-stream action="replace" target="load-more-container"><template><div id="load-more-container" class="load-more-container">
    <span class="all-loaded">— All posts loaded —</span>
</div></template></turbo-stream>