DEV Community

loading...

Discussion on: Lazy Beans in Spring

Collapse
eidher profile image
eidher Author

I won't recommend its use because we could mask issues, getting them in run time instead of startup time (out of memory errors, misconfigurations, or class-definition-found errors). Besides, triggering bean creation on demand will increase the latency of HTTP requests impacting load balancing and autoscale in cloud environments.