How to send many requests in parallel in ASP.Net Core

I want to make 1000 requests! How can I make it really fast? Let’s have a look at 4 approaches and compare their speed. Preparations In order to test different methods of handling requests, I created a very simple ASP.Net Core API, that return user by his id. It fetches them from plain old MSSQL… Continue reading How to send many requests in parallel in ASP.Net Core

Sending and receiving big files using Egnyte.API nuget package

Handling big files can be a problem when sending it through web. Simple REST calls are enough for small or medium files, but it’s limitation is a size of a request, that cannot be larger then 2GB. For files larger than that, you have to send or download file in chunks or as a stream.… Continue reading Sending and receiving big files using Egnyte.API nuget package

How to handle error 0x800703E3, when user cancells file download

Recently at work I came across a difficult error, that gives an error message, that would lead me nowhere. The remote host closed the connection. The error code is 0x800703E3. I’ll give you more context – error occurs in the micro-service that serves big files across the web with REST interface. Service was working perfectly… Continue reading How to handle error 0x800703E3, when user cancells file download

Getting started with CosmosDB in Azure with .NET Core

CosmosDB is Microsoft’s new way of storing data in the cloud, comparing to good old MSSQL Server. It offers globally distributed, multi-model database. Interesting fact is that it offers multiple model of storing data: key-value, column-family, documents and graph as shown in this picture: First you need a Cosmos DB account Create a Cosmos DB… Continue reading Getting started with CosmosDB in Azure with .NET Core

Sending a Azure Service Bus message in ASP.NET core

ASP.NET Core is a open-source web framework that everyone are so excited about recently. There are some good arguments to be excited about it: ability to run on Windows, macOS and Linux, ability to host website in IIS, Nginx, Apache and Docker and it’s fast. Can it be used for Service Bus scenarios? Yes, it… Continue reading Sending a Azure Service Bus message in ASP.NET core

How to prevent ASP.Net api from going to sleep

Web Api is a framework to build HTTP based services, especially RESTful apis. It is designed to build request triggered action, where system will be ready to do some work when receiving a request. If it’s not asked, it shouldn’t do anything and in a while it will go to sleep. Problem starts when you’re planning… Continue reading How to prevent ASP.Net api from going to sleep