Hello All,
I want to learn about microservices (NodeJS+Mongodb) and want to build a blog app with Docker. But I don't know how to start with that.
Requirements:
1- Any user can login and create blogs.
2.Login users can comment on blogs.
So I request you to please provide me little basic starting point for the same.
Huge thanks in advance.
Hi,
nowadays I started to create exactly a blog site example microservices project for my Moleculer framework. If I ready I will show you. :)
I don't see the need to break down a blog into microservices, the blog itself is a microservice, breaking it down any further is probably wasting resources, unless you can clearly define boundaries where you can make the cut.
A user management system could be a separate microservice, but only if another application will be using that same service, otherwise you're just making more work for yourself.
While I admire your intention to learn about Microservices and Docker, your question has a fundamental problem.
What is clear to anyone who has done microservices, is that you don't build an app using microservices from scratch.
You need a monolith. A big monolith in production with issues. Then you identify the boundaries and the seams and start splitting your monolith.
Building an app using the microservices approach from scratch is a secure recipe for disaster. Microservices are complex. A lot. Deployment is complex, communication is complex, logging is complex, data consistency is complex. Beyond all added complexity to a fresh new project, you risk of splitting your non-monolith into the wrong pieces and to find out when it's too late.
Now, as a mere mental experiment, and since you want to learn: