Hosted services are a powerful .NET feature, providing a robust mechanism for executing long-running background tasks in different types of applications. Given the flexible nature of .NET, such applications could be running on client devices, on-premise servers, or the cloud, depending on the particular use case. When it comes to ASP.NET Core, hosted services are…
Category: APIs
When developing ASP.NET Core web applications, it is common to interact with JWTs (JSON Web Tokens). Quite often you will want to validate JWTs and possibly even generate your own JWTs to secure API endpoints. However, it’s not always plain sailing when it comes to software development. After updating certain Microsoft NuGet packages to newer…
InAPIs
If you’ve been keeping up to date with what’s new in the .NET ecosystem over the last year or two, you’ll probably already be aware of the Minimal APIs feature that debuted in ASP.NET 6.0 back in 2021. However, since Minimal APIs are still a relatively new concept, perhaps you haven’t considered using them in…
In my previous post, I introduced Azure Functions and walked through the process of creating and debugging your first C# function using Visual Studio. This time, I’m covering the topic of deployment and how functions can be published to Azure. After reading this article, you’ll understand how to publish an Azure Function to Azure using…
Azure Functions is an Azure cloud service that allows software developers to focus on writing code that reacts to events, without needing to concern themselves as much with the infrastructure that the code is running on. Azure Functions applications are serverless by nature and can scale to meet demand with minimal overhead and cost. There…
The Request-Response pattern seems somewhat simple on the surface; send a request, then wait for and receive a response that matches up with the original request. However, implementing this pattern in an efficient manner is something that is easy to get wrong. I’ve found that much of the material online regarding this topic tends to…
InAPIs
Having already introduced the concept of gRPC services and having walked through how to consume a gRPC service using .NET Core, I’m now going to cover the next most fundamental topics; authentication and authorization. For production applications, your API endpoints are normally going to be available publicly and therefore they need to be protected from…
InAPIs
In a prior post, I introduced the key concepts behind using gRPC to develop an RPC service and walked through the process of creating a sample project. In this article, I build on the previously discussed topics by adding an additional service and a client to the sample project. After reading through the content below,…
InAPIs
Before we begin, here’s a quick definition of the term “Get to grips” to mull over. to make an effort to understand and deal with a problem or situation If you’re looking into micro-service communication options for a greenfield project, gRPC is a great place to start. In this article, I take a first look at…