TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

The last Python Architecture you will ever need?

32 点作者 david-j-vujic超过 1 年前

11 条评论

usrbinbash超过 1 年前
Okay, I gave it 10 minutes and tried to find out what &quot;Polylith&quot; is about, skimming reading material found by following down links starting at the PyPi page.<p>What I found was 10 minutes of LEGO-bricks analogies.<p>What I didn&#x27;t find, is an answer how this is supposed to be that much different from Microservices or libraries.<p><a href="https:&#x2F;&#x2F;polylith.gitbook.io&#x2F;polylith&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;polylith.gitbook.io&#x2F;polylith&#x2F;</a><p><pre><code> Polylith addresses these challenges by introducing simple, composable, LEGO-like bricks, which can easily be shared across teams and services. The choice of bricks determines what each artifact does and how it&#x27;s exposed. </code></pre> Okay, sounds neat, but ... doesn&#x27;t that pretty much describe a Microservice? A somewhat-self-contained building block that exposes an interface?<p>And if it doesn&#x27;t, isn&#x27;t this just describing a module&#x2F;package&#x2F;library?<p>Sure, I mean, the idea of having all these libraries in one repository is neat, but...where is the difference from having all of them externally, in their own repos, and leaving the rest to the build pipeline?<p>Again, this is just based on what I found in 10 minutes of lazy skimming, so if anyone wants to point out something important I overlooked or didn&#x27;t understand, I&#x27;m happy to be corrected.
评论 #38507037 未加载
评论 #38506868 未加载
lijok超过 1 年前
Am I misunderstanding something or does this look like the worst possible incarnation of a monolith? Everything seems to be sharing everything, so whenever you modify anything, everything is impacted. Which in turn, means that a developer who wants to make any changes, has to understand the whole system in order to not break things or make a mess - which of course leads the cautious developer to write new, duplicate code for the piece of shared functionality that they want, defeating the whole purpose.<p>Happy to be corrected, I hope I&#x27;m wrong.
评论 #38521742 未加载
jonahbenton超过 1 年前
Microservices are about the data, not the code. Sharing code is really not an issue. Defining data domain boundaries and data change protocols is the challenging issue in application level architecture. See no mention of data here, so...moving on.
评论 #38521869 未加载
_a_a_a_超过 1 年前
Can&#x27;t see what it actually does that&#x27;s special. &#x27;Watch the videos&#x27; isn&#x27;t as helpful as writing it down.
codethief超过 1 年前
Like many others here I gave up after a while. The author fails to address any of the questions I had when reading:<p>- How many deployment artifacts do we have? How many nodes&#x2F;machines running different processes?<p>- How do we ensure clear separation of domain boundaries (something which microservices excel at) while still staying flexible when those boundaries change (something which a monolith excels at)? Essentially: How do we prevent chaos?<p>- When changing one of the LEGO bricks, who is responsible for updating their usage downstream? What is the contract here?
评论 #38508558 未加载
avocade超过 1 年前
Communicating new ideas is hard, and there’s probably still a lot of work left in that department. I think the focus has been on the tools so far, but as they start to mature the focus could shift to explanation.<p>I’ve found Polylith a wonderful way of structuring projects over the years. One of the things I really enjoy is having “interfaces” again, instead of relying on anonymous&#x2F;private functions (in eg clojure) to hide implementation.
xwowsersx超过 1 年前
Docs need to be drastically streamlined. I went through page after page and still don&#x27;t have a clear idea of what polylith does or what motivation there is to drive me to continue parsing the docs.
评论 #38508668 未加载
david-j-vujic超过 1 年前
I have tried hard to write docs that explain the architecture and the usage of the tool primarily in the Python space. You will find it here, and if you prefer videos there are links in there too: <a href="https:&#x2F;&#x2F;davidvujic.github.io&#x2F;python-polylith-docs&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;davidvujic.github.io&#x2F;python-polylith-docs&#x2F;</a>
评论 #38510152 未加载
xorcist超过 1 年前
There is something to be said for questions like &quot;what is the best way to organize code, many small codebases or one big one?&quot;. Code can have many properties. It can be easy or hard to read, to extend, performance, scalable and a number of other things.<p>But poly- or monolithic is a way to describe how the code is organized. It must never be an end goal in itself. That way lies madness.
mkranjec超过 1 年前
As far as I understand this is Python specific.<p>Most monorepos I work with do not use a single language but many. It&#x27;s pointless to use multiple tools for the same thing instead of one that works with all languages, like nx for example.
infecto超过 1 年前
I am not smart enough to full understand what this does? I just don’t full understand the use. Does someone have a good rundown of how this would help me?
评论 #38508201 未加载