Monolith vs Microservices in .NET Core 1. Monolithic Architecture Definition : A single, unified codebase where all modules (UI, business logic, data access) are part of one large application. Deployment : Deployed as a single unit (e.g., one .exe or .dll ). Scaling : Scales by cloning the entire application (vertical/horizontal scaling). Communication : Internal method calls (no network). Tech Stack : Typically limited to a single framework/runtime. Example in .NET Core : An ASP.NET Core MVC app with controllers, services, and EF Core all in the same project. Single database, one codebase, deployed to IIS/Kestrel. 2. Microservices Architecture Definition : A collection of small, independent services, each responsible for a specific business function. Deployment : Each service runs independently (often in Docker containers). Scaling : Scale individual services based on demand. Communication : Via APIs (REST, gRPC, message queues). ...
.NET C# interview questions – the kind that interviewers actually ask to test depth, not just theory.
.NET C# interview questions – the kind that interviewers actually ask to test depth, not just theory. I’ll give you a structured list with Basic → Intermediate → Advanced → Architect-level questions. 🔹 Basic Level (C# / .NET Fundamentals) What is the difference between value type and reference type in C#? Explain boxing and unboxing with an example. What are generics in C#? Why do we use them? What is the difference between const , readonly , and static ? Explain the difference between abstract class and interface . How does Garbage Collection work in .NET? What are extension methods in C#? What’s the difference between IEnumerable , ICollection , IList , and IQueryable ? 🔹 Intermediate Level (OOP, LINQ, Async, EF) Explain Dependency Injection . How is it implemented in .NET Core? What are async/await keywords in C#? How do they work internally? Difference between Task , Thread , and ValueTask . How does LINQ work internall...