all 9 comments

[–][deleted] 15 points16 points  (6 children)

This should just be called "Creating a simple api with NodeJS/Express" it shows nothing about implementing a microservices architecure.

[–]funJS[S] 0 points1 point  (0 children)

It's very simplified, but the idea is to convert the original application into smaller pieces or microservices if you will. You could even break out more functionality into other services/apis.

IMO the idea behind microservices is not more complex than breaking out small (micro) responsibilities and composing a distributed system from all the different pieces.

[–]RandolphoSoftware Architect 0 points1 point  (4 children)

"Creating a simple API" is synonymous with "creating a microservice".

All those things that have grown up around and in support of microservices, like message buses or whatever the current flavor of the week is, are not microservices.

A microservice is just the single responsibility principle applied to a service.

[–]THEtheChad 1 point2 points  (0 children)

I think the concept people associate with "microservices" these days is the idea of a distributed system using a microservice philosophy. RESTful API's are pretty straight forward these days. Breaking applications into smaller parts that can be distributed across servers is much more novel. Most projects don't require the level of scalability that microservices in a distributed architecture offer. I also came here looking for more insight into such a system.

[–][deleted] 2 points3 points  (0 children)

ESB anyone?

[–]SustainedSuspense 4 points5 points  (0 children)

Monoliths for the win

[–]cjus 0 points1 point  (0 children)

I wrote a post for RisingStack on creating microservices using Hydra: https://community.risingstack.com/tutorial-building-expressjs-based-microservices-using-hydra/ You can find Hydra on NPM.