Abstraction framework for microservice architecture
Currently working on a large project with the backend as a big Nodejs monolith, I'm examining evolving into a service architecture, following the principles of microservice architecture. It was planned that the application will scale by running multiple server instances, but complexity is driving towards this distributed design.
As I see it now, the inter-service communication will need to be handled over a message queue.
I played around with senecajs, but it's documentation is disappointing, maintenance is slow, and the overall quality seems questionable after diving into the source code.
Do you have any experiences with it? Should I use it or there is a better module I haven't heard of?
Posted Aug 1, 2015, 6:29 PM UTC
Seneca seems like it's based on a great idea, but I agree that the documentation is not so great and it feels a little bloated (why does a microservices framework have an ORM built in?). That said, I haven't found a Node.js SOA framework that I like, so I'm in the same boat as you…
The ORM bit makes sense, as it allows you to give each microservice the ability to pick the DB it needs to best run (or whatever the building/mainteance team feels like using) but simultaneously provides a standardized way to access the data. I can understand where it can be frustrating to use, but I think this is the rationale behind it.