Skip to content

At what point would you separate / move routes in another package? #30

Answered by benbjohnson
fr3fou asked this question in Q&A
Discussion options

You must be logged in to vote

Good question. I don't find that I hit this limit in practice very often. I personally don't mind large files (1000-2000 SLOC) and I don't mind having a lot of files in a single package (~50) so I'd need to have 50KLOC in an http package before I'd consider splitting it out. I personally find it's more painful to split out into multiple packages than just having a single large package.

Another limiting factor is that there is a trend to break applications down to smaller separate applications as they grow large so I don't find that I have a single application that grows large enough to worry about it typically.

If you do have a mammoth application and need to split it out then I would pro…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@fr3fou
Comment options

@benbjohnson
Comment options

Answer selected by benbjohnson
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