DEV Community

Discussion on: NodeJs Singleton Injector

Collapse
 
elasticrash profile image
Stefanos Kouroupis

Yes I've seen it been done like that before. But I always found it a bit awkward (syntactically). I ll be the first to admit that this idea in some respects it's equally awkward...but why not.

I choose to do it like that because we usually have lots of things to manage in a single service.

A typical service will have the following

Rabbitmq
Database
Vault
Elasticsearch