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

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -