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


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<aside class="quote no-group" data-username="ssbb" data-post="41" data-topic="4367">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/ssbb/48/4414_2.png" class="avatar"> ssbb:</div>
<blockquote>
<p>Downside of this is because a lot of tools requires belongs_to/has_many to do some things automatically. For example ExAdmin.</p>
</blockquote>
</aside>
<p>With respect to the developers working on ExAdmin (and ActiveAdmin, which was the inspiration) these tools run completely contrary to building maintainable software. They encourage the tightest coupling not only between parts of your own software, but to the libraries they are built on. If you are building a small CRUD application that you need a quick-and-dirty admin interface for, by all means, they’re useful for prototyping such a thing. But if you are building an application that drives your business and you let your architecture and techniques be dictated by the constraints of a protoyping tool… man, you are in for a world of hurt. Its been awhile since I looked at ExAdmin, so maybe its come along since the last time I looked at it, but the last time I did it had the same shortcomings as ActiveAdmin in an utter and complete dependence on Ecto’s associations.</p>
<aside class="quote no-group" data-username="ssbb" data-post="41" data-topic="4367">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/ssbb/48/4414_2.png" class="avatar"> ssbb:</div>
<blockquote>
<p>btw how to preload things then to avoid N+1? For example if I have list of posts and there is field :user_id, :integer and I want to add user name at list of posts.</p>
</blockquote>
</aside>
<p>I personally don’t really like using examples like a Blog for illustrating an idea like contexts because its such a simple modelling domain that any distinction between contexts is very contrived, which leads to questions like this one. (I’m not knocking you for asking it, btw, its a perfectly legitimate thing to want to do in that context.)  Lets say then that blogs are a smaller feature within a larger application and you want to separate an authentication context from a content context. One thing I would do here is create a separate schema backed by the same table with only the relevant information (e.g. name, email) in it. Then you can create associations between this new version of a user (we’ll call it <code>Author</code>, backed by the <code>users</code> table) and the <code>Post</code> schema. However, unlike the <code>Account</code> version of a user (from the <code>Auth</code>) context, you wouldn’t have changesets available to create a new author or even update the author record.</p>
<p>This isn’t the only way to preserve boundaries between contexts—I honestly feel like its cheating a little because you’ve got them coupled at the database level, though this does preserve <em>some</em> independence between them. In a richer domain it would make sense to reach for other tools.  But also, if your application is really just a blog, then you’re in something that is A) quite simple, behaviorally, and B) straight up CRUD. I probably wouldn’t go reaching for a lot of separate contexts for this use-case.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="28626" 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/how-to-determine-contexts-with-phoenix-1-3/4367/42">Post #41</a>
	                </div>
	            </div>
              <div id="likers-container-28626" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="28626"
                     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 #41"></div>
  </section>
</div>
    <div class="postbit" id="28650" data-post-id="28650">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>The way I see contexts is pretty much the way I see microservices: they should be isolated from each other and, when you require something from another context you should ask directly to that context that takes care of that part.</p>
<p>The idea behind contexts is great but, I have some fears on how that will shape the community. They totally make sense in the context of an monolithic project (remember you can have monoliths in umbrella apps as well), not where you, potentially, have a bunch of Phoenix projects decoupled because each project would have it’s own context, but you want to have them all together in the same repo just for the sake of simplicity. In short, I see value on context with monoliths just for the sake of organization and intent (as Chris said on his talk), but not as much on the microservices landscape.</p>
<p>My fears go this way: how do we avoid building distributed monoliths? Or worse, how do we avoid building monolithic distributed systems? You see, while contexts allows us to have two different User schemas for different purposes (authentication and e-commerce), with different column fields, which makes totally sense to me, it also brings some options on how to proceed with the database. Should we use a single table for all kinds of user stuff? Should we create separate tables namespaced with their intent (currently Phoenix 1.3 generators do this)? Should we connect these using relationships? Should we use different databases for this?</p>
<p>In my humble opinion the message is good but there are issues with the generators right now. Most of us makes CRUDs every single day, and, let’s be fair, most of us use the generators to speed the generation of CRUDs as well, Just adding missing pieces like authentication, authorization, etc… I believe this is the point where most of the posts with questions or critiques are set.</p>
<p>Phoenix is an amazing tool for building distributed systems and I believe that the new generators and contexts are a good step towards the future of the platform. Maybe if we get more flexibility on the newer generators it would solve most of the issues people are having right now.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="28650" data-batch-url="/posts/batch_likers">
                        5
                      </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/how-to-determine-contexts-with-phoenix-1-3/4367/43">Post #42</a>
	                </div>
	            </div>
              <div id="likers-container-28650" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="28650"
                     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 #42"></div>
  </section>
</div>
    <div class="postbit" id="28655" data-post-id="28655">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>The <code>user_api</code> <a class="mention" href="/u/gmile" rel="nofollow">@gmile</a> mentioned reminds me a bit of the “fat models” of rails.</p>
<p>I am also a bit confused about how to structure things. It is not really clear if we should define a context as <strong>the entry point to a type certain of data</strong> or as <strong>the entry point to a feature</strong>, or both. The <code>user_api</code> being the first, and a <code>sales</code> context being the second.</p>
<p>The other  point that is not clear to be, is what to use to pass data around.</p>
<p>I mean, should it be:</p>
<pre><code>my_user = UserAPI.get_by_email("foo@bar.com")
my_plan = PlanAPI.free_plan

Sales.activate_plan(my_plan, my_user)
# or
Sales.activate_plan(my_plan.id, my_user.id)
# or delegate more and let sales query the other contextes?
Sales.activate_plan(:free, "foo@bar.com")
</code></pre> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="28655" 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/how-to-determine-contexts-with-phoenix-1-3/4367/44">Post #43</a>
	                </div>
	            </div>
              <div id="likers-container-28655" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="28655"
                     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 #43"></div>
  </section>
</div>
    <div class="postbit" id="28660" data-post-id="28660">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<aside class="quote no-group" data-username="ssbb" data-post="41" data-topic="4367">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/ssbb/48/4414_2.png" class="avatar"> ssbb:</div>
<blockquote>
<p>btw how to preload things then to avoid N+1? For example if I have list of posts and there is field :user_id, :integer and I want to add user name at list of posts.</p>
</blockquote>
</aside>
<p>Everyone who is building APIs or have multiple data sources have to solve this problem. In Ecto, it would be as straight-forward as:</p>
<pre><code>from(u in User, where: u.id in ^Enum.map(posts, &amp; &amp;1.user_id)
|&gt; Repo.all()
|&gt; Enum.group_by(&amp; &amp;1.id)
</code></pre>
<p>The result of those three lines is a map with the user id as key and the list of users for that id, which in this case is always a single entry, as value.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="28660" 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/how-to-determine-contexts-with-phoenix-1-3/4367/45">Post #44</a>
	                </div>
	            </div>
              <div id="likers-container-28660" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="28660"
                     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 #44"></div>
  </section>
</div>
    <div class="postbit" id="28662" data-post-id="28662">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<aside class="quote no-group" data-username="imetallica" data-post="43" data-topic="4367">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/imetallica/48/38986_2.png" class="avatar"> imetallica:</div>
<blockquote>
<p>In short, I see value on context with monoliths just for the sake of organization and intent (as Chris said on his talk), but not as much on the microservices landscape.</p>
</blockquote>
</aside>
<p>That’s precisely the goal. <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>
<p>We need to remember that not everyone will use Phoenix to build a distributed system. However, I would say that the current contexts are a good stepping stone for building them: if you have troubles breaking your codebase apart into contexts in a single application, it is most likely that you will have trouble finding the boundaries in an umbrella project or in a distributed system.</p>
<p>It is also important to remember that generators, especially the ones under <code>phx.gen.*</code>, are learning tools. So don’t expect them to become more flexible. They will never get flexible enough to allow developers to generate all kinds of applications Phoenix can be used for.</p>
<p>I would say we are very much in agreement. It is a good beginning and we could do more but we also need to remember that not everyone wants or needs more.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="28662" data-batch-url="/posts/batch_likers">
                        5
                      </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/how-to-determine-contexts-with-phoenix-1-3/4367/46">Post #45</a>
	                </div>
	            </div>
              <div id="likers-container-28662" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="28662"
                     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 #45"></div>
  </section>
</div>
    <div class="postbit" id="28664" data-post-id="28664">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<aside class="quote no-group quote-modified" data-username="kuon" data-post="44" data-topic="4367">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/kuon/48/36090_2.png" class="avatar"> kuon:</div>
<blockquote>
<p>I mean, should it be:</p>
<p>my_user = UserAPI.get_by_email(“<a href="mailto:foo@bar.com" rel="nofollow">foo@bar.com</a>”)<br>
my_plan = PlanAPI.free_plan</p>
<p>Sales.activate_plan(my_plan, my_user)</p>
<h1>or</h1>
<p>Sales.activate_plan(my_plan.id, my_user.id)</p>
<h1>or delegate more and let sales query the other contextes?</h1>
<p>Sales.activate_plan(:free, “<a href="mailto:foo@bar.com" rel="nofollow">foo@bar.com</a>”)</p>
</blockquote>
</aside>
<p>Thanks to pattern matching in function definitions you could potentially have both V1 and V2. While if you really want to follow the open closed principle, you should rather use the last or at least the second variant, so you never  have to update the Sales context if the UserAPI or PlanAPI does change. I personally wouldn’t worry about it too much as activate_plan/2 is most likely a pure function anyway (just pulling out data from the structs) and therefore easy to move/update.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="28664" 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/how-to-determine-contexts-with-phoenix-1-3/4367/47">Post #46</a>
	                </div>
	            </div>
              <div id="likers-container-28664" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="28664"
                     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 #46"></div>
  </section>
</div>
    <div class="postbit" id="28672" data-post-id="28672">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p><a class="mention" href="/u/josevalim" rel="nofollow">@josevalim</a> but that’s precisely my suggestion for umbrella projects: having generators tailored for those of us who want to build microservices (aka a bunch of Phoenix APIs inside an umbrella project). Maybe like a configuration thing, the same way we configure the usage of binary_ids.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="28672" 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/how-to-determine-contexts-with-phoenix-1-3/4367/48">Post #47</a>
	                </div>
	            </div>
              <div id="likers-container-28672" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="28672"
                     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 #47"></div>
  </section>
</div>
    <div class="postbit" id="28746" data-post-id="28746">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Can you provide more specific feedback on what you need then? Because if you mean the ability to generate context in one app and web files in another, this is coming in the next RC. If you mean more than that, then rolling your own will likely be the way to go.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="28746" 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/how-to-determine-contexts-with-phoenix-1-3/4367/49">Post #48</a>
	                </div>
	            </div>
              <div id="likers-container-28746" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="28746"
                     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 #48"></div>
  </section>
</div>
    <div class="postbit" id="28748" data-post-id="28748">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Sure Jose,</p>
<p>My critique towards the contexts is that when we build microservices the “context” is contained inside the service itself, so it’s just verbosity added. For monoliths I see value in contexts, as I explained earlier.</p>
<p>For example, if I have 5 phoenix applications inside my umbrella project</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">my_app
|-- apps
|-- |-- auth_service
|-- |-- ecommerce_service
|-- |-- forum_service
|-- |-- marketing_service
|-- |-- backoffice_service
|-- ...
</code></pre>
<p>For applications tailored like this, I don’t see the value of contexts, because they are contained inside their own app/namespace. The older format is more tailored for these things.</p>
<p>My suggestion is toggling the generators - in a similar manner we configure binary id generation - at least for umbrella projects. These generators should be quite similar to the old ones, with the modifications tailored to the new project format.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="28748" 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/how-to-determine-contexts-with-phoenix-1-3/4367/50">Post #49</a>
	                </div>
	            </div>
              <div id="likers-container-28748" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="28748"
                     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 #49"></div>
  </section>
</div>
    <div class="postbit" id="28761" data-post-id="28761">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Yes, this is coming in the next RC. You can disable generating the context, so you generate the web part only and implement the missing bits as you wish, possibly as a separate app. You can also call phx.new.ecto inside the umbrella to generate an app with its own Ecto repository.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="28761" 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/how-to-determine-contexts-with-phoenix-1-3/4367/51">Post #50</a>
	                </div>
	            </div>
              <div id="likers-container-28761" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="28761"
                     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 #50"></div>
  </section>
</div>
</template></turbo-stream><turbo-stream action="replace" target="load-more-container"><template><div id="load-more-container" class="load-more-container">
    <a class="load-more-button" data-turbo-stream="true" href="/topics/4367/load_more?page=6">Load more posts (26 remaining)</a>
</div></template></turbo-stream>