MICROSERVICES .NET CORE WITH EXAMPLE — Part 1

Bingeek
2 min readNov 21, 2019
Source: internet

Introduction

Being a .NET engineer you may experiment many kinds of architectures, one of those is Microservices architecture (MA). Against the traditional Monolithic architecture, the MA breaks large software projects into smaller, independent, and loosely coupled modules. They are responsible for highly defined, discrete tasks and communicate with other modules through APIs.

If you are jumping into the world of MA, you may feel vague because of hundred of distributed tutorial links.

Let’s jump deeply to the real project, name KCommerce, to figure out how easy, simple it is in the MA world.

Project

We’re going to build a very simple system, KCommerce, for sellers and buyers. There are 4 main parts:

  • Web: basically the pages for users to find and pick up products that they want to buy
  • CMS: the pages for admin to add products, content… (these data will be display on Web page)
  • Mobile app: the same functions as Web pages, but in native mobile app
  • Services: use Microservices architecture to buid many microservices for the three parts above

Solution architecture:

KCommerce architecture

The complete source codes can be found on Github

Plan

The series of articles we’re going to walk through are:

  1. Solution explanation and technologies
  2. Domain driven design fundamental
  3. Data accessing with Postgre SQL and Mongo DB
  4. CQRS and Event Sourcing
  5. API gateways with Ocelot
  6. Service discovery with Consul
  7. Secure with JWT
  8. Load balancer
  9. Communication between microservices
  10. Circuit Breaker
  11. Microservices Healthcheck
  12. Logging with Serilog
  13. Resilience with Polly
  14. Distributed caching with Redis
  15. Search with Elastic Search
  16. Real time communication between client and server with SignalR
  17. Payment with Paypal (optional)

Additional

  1. React JS fundamental
  2. Build simple KCommerce site with React JS and communicate with microservices
  3. Xamarin fundamental
  4. Build simple KCommerce app with Xamarin and communicate with microservices

I hope you will enjoy these series. Any feedback and contribution are welcomed

--

--