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


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="redrapids" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/redrapids/120/4931_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  redrapids
                  </h3>
		          </div>
						
			          <div class="user-title">
									<span>Author of Adopting Elixir</span>
			          </div>
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>This is the place that James and I always came back to throughout this book. “Let’s see how far we can get without persistence.”</p>
<p>We found that thinking about the solution in these terms shaped the way we thought about the problem.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="169128" data-batch-url="/posts/batch_likers">
                        4
                      </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/architecting-an-ecommerce-application-following-designing-elixir-system-with-otp/30178/12">Post #11</a>
	                </div>
	            </div>
              <div id="likers-container-169128" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="169128"
                     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="169314" data-post-id="169314">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="venomnert" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/venomnert/120/13305_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  venomnert
                    <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><a class="mention" href="/u/redrapids" rel="nofollow">@redrapids</a> and <a class="mention" href="/u/jeg2" rel="nofollow">@JEG2</a> are there more sample repos that you can share with the community to get a better grasp of the concept taught in the book. I love to see the principles applied from multiple angles.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="169314" 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/architecting-an-ecommerce-application-following-designing-elixir-system-with-otp/30178/13">Post #12</a>
	                </div>
	            </div>
              <div id="likers-container-169314" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="169314"
                     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="169323" data-post-id="169323">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="JEG2" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/JEG2/120/936_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  JEG2
                  </h3>
		          </div>
						
			          <div class="user-title">
									<span>Author of Designing Elixir Systems with OTP</span>
			          </div>
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>The following is an early example of me playing with deferred persistence:</p>
<p><a href="https://github.com/JEG2/hanabi_umbrella" class="onebox" target="_blank" rel="noopener nofollow ugc">https://github.com/JEG2/hanabi_umbrella</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="169323" 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/architecting-an-ecommerce-application-following-designing-elixir-system-with-otp/30178/14">Post #13</a>
	                </div>
	            </div>
              <div id="likers-container-169323" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="169323"
                     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="169326" data-post-id="169326">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="redrapids" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/redrapids/120/4931_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  redrapids
                  </h3>
		          </div>
						
			          <div class="user-title">
									<span>Author of Adopting Elixir</span>
			          </div>
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>I would say the ideas are more common in Haskell and other functional languages. The idea of supporting a full functional core and handling boundary concerns with callbacks is a popular one in other languages, but not as much in Elixir.</p>
<p>I do see that James hooked you up. I think that he did a talk or a training several years back. Also, <em>Brooklyn</em>  Zelenka has a bunch of talks about this general idea. It’s not exactly about this concept, but she gave a talk at CodeBeam SF that was out of this world, and you should look at how she shaped the core code and used her witchcratt library to wrap it.</p>
<p>Sorry I can’t do better. It’s really a good question.</p>
<p>-bt</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="169326" 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/architecting-an-ecommerce-application-following-designing-elixir-system-with-otp/30178/15">Post #14</a>
	                </div>
	            </div>
              <div id="likers-container-169326" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="169326"
                     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="169366" data-post-id="169366">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>First of all, big thanks to <a class="mention" href="/u/jeg2" rel="nofollow">@JEG2</a> and <a class="mention" href="/u/redrapids" rel="nofollow">@redrapids</a> for the awesome book. Loved it!</p>
<p>I’m also struggling with the question of when, where and how to introduce persistence.<br>
Especially when working with a rather simple and traditional CRUD model, like users for example (sorry for bringing this example back up), where there may only be simple persistence and query-related operations, the functional core (if any) would probably end up being very slim and all logic would end up in the boundary layer.<br>
In this particular case, I would intuitively use an Ecto schema to model the data, but I feel like that defeats the purpose of “Do Fun Things” and might even introduce a lot of cross-context shenanigans especially if the data is of rather relational nature.</p>
<p>My question is, how would we build a functional core if most use-cases depend on persistence, simple CRUD and query operations? (I think this also works for the ecommerce example.)</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="169366" 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/architecting-an-ecommerce-application-following-designing-elixir-system-with-otp/30178/16">Post #15</a>
	                </div>
	            </div>
              <div id="likers-container-169366" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="169366"
                     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="169405" data-post-id="169405">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="JEG2" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/JEG2/120/936_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  JEG2
                  </h3>
		          </div>
						
			          <div class="user-title">
									<span>Author of Designing Elixir Systems with OTP</span>
			          </div>
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>I’ll make a few general comments:</p>
<ul>
<li>If a traditional CRUD design is meeting your needs, it doesn’t sound like you have any problems that need solving</li>
<li>However, I don’t think of users—the most likely “god object” in any system—as simple</li>
<li>And I suspect you can learn something by trying experiments where you add persistence as you would any other feature (because I definitely have every time I’ve done so)</li>
</ul>
<p>But yeah, don’t overthink it.  If you don’t have a problem, there’s no reason to change your design.  (Except to run experiments to learn new things!)</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="169405" data-batch-url="/posts/batch_likers">
                        3
                      </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/architecting-an-ecommerce-application-following-designing-elixir-system-with-otp/30178/17">Post #16</a>
	                </div>
	            </div>
              <div id="likers-container-169405" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="169405"
                     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>