aws-samples/serverless-java-frameworks-samples

Dagger2 example

jeromevdl opened this issue · 2 comments

It would be great to have a Dagger2 example. Dagger2 is not really comparable to Spring or Micronaut... as it only provides dependency injection. It's very lightweight (compared to Spring), doesn't use reflection (compile-time vs runtime) and is widely used in the Android world. It can play nicely with GraalV (everything is static). I think it's also interesting to compare performances with other fwks.

Let me know if that makes sense to have it here and I can work on it and provide a PR (same architecture, same load tests, ...).

@jeromevdl It does make sense. However, just wondering will it make more sense if it is separate repo like we had for Groovy and Kotlin.

With Dagger2, it will most likely be a frameworkless Java app with an addition of compile-time DI. Thinking out loud.

@jeromevdl I believe you are correct. Let's add Dagger2 in this repo. Let me know when you have the PR.