asp.net

NGINX for Service Fabric

Service Fabric is a powerful platform. Besides giving you the raw power of the virtual machine, you get fine grained control on scaling. Worth mentioning is the Actor programming model which is useful in given scenarios.

In this particular scenario I needed to host only 4 AspNetCore applications in a 5-node cluster. Since these applications are self hosted they need to listen for communication on their own port. These are multi-tenant application where tenants are resolved via the host name i.e. from a base domain example.com, you'd have tenants such as:

  • tenant1.example.com

  • tenant2.example.com

  • tenant3.example.com

The same would be done for the other 3 domains: example.info, example.org, example.net