The shopping cart microservice

The next candidate is the one made famous by the online shopping revolution brought around by the likes of Amazon and further fuelled by smartphones: the shopping cart microservice. It should let us add or remove books to our cart before we finally decide to check out and pay for them. There is no doubt whether this should be a separate microservice or not. However, this brings forth an interesting question of whether it deals with the product's data store or not; it would need to do this in order to receive some fundamental details, such as availability in stock. Accessing the data store across the service is out of question as that is one of the most fundamental prerequisite for microservices. The answer to ...

Get Building Microservices with .NET Core now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.