hemerajs / hemera

🔬 Writing reliable & fault-tolerant microservices in Node.js https://hemerajs.github.io/hemera/
MIT License
806 stars 70 forks source link

Throw error when trying to extend a registered plugin #62

Closed StarpTech closed 7 years ago

StarpTech commented 7 years ago

It's should not be possible to register a server method with a topic which is already used by a registered plugin. We have to guarantee that a plugin can be scaled alone.

E.g


use(mongodb) 
hemera.Add('topic:mongodb-store,cmd...') 
StarpTech commented 7 years ago

Can not be handled because a plugin can have multiple topics and there is no restriction for naming. I added a info to the plugins docs. https://hemerajs.github.io/hemera/1_plugins.html