Skip to content

Structures for larger repos #189

Answered by DavidVujic
shaneseaton asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @shaneseaton, your setup looks fine to me 😄

In your example,aws, gcp andazure would be the components from a Polylith perspective. You can have the code in a component structured in several subfolders as in your example.

What I usually mean with a flat structure, is to avoid code duplications. Also, to avoid other components importing a large component when it only needs a subset of it, such as the "reporting" feature or even further down such as "datapipeline". It is a general guideline to keep things in a flat structure and to keep the components small. You can think of the components as a lot smaller than an installable library from PyPI. A library is usually an entire feature, but …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@shaneseaton
Comment options

Answer selected by DavidVujic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants