Leanpub Header

Skip to main content

Learn Microservices - ASP.NET Core and Docker

Be ready for coding away next week

You know next to nothing about Microservices but need to start coding your next application within a week. Don't worry: this book has you covered.

Minimum price

$9.99

$10.99

You pay

$10.99

Author earns

$8.79
$

...Or Buy With Credits!

You can get credits monthly with a Reader Membership
PDF
EPUB
WEB
141
Pages
About

About

About the Book

You're a developer who knows nothing to Microservices. Which is fine, except that you need to start coding your next Microservices-based application using ASP.NET Core and Docker.

Don't worry: I have you covered. I've been training hundreds of developers like you during 16 years, and converted my experience into this book. I know from experience teaching what takes more time to learn in Microservices, and will spend time only where appropriate.

Plus this book is packed with exercises which build up into a full project: you develop two interdependent Microservices, each exposing a CRUD JSON API. You publish them in a Docker repository and run them in Docker.

Read this book, and you can code your Microservices within a week. Or your money back.

Print version available here.

Author

About the Author

Arnaud Weil

Arnaud Weil is a born developer: when he was a kid he was controlling his electric train using an Atari ST and some self-made electronics, then as a teenager created and distributed worldwide one of the first Web browsers for some of the first pocket computers, when the Web was just beginning. In fact, he loves coding.

Turning a passion into a career, Arnaud has been coding all kinds of applications from factory tools to smartphone applications to house control solutions. His status as a freelancer allows him to help his clients with many different projects.

But what Arnaud enjoys most is helping other developers: that's why he teaches, speaks, and writes books.

Other books by Arnaud Weil.

Contents

Table of Contents

Introduction

  1. What this book is not
  2. Prerequisites
  3. How to read this book
  4. Tools you need
  5. Source code

1.Why microservices?

  1. 1.1What are they?
  2. 1.2Microservices induce complexity

2.Microservices as seen from the client

  1. 2.1HTTP
  2. 2.2Payloads
  3. 2.3Do you speak JSON
  4. 2.4Client types
  5. 2.5Manual testing
  6. 2.6Exercise - Invoke a microservice manually
  7. 2.7Exercise solution

3.Microservices server-side

  1. 3.1About coding the server
  2. 3.2There comes .NET Core
  3. 3.3Introduction to ASP.NET Core
  4. 3.4ASP.NET Core Web API
  5. 3.5Exercise - Create a train scheduling service
  6. 3.6Exercise solution

4.Database access using Entity Framework Core

  1. 4.1Introduction to Entity Framework Core
  2. 4.2Scaffold your code and save time
  3. 4.3Exercise - Extend the train scheduling service
  4. 4.4Exercise solution

5.Adding UI server-side

  1. 5.1To UI or not to UI
  2. 5.2UI scaffolding with Visual Studio
  3. 5.3Exercise - Add a UI to the train scheduling service
  4. 5.4Exercise solution

6.Invoking a service from .NET and .NET Core

  1. 6.1.NET Clients
  2. 6.2Demo: consume the microservice from a WPF client

7.Invoking a service from another service

  1. 7.1Same but different but same
  2. 7.2Exercise - Create a ticketing service
  3. 7.3Exercise solution
  4. 7.4Exercise - Consume the scheduling service from the ticketing service
  5. 7.5Exercise solution
  6. 7.6Integration testing of the microservices created
  7. I need you, super-hero !

8.Introduction to containers and Docker

  1. 8.1Why do we need containers?
  2. 8.2Virtualization could have been the panacea
  3. 8.3Why containers perform better
  4. 8.4Containers in practice
  5. 8.5How containers solve problems
  6. 8.6Containers as microservice hosts
  7. 8.7Exercise - Run a Docker container
  8. 8.8Exercise solution

9.Creating and running Docker images

  1. 9.1How images are built
  2. 9.2An ASP.NET Core Dockerfile
  3. 9.3Multi-stage Dockerfiles
  4. 9.4Exercise - Build and run your own Docker image
  5. 9.5Exercise solution

10.Publishing images to Docker registries

  1. 10.1Why bother with Registries?
  2. 10.2Available Registries
  3. 10.3Publishing an image
  4. 10.4Exercise - Publish your services on Docker Hub
  5. 10.5Exercise solution

11.Executing linked microservice containers in a Docker Swarm

  1. 11.1The need for orchestrators
  2. 11.2Orchestrators commonly used with Docker
  3. 11.3Docker Swarm concepts
  4. 11.4Creating a swarm
  5. 11.5Configuring a stack
  6. 11.6Deploying and managing a stack on a swarm
  7. 11.7Exercise - Run the two services in a Docker Swarm
  8. 11.8Exercise solution
  9. 11.9Integration testing of the stack created

12.Microservice clusters using Docker Swarm

  1. 12.1Demo: load-balancing the stack

A word from the author

The Learn collection

Get the free sample chapters

Click the buttons to get the free sample in PDF or EPUB, or read the sample online here

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earned over $14 million writing, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub