O'Reilly logo

Microservices in .NET Core: with examples in Nancy by Christian Horsdal Gammelgaard

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 2. A basic shopping cart microservice

This chapter covers

  • A nearly complete implementation of the Shopping Cart microservice
  • Creating HTTP endpoints with Nancy
  • Implementing a request from one microservice to another
  • Implementing a simple event feed for a microservice with Nancy

In chapter 1, we looked at how microservices work and how they can be characterized. You also set up a simple technology stack—C#/Nancy/OWIN—that lets you create microservices easily, and you saw a basic Shopping Cart microservice. In this chapter, you’ll implement four main parts of this microservice using Nancy:

  • A basic HTTP-based API allowing clients to retrieve a cart, delete it, and add items to it. Each of these methods will be visible as an HTTP ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required