Skip to main content

Posts

Showing posts with the label webapi

Report generation in .Net Core API

  In this tutorial we will learn about quick way to generate reports using .net core api. When we work in companies, we may face a situation where client ask to generate reports, and he is not ready to spend money in purchasing third party libraries to get reports. Apart from this he want to work to done in same day or he has some urgency. In this situation this tutorial will helpful where we need to generate reports in single day without spending and wasting time in research. Let’s Start. a. We will create .Net core API. b. Create Endpoint for Download file c. Make a call to database and fetch data. d. Create report in html format and send html file back to user as response. Consider we connect to database and get below data table Consider code below using Microsoft.AspNetCore.Mvc; using System.Data; using System.Text; // For more information on enabling Web API for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860 namespace DownloadFile.Controllers { [ ...

Fixing High CPU Usage in .NET Core using Parallelism

  We will fix problem occurs due to incorrect use Parallelism in .NET Core To increase application performance sometimes we use process task or work extensively in Parallel and that may lead performance issue. When we do code, we should understand our requirement very carefully along with hardware resources those we have. We should code like that there should be less CPU usage and server should work without issues. In .NET Core, when you’re using parallelism (like Parallel.For, Task.WhenAll, or Task.Run), you might encounter performance issues if the number of concurrent threads or tasks exceeds what your system can efficiently handle. A common issue is high CPU usage or resource contention, which can degrade overall performance, cause excessive context switching, and even lead to thread starvation or deadlocks. Non members can access from here Effective Parallelism Strategies to Mitigate High CPU Usage in .NET Core We will fix problem occurs due to incorrect use Parallelism in .NE...

ITC Infotech - .Net Full Stack 14 Year Exp Interview Questions - Jan 2025

  I am sharing interview details those I encountered few days back. Photo by  Walls.io  on  Unsplash Basic Details. a.  Company URL  :  ITC Infotech — Business Solutions | Technology & IT Services b.  Headcount - approx. 17000 c.  Parent Company : ITC LTD (BSE / NSE Listed) d.  Location : Gurugram (India) — Work from Office 3 days in week e.  Salary offered : 35 Lac per annum f.  Expected period to join : 45 days max f.  Position : .NET Full stack Lead. Now days I found most of IT companies are going with online interviews. Here they are using dedicated platforms those are helpful in managing and assuring integrity of candidates during online interview. Integrity is very important because, nowadays, the concept of proxy support for interviews is flourishing. In this practice, the candidate only needs to appear online, while someone else speaks on their behalf. Since interviews are conducted online, it becomes very diff...