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
Post a Comment