How to build micro service oriented application in .NET world? Are there any platforms where we can write micro service oriented apps in .NET world? How to envision architecture that includes Micro services, Event store and some of NoSQL databases? Thanks.
ASP.NET comes with built-in support for developing and deploying your microservices using Docker containers. . NET includes APIs to easily consume microservices from any application you build, including mobile, desktop, games, web, and more.
NET Core blends well with Microservices is because both are similar to each other. . NET Core is an early adopter and started creating microservices architecture based solutions much earlier than others.
Microservices are still an infrastructure of choice for many SaaS products. They are most popular with data analytics services, with 45% of apps relying on the loose coupling model. But microservices can only bring value to your product if you stick to coherent processes.
Microservices are small, modular, and independently deployable services. Docker containers (for Linux and Windows) simplify deployment and testing by bundling a service and its dependencies into a single unit, which is then run in an isolated environment.
Follow this link for a step-by-step guide to setting up a simple Microservice framework using the .NET framework, ASP.NET, and RabbitMQ.
The tutorial starts with the core concepts, implements a working application, and scales that application in terms of size and complexity, tackling typical Microservice problems during each step.
Microservices is more an architectural approach than framework or a set of libraries. But in .Net world you can create independent process for web services using the OWIN (Open Web Interface for .NET).
You can see an example for implementing a self hosting web service (it do not requires IIS) in:
http://www.asp.net/web-api/overview/hosting-aspnet-web-api/use-owin-to-self-host-web-api
With that, you can implement your microservices like self-hosting services in one or more machines. The kind of database or event source is up to your application.
Then you can build some API Rest queried by your application, used like a central point of acces, a Facade pattern, every request will be turned to one of your minions-microservices.
Microsoft have released Service Fabric which gives you a platform for Microservices.
It is an Azure offering but will also be available on-premise with Windows Server 2016.
You can install Service Fabric on a dev machine running VS2015 and try it out using the SDK.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With