Learn Microservices - ASP.NET Core and Docker
Learn Microservices - ASP.NET Core and Docker
Be ready for coding away next week
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.
Bundles that include this book
Table of Contents
-
Introduction
- What this book is not
- Prerequisites
- How to read this book
- Tools you need
- Source code
-
1. Why microservices?
- 1.1 What are they?
- 1.2 Microservices induce complexity
-
2. Microservices as seen from the client
- 2.1 HTTP
- 2.2 Payloads
- 2.3 Do you speak JSON
- 2.4 Client types
- 2.5 Manual testing
- 2.6 Exercise - Invoke a microservice manually
- 2.7 Exercise solution
-
3. Microservices server-side
- 3.1 About coding the server
- 3.2 There comes .NET Core
- 3.3 Introduction to ASP.NET Core
- 3.4 ASP.NET Core Web API
- 3.5 Exercise - Create a train scheduling service
- 3.6 Exercise solution
-
4. Database access using Entity Framework Core
- 4.1 Introduction to Entity Framework Core
- 4.2 Scaffold your code and save time
- 4.3 Exercise - Extend the train scheduling service
- 4.4 Exercise solution
-
5. Adding UI server-side
- 5.1 To UI or not to UI
- 5.2 UI scaffolding with Visual Studio
- 5.3 Exercise - Add a UI to the train scheduling service
- 5.4 Exercise solution
-
6. Invoking a service from .NET and .NET Core
- 6.1 .NET Clients
- 6.2 Demo: consume the microservice from a WPF client
-
7. Invoking a service from another service
- 7.1 Same but different but same
- 7.2 Exercise - Create a ticketing service
- 7.3 Exercise solution
- 7.4 Exercise - Consume the scheduling service from the ticketing service
- 7.5 Exercise solution
- 7.6 Integration testing of the microservices created
-
8. Introduction to containers and Docker
- 8.1 Why do we need containers?
- 8.2 Virtualization could have been the panacea
- 8.3 Why containers perform better
- 8.4 Containers in practice
- 8.5 How containers solve problems
- 8.6 Containers as microservice hosts
- 8.7 Exercise - Run a Docker container
- 8.8 Exercise solution
-
9. Creating and running Docker images
- 9.1 How images are built
- 9.2 An ASP.NET Core Dockerfile
- 9.3 Multi-stage Dockerfiles
- 9.4 Exercise - Build and run your own Docker image
- 9.5 Exercise solution
-
10. Publishing images to Docker registries
- 10.1 Why bother with Registries?
- 10.2 Available Registries
- 10.3 Publishing an image
- 10.4 Exercise - Publish your services on Docker Hub
- 10.5 Exercise solution
-
11. Executing linked microservice containers in a Docker Swarm
- 11.1 The need for orchestrators
- 11.2 Orchestrators commonly used with Docker
- 11.3 Docker Swarm concepts
- 11.4 Creating a swarm
- 11.5 Configuring a stack
- 11.6 Deploying and managing a stack on a swarm
- 11.7 Exercise - Run the two services in a Docker Swarm
- 11.8 Exercise solution
- 11.9 Integration testing of the stack created
-
12. Microservice clusters using Docker Swarm
- 12.1 Demo: load-balancing the stack
- A word from the author
- The Learn collection
- Notes
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 earnedover $14 millionwriting, 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