2 A basic shopping cart microservice

This chapter covers

  • A first iteration of an implementation of the shopping cart microservice
  • Creating HTTP endpoints with ASP.NET MVC
  • Implementing a request from one microservice to another
  • Implementing a simple event feed for a microservice

In chapter, 1 we looked at how microservices work and how they can be characterized. You also set up a simple technology stack—C#, ASP.NET, and the ASP.NET MVC framework—that lets you create microservices easily, and you saw a basic shopping cart microservice. In this chapter, you’ll implement the four main parts of this microservice using the same technology stack:

  1. A basic HTTP-based API allowing clients to retrieve a cart, delete it, and add items to it. Each of ...

Get Microservices in .NET, Second Edition 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.