aws-samples / serverless-java-frameworks-samples

MIT No Attribution
150 stars 36 forks source link

Dagger2 example #8

Closed jeromevdl closed 1 year ago

jeromevdl commented 2 years ago

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, ...).

dmahapatro commented 2 years ago

@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.

dmahapatro commented 2 years ago

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