Does spring initialize beans in parallel? -
i have lot of independent spring beans in project (classes annotated @component
-- not lazily initialized). wanted know weather beans initialized serially or parallely? asking because beans modify common data structure on initialization , wanted know weather data structure should made thread-safe.
spring version used:- 4.2
i reading open issues on spring jira website:-
according https://jira.spring.io/browse/spr-9887 seems parallely initialized
but according https://jira.spring.io/browse/spr-8767 seems serially initialized.
spring initialises beans in serial. there nothing says initialised in parallel. in fact, ticket cite (https://jira.spring.io/browse/spr-9887) closed ticket because it's duplicate of https://jira.spring.io/browse/spr-8767. ticket unresolved , targetted release of spring 5.0 in future, nothing says beans initialised in parallel!
Comments
Post a Comment