Introduction
What this book is not
I made my best to keep this book small, so that you can learn microservices quickly without getting lost in petty details. If you are looking for a reference book where you’ll find answers to all the questions you may have within the next 4 years of your microservices practice, you’ll find other heavy books for that.
My purpose is to swiftly provide you with the tools you need to code your first microservice application using Docker and ASP.NET Core, then be able to look for more by yourself when needed. While some authors seem to pride themselves in having the thickest book, in this series I’m glad I achieved the thinnest possible book for my purpose. Though I tried my best to keep all of what seems necessary, based on my 16 years experience of teaching .NET.
I assume that you know what microservices are and when to use them. In case you don’t, read the following Why microservices chapter.
Prerequisites
In order for this book to meet its goals, you must:
- Have basic experience creating applications with C#
- Know what a Web application is
How to read this book
This book’s aim is to make you productive as quickly as possible. For this we’ll use some theory, several demonstrations, plus exercises. Exercises appear like the following:
In code samples, a backslash is used in order to wrap long lines. Do not type theses backslashes when you copy code from the book.
Tools you need
The only tools you’ll need to work through this book are the following:
- Windows 10
- Visual Studio 2017 (Community, Professional or Enterprise)
- Docker 17.09 or higher (Community)
When installing Visual Studio, make sure you select the ASP.NET and .NET Core components.
Source code
All of the source code for the demos and do-it-yourself solutions is available at https://bitbucket.org/epobb/microservicesexercises
It can be downloaded as a ZIP file, or if you installed GIT you can simply type:
git clone https://bitbucket.org/epobb/microservicesexer\
cises.git