Skip to Content
Building Microservices with ASP.NET Core
book

Building Microservices with ASP.NET Core

by Kevin Hoffman
September 2017
Intermediate to advanced
229 pages
5h 43m
English
O'Reilly Media, Inc.
Content preview from Building Microservices with ASP.NET Core

Chapter 4. Backing Services

In Chapter 3 we built our first microservice with ASP.NET Core. This service exposed some simple endpoints backed by an in-memory repository to provide consumers with the ability to query and manipulate teams and team membership. While it was enough to get started, it’s far from an example of a production-grade service.

In this chapter we’re going to make our first foray into the world of microservice ecosystems. Services never exist in a vacuum, and most of them need to communicate with other services in order to do their jobs. We call these supporting services backing services, and we’ll explore how to create and consume them by creating a new service and modifying the original team service to communicate with it.

Microservice Ecosystems

As we saw in Chapter 3, it’s pretty easy to fire up a quick set of middleware to host some RESTful resources on an HTTP server. These are just implementation details. The real work lies in designing ecosystems of microservices, where, within a larger community of interconnected services, each service can have its own release cadence, can be deployed on its own, and can scale horizontally on demand.

To achieve this, we need to put a little thought into what we’re doing. While classic “hello world” samples all exist in a vacuum and rely on no other services, we’re rarely going to see a lone service in production (with a few exceptions). This was the driving factor behind the discussion of the concept of API First in ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Building Microservices with .NET Core

Building Microservices with .NET Core

Soumya Mukherjee, Gaurav Aroraa, Lalit Kale, Manish Kanwar
.NET Core Microservices

.NET Core Microservices

Piotr Gankiewicz
Enterprise Application Architecture with .NET Core

Enterprise Application Architecture with .NET Core

Ganesan Senthilvel, Ovais Mehboob Ahmed Khan, Habib Qureshi

Publisher Resources

ISBN: 9781491961728Errata Page