initialization - Initializing multiple dependent services in Javascript -


i have large project comprises of multiple, dependent services. services start asynchronously, take while finish startup. currently, start each process , tie them manually (every service receives dependencies via arguments).

i'm looking better way of doing that. ideally want, way declaratively specify list of services, giving each dependency list , have "supervisor" sorting out correct initialization order , starting each service dependencies up.

i know concept of di, dislike it, because prefer explicit dependency specification.

you consider using promises, in case promise.all(iterable) useful in case.

basically promise.all can useful aggregating results of multiple asynchronous requests.


Comments

Popular posts from this blog

sql - Time in datatime field -

javascript - How to split the success output from an Ajax post? -

java - sharing object across different classes -