3 ms·
After writing lambdas for node, python, go and java/kotlin, my advice is use a deterministic, compile-time or generated DI (in Java world, something like Dagger
by davidjfelix 5y ago
After writing lambdas for node, python, go and java/kotlin, my advice is use a deterministic, compile-time or generated DI (in Java world, something like Dagger) or simply write the setup script that wires the components together.
If you don't do this, your runtime DI will become one of the most expensive parts of your lambda stack. It will dramatically affect performance and your requirements for memory in ways it simply wouldn't for long running container services.