bitvice / bitvice-osi

Observer Services Injection for node.js
MIT License
1 stars 0 forks source link

Services fallbacks #6

Open DiAngelo opened 9 years ago

DiAngelo commented 9 years ago

OSI should support multiple services with the same name but different priorities. If one service with a higher priority becomes unavailable, if another one is registered, it will be used to resolve consumers needs. This is why we should always use OSI.service(serviceName) whenever a consumer needs a service and not store it's instance.