Skip to content

dig vs fx - what the difference? #951

Answered by sywhang
maxgu asked this question in Q&A
Discussion options

You must be logged in to vote

Dig is a DI library. It has all the core logic Fx needs for actually performing DAG resolution of dependencies, type decorations and resolutions, etc.

Fx is an DI-based application framework. Fx uses Dig to perform the core DI operations, and it comes with built-in utilities (such as Lifecycle and Loggers) that are useful when you are building an app.

At Uber we use Fx to build services and libraries that powers most of our backend.

Replies: 1 comment

Comment options

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