Never send requests directly to Kestrel
A few days ago, I was tasked with writing an application that would send several requests to an API. It was a ConsoleApp and wasn’t overly complicated. I wrote the application, tested it on my system, and it worked fine. Then, they said the requests ....
Read more
Receive data from Masstransit Consumer
If you've worked with the Masstransit library, you’ve likely used its Send or Publish methods. In this approach, you send data and register a Consumer so that when data is sent, the Consumer receives it and performs the necessary processing ....
Read more
Creating a time-based one-time password (TOTP) along with its expiration time
By default, .NET uses the Rfc6238AuthenticationService class for generating and validating TOTP (Time-Based One-Time Password) codes. The issue with this class is that the generated TOTP code remains valid for 9 minutes, a timeframe hardcoded and unchangeable. ....
Read more
Advanced Health Check Asp.Net Core
During application development on our system, we can easily test external services or databases that we work with to see if we can access the database or external service or not. However, this becomes a bit challenging after uploading to the main servers ....
Read more
Load testing with Locust
In this article, we introduce a tool for testing APIs. Locust is one of the tools that provides the capability to send a large number of requests. To use Locust, we can utilize its Docker image and create a Python file named "locustfile.py" where we define the necessary ....
Read more