Developing some microservices for a shopping cart
In this section, we will develop some microservices for a shopping cart, uniquely identified by their business capabilities. So, let's get a quick overview of our current problems before getting our hands dirty. The shopping cart monolithic was going well, but with the advent of digitalization, there was a huge increase in transaction volumes—300-500 times compared the original estimates. The end to end architecture was reviewed and it had the following limitations, based on which the microservice architecture was introduced:
- Firmness and sturdiness: The firmness of the system was greatly impacted due to errors and stuck threads, which forced the Node.js application server to not accept any new transactions and do a forceful restart. Memory allocation issues and database lock threads were major problems. Certain resource-intensive operations were impacting the entire application and the resource allocation pool was always consumed.
- Deployment...