A small sample of a Microservices architecture inspired by the book Microservices in .NET Core by Christian Horsdal Gammelgaard
(Warning: This code is not suitable for Production use)
WebApi: NancyFx
Data access: Dapper
Event-based collaboration: EventStore
Robustness: Polly
Containers: Docker
Modelled on a simple Telecoms domain of:
Customers (Customers Microservice)
...ordering PhoneLines (PhoneLineOrderer Microservice)
...from a Wholesaler (FakeBt Microservice)
...and receiving an SMS when it is completed (Sms Microservice)
Launch the system using docker:
$ docker-compose up -d --build
POST http://localhost:5001/customers
Content-Type: application/json
Body: { "Name" : "Apollo Ltd" }
POST http://localhost:5001/customer/1/phonelines
Content-Type: application/json
Body: { "HouseNumber" : 101, "Postcode": "S1 Z01" }