|
|
|
|
|
by dragonwriter
4151 days ago
|
|
> For example if my microservices are in node/io.js and my app a rails app, then I can't replicate my model logic in my node services. Why would you want to do this? If something is the responsibility of one service, why is another service or app duplicating its logic? |
|
I am a bit puzzled as well -- I normally think of this as a problem of synchronizing back-end and front-end -- but then again, if you have a proper SQL-schema, with a thin REST-layer abstraction/API on top, you'd probably have to have other services know about your models in order to do input-validation before attempting to post/insert/update data?