Please comment below...
Microservices and IoT both require distributed architectures where a large number of endpoints communicate fast and reliably. NATS is a popular high-performance cloud-based messaging system that is an excellent fit for such scenarios. The .NET client for NATS can publish over 3 million messages per second (and that's in a VM, on a developer laptop).
Here's how you'd send a simple object on the message bus, with a subject “foo”:
using (var cnx = new ConnectionFactory().CreateEncodedConnection())
{
cnx.Publish("foo", new Company
{
Name = "Apcera",
Address = "140 New Montgomery St."
});
}
Other actors can asynchronously subscribe to the same subject and process objects:
using (var cnx = new ConnectionFactory().CreateEncodedConnection()) {
using (cnx.SubscribeAsync("foo", (sender, args) => {
var company = (Company)args.ReceivedObject;
Console.WriteLine($"Name: {company.Name}, Address: {company.Address}");
})) {
System.Console.WriteLine("Waiting for a message...");
Thread.Sleep(5000);
}
}
You can read more about the NATS .NET client in NATS In Microsoft .NET.
- NBench performance testing code throughput by Andrea Angella.
- What's New with ASP.NET MVC 6 by Ugo Lattanzi (video)
- Using an ASP.NET module to debug async calls by Xing (Shin) Mao.
- Setting up ASP.NET v5 (vNext) to use JWT tokens (using OpenIddict) by Capesean. JWT Tokens are an open, industry standard RFC 7519 method for representing claims securely between two parties.
- Configuring SQL Server for session state in MVC 6 by Mike Brind.
- Develop ReactJS + ASP.NET Web API apps in Visual Studio 2015 by Martijn Boland
- ASP.NET 5 MVC 6 file upload with Sql Server FileTable by Damien Bod
https://github.com/zihotki/LFEG - a library to export data to Excel, comparing to existing libraries it's many times faster.