Skip to content

Latest commit

 

History

History
55 lines (32 loc) · 2.34 KB

02_Architecture.md

File metadata and controls

55 lines (32 loc) · 2.34 KB

Chapter 02

Architecture

Before getting started it is helpful to take a look at the application architecture first.

IndyMicro

ASP.NET Core Framework

The ASP.NET Core framework provides a great way to separate your application into dynamically loadable project modules that can eventually grow into full microservices. The key to making this work is to follow some guidelines to keep your modules isolated and separated from each other while you are in the monolithic growth stage of your application. Over time, if you maintain this separation, you can split your monolith and deploy groups of modules into separate hosts that can then scale separately in terms of resources like high CPU or memory or bandwidth needs.

IndyMicro.NET uses the following features of ASP.NET Core:

  • HostBuilder
  • Configuration
  • Logging
  • Dependency Injection
  • Web API's with MVC
  • Swagger API documentation
  • Authentication with JWT's
  • Authorization policies using claims and roles
  • Razor page support (mostly for admin and monitoring)
  • SignalR for realtime client messaging
  • Entity Framework code first storage per module
  • Hosted background services per module

Additional Infrastructure Libraries

In addition to ASP.NET, the following libraries add key features:

  • Obvs: a message bus service adapter used either in-process or distributed
  • Ocelot: an API Gateway to provide a backend for frontend interface
  • Azure SignalR: for distributed web socket client notifications
  • IDistributedCache: a memory service adapter for using Redis or NCache

Front End Stacks

A sample front end stack is provided that you can clone or learn from.

  • Vue.js with axios for API calls
  • Quasar Framework for building SPA's, PWA's, mobile and Electron apps with Vue.js
  • Login and authorization checking with JWT refresh tokens
  • OAuth2 social logins for Google and Windows, with hello.js

< Back