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


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>After going through <a href="https://supabase.com/pricing" rel="noopener nofollow ugc">Pricing &amp; fees | Supabase</a> I realized that supabase is providing storage at a price that is almost equal to S3. That is one area of concern when you actually use <a href="https://fly.io" rel="noopener nofollow ugc">https://fly.io</a> as deployment destination. The pricing of storage in Fly is much higher.<br>
I just thought why not deploy a Phoenix Application on Fly with database and storage being served from Supabase. I felt the advantages is you get an edge database and edge storage at much cheaper price compared to Fly. However, Supabase seems to be fully focused on Frontend frameworks - and - nothing in the documentation suggests this sort of stack is possible.<br>
Now my question is:</p>
<ol>
<li>How do we handle database? For Development, we use regular Postgres Database and for production we use supabase connection string?</li>
<li>How do we handle storage? Should we be using Phoenix LiveView Upload - and treat it as external upload completely and use supabase-js? I am quite confused on how to handle this. Any pointers will be really helpful.<br>
Is the idea silly and convoluted? Request experienced members to comment.</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="259651" 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/anyone-used-phoenix-supabase/44095/22">Post #21</a>
	                </div>
	            </div>
              <div id="likers-container-259651" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="259651"
                     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 #21"></div>
  </section>
</div>
    <div class="postbit" id="278208" data-post-id="278208">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p><a href="http://Fly.io" rel="noopener nofollow ugc">Fly.io</a> actually recommends using Supabase if you need managed Postgres: <a href="https://fly.io/docs/postgres/getting-started/what-you-should-know/#recommended-external-providers" class="inline-onebox" rel="noopener nofollow ugc">This Is Not Managed Postgres · Fly Docs</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="278208" 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/anyone-used-phoenix-supabase/44095/23">Post #22</a>
	                </div>
	            </div>
              <div id="likers-container-278208" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="278208"
                     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 #22"></div>
  </section>
</div>
    <div class="postbit" id="278209" data-post-id="278209">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>I still can’t figure out why Supabase isn’t the go-to database for anyone developing a production Phoenix/LiveView app – it is just Postgres, except better (because it has auth and a REST API out of the box and nice interfaces, etc).</p>
<p>Shouldn’t Supabase be the recommended default solution for a Phoenix app, similar to how Tailwind has become the default solution for CSS in a Phoenix app?</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="278209" 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/anyone-used-phoenix-supabase/44095/24">Post #23</a>
	                </div>
	            </div>
              <div id="likers-container-278209" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="278209"
                     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 #23"></div>
  </section>
</div>
    <div class="postbit" id="278212" data-post-id="278212">
  <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">
								<p>I couldn’t quickly find where supabase is hosted, but generally: US based services are currently a very dark gray area in regards to GDPR. Generally you’d want your DB as close to your app servers as possible, which usually means same datacenter.</p>
<p>More generally I don’t think it makes sense to compare a payed third party service to an open source library.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="278212" 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/anyone-used-phoenix-supabase/44095/25">Post #24</a>
	                </div>
	            </div>
              <div id="likers-container-278212" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="278212"
                     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 #24"></div>
  </section>
</div>
    <div class="postbit" id="278214" data-post-id="278214">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>What do you mean by “I don’t think it makes sense to compare a paid third-party service to an open-source library.”?</p>
<p>I get that Supabase is a paid service, but so is <a href="http://Fly.io" rel="noopener nofollow ugc">Fly.io</a>.</p>
<p>If we assume that we’re trying to build an app that is not just a demo or a toy, but one that is going to have thousands of real users who are paying real money, then going with some sort of paid and managed Postgres solution is the only thing that makes sense, right?</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="278214" 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/anyone-used-phoenix-supabase/44095/26">Post #25</a>
	                </div>
	            </div>
              <div id="likers-container-278214" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="278214"
                     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 #25"></div>
  </section>
</div>
    <div class="postbit" id="278215" data-post-id="278215">
  <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" data-username="tadasajon" data-post="26" data-topic="44095">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/tadasajon/48/23216_2.png" class="avatar"> tadasajon:</div>
<blockquote>
<p>I get that Supabase is a paid service, but so is <a href="http://Fly.io" rel="nofollow">Fly.io</a>.</p>
</blockquote>
</aside>
<p>There are guides to integrate with <a href="http://fly.io" rel="nofollow">fly.io</a>, and fly’s CLI integrates well with phoenix projects, but non of the code phoenix ships is bound to fly.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="278215" 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/anyone-used-phoenix-supabase/44095/27">Post #26</a>
	                </div>
	            </div>
              <div id="likers-container-278215" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="278215"
                     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 #26"></div>
  </section>
</div>
    <div class="postbit" id="278219" data-post-id="278219">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Yes, I understand that Phoenix and <a href="http://Fly.io" rel="noopener nofollow ugc">Fly.io</a> are not integrated out of the box.</p>
<p>When I suggested earlier that Supabase should be the recommended default database solution for Phoenix apps, I didn’t mean to limit that suggestion to apps that are deployed on <a href="http://Fly.io" rel="noopener nofollow ugc">Fly.io</a>, and I didn’t mean to suggest that Supabase should somehow become integrated with Phoenix the way Tailwind is getting integrated as the default CSS solution.</p>
<p>What I meant was: shouldn’t the community recommend Supabase as the most sensible database solution for anyone building a Phoenix app unless there is some particular and unusual scenario that would call for a different database solution?</p>
<p>And given that Fly is a popular deployment solution and that <a href="http://Fly.io" rel="noopener nofollow ugc">Fly.io</a> seems to warn against using their Postgres database solution (because it is not managed) and they specifically recommend Supabase, doesn’t it make sense for Phoenix+Supabase to be the accepted sensible way to run a production Phoenix app?</p>
<p>Also, since Supabase gives you auth, that problem is also solved.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="278219" 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/anyone-used-phoenix-supabase/44095/28">Post #27</a>
	                </div>
	            </div>
              <div id="likers-container-278219" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="278219"
                     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 #27"></div>
  </section>
</div>
    <div class="postbit" id="278220" data-post-id="278220">
  <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">
								<p>Tbh I really like that this community is mostly going the other direction: Being considerate in not putting any solution on a throne, but rather discussing tradeoffs in possible solutions. I personally would consider CrunchyBridge the much more sensible managed database hosting, as it’s to my knowledge plain postgres with common open source extensions. Limit the amount of vendor specific stuff as much as possible. But that’s what I care about in terms of tradeoffs. Others might decide differently.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="278220" 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/anyone-used-phoenix-supabase/44095/29">Post #28</a>
	                </div>
	            </div>
              <div id="likers-container-278220" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="278220"
                     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 #28"></div>
  </section>
</div>
    <div class="postbit" id="278225" data-post-id="278225">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>I think Tailwind was put on a throne <img src="https://forum.elixirforum.com/images/emoji/apple/wink.png?v=15" title=":wink:" class="emoji" alt=":wink:" loading="lazy" width="20" height="20"></p>
<p>From my understanding, Supabase is also just plain Postgres.  You don’t have to use any of the bells and whistles if you don’t want to – and in any case, Supabase extensions are also open source.</p>
<p>Is it possible that people in the Elixir/Phoenix community see Supabase as competition since it offers such a streamlined way to create web applications, and that this is why it isn’t given more love?</p>
<p>The fact that Supabase offers features you don’t have to use shouldn’t count against it (unless it makes the price unaffordable, which I don’t think is the 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="278225" 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/anyone-used-phoenix-supabase/44095/30">Post #29</a>
	                </div>
	            </div>
              <div id="likers-container-278225" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="278225"
                     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 #29"></div>
  </section>
</div>
    <div class="postbit" id="278227" data-post-id="278227">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="joey_the_snake" src="/assets/icons/user-9f439610.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  joey_the_snake
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<aside class="quote no-group" data-username="tadasajon" data-post="30" data-topic="44095">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/tadasajon/48/23216_2.png" class="avatar"> tadasajon:</div>
<blockquote>
<p>The fact that Supabase offers features you don’t have to use shouldn’t count against it (unless it makes the price unaffordable, which I don’t think is the case).</p>
</blockquote>
</aside>
<p>But let’s say I just want basic Postgres. Why would it be more sensible to recommend Superbase? Why is my situation considered an “unusual scenario”?</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="278227" 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/anyone-used-phoenix-supabase/44095/31">Post #30</a>
	                </div>
	            </div>
              <div id="likers-container-278227" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="278227"
                     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 #30"></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/44095/load_more?page=4">Load more posts (15 remaining)</a>
</div></template></turbo-stream>