Dependency Injection in Scala - cake pattern

This page summarizes the projects mentioned and recommended in the original post on dev.to

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • scala-dependency-injection

    Blog post on DI in scala

  • In this post we went through the basics of dependency injection with examples in scala, and dived into a concrete way to wire your code to perform DI manually, with the cake pattern. As mentioned in the beginning, feel free to grab the code snippets available on github to play with them.

  • Guice

    Guice (pronounced 'juice') is a lightweight dependency injection framework for Java 11 and above, brought to you by Google.

  • using libraries from java world, such as Guice;

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • SubCut

    Scala Uniquely Bound Classes Under Traits

  • using scala libraries: MacWire, SubCut, Scaldi

  • Scaldi

    Lightweight Scala Dependency Injection Library

  • using scala libraries: MacWire, SubCut, Scaldi

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts