mongoose.connect('mongodb://localhost/productdb', { useNewUrlParser: true, useUnifiedTopology: true });
app.listen(3001, () => { console.log('Product Service listening on port 3001'); });
Microservices are a software development approach that structures an application as a collection of small, independent services. Each service is responsible for a specific business capability and can be developed, tested, and deployed independently.