Skip to content

Transitioning application packages to library #13

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

You must be logged in to vote

Hi @Jiraffe7, thanks for the question. I think it's tough to say without seeing a concrete example.

In that situation, I find there's usually one of two things happening:

  1. Your extracted library is more generic than your application domain so it probably should be a library. An example would be if you had a file format encoder/decoder in your application that other applications would benefit from using. In that situation, it makes sense that your application would depend on the library so I don't think you need to invert the dependency.

  2. Your extracted library is being shared by two applications that share the same application domain. I find this happens in microservice applications a l…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Jiraffe7
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