<aside> ๐Ÿคฒ๐Ÿป

ุจูุณู’ู…ู ุงู„ู„ู‘ูŽู‡ู ุงู„ุฑู‘ูŽุญู’ู…ูŽูฐู†ู ุงู„ุฑู‘ูŽุญููŠู…ู

ูˆูŽุฃูŽู†ู’ ู„ูŽูŠู’ุณูŽ ู„ูู„ู’ุฅูู†ู’ุณูŽุงู†ู ุฅูู„ู‘ูŽุง ู…ูŽุง ุณูŽุนูŽู‰ูฐ (39) ูˆูŽุฃูŽู†ู‘ูŽ ุณูŽุนู’ูŠูŽู‡ู ุณูŽูˆู’ููŽ ูŠูุฑูŽู‰ูฐ (40) ุซูู…ู‘ูŽ ูŠูุฌู’ุฒูŽุงู‡ู ุงู„ู’ุฌูŽุฒูŽุงุกูŽ ุงู„ู’ุฃูŽูˆู’ููŽู‰ูฐ (41) ูˆูŽุฃูŽู†ู‘ูŽ ุฅูู„ูŽู‰ูฐ ุฑูŽุจู‘ููƒูŽ ุงู„ู’ู…ูู†ู’ุชูŽู‡ูŽู‰ูฐ (42)

</aside>

๐Ÿ“Œ My personal accounts links

๐Ÿ”— LinkedIn https://www.linkedin.com/in/ahmed-hany-899a9a321?utm_source=share&utm_campaign=share_via&utm_content=profile&utm_medium=android_app
๐ŸŸขWhatsApp https://wa.me/qr/7KNUQ7ZI3KO2N1
๐Ÿ“˜Facebook https://www.facebook.com/share/1NFM1PfSjc/

<aside> ๐Ÿ“Œ

What is a ASP.NET Core ?

is a modern, fast, and cross-platform framework by Microsoft for building web apps and APIs. It works on Windows, Linux, and macOS and lets you create:

It's powerful, open-source, and great for building high-performance, scalable apps.

</aside>

<aside> ๐Ÿšจ

How ASP.NET Core Differs from ASP.NET?

Feature ASP.NET ASP.NET Core
Platform Windows-only Cross-platform (Windows, macOS, Linux)
Performance Moderate High
Architecture Monolithic Modular
Open Source Partially Fully
Hosting IIS (Internet Information Services) Kestrel, IIS, Nginx, Apache, etc.
Dependency Injection Requires third-party libraries Built-in
API & MVC Separation Separate frameworks Unified framework

</aside>

<aside> ๐Ÿ’ก

From Where Web API Come ?

In the past, if you wanted to share functionality or logic between applications, you would:

๐Ÿ“Œ Limitations of the Old Approach:

  1. Local Access Only: The DLL had to be physically present on the same machine or network.
  2. Platform Dependency: Typically limited to applications built with the same technology stack (e.g., .NET apps).
  3. Tight Coupling: Changes to the DLL required redeployment to all consuming applications.

๐ŸŒ The Rise of Web API (Modern Approach):

Web API is essentially the same concept as your old Class Library but exposed over HTTP via a web server. This allows it to be accessed from anywhere using a URL or domain, like:

https://myweb.com/api/data

โœ… Why Web APIs Became Popular:

  1. Platform Independence: Any application (web, mobile, desktop) can access the API using HTTP.
  2. Global Accessibility: APIs hosted on a web server can be accessed from anywhere with an internet connection.
  3. Scalability: Web APIs can be scaled independently of the consuming applications.
  4. Security & Authentication: APIs can be protected using modern techniques (JWT, OAuth, API Keys).
  5. Standard Communication Protocols: Uses standard protocols like HTTP, JSON, and XML, making it flexible for various clients.

๐Ÿš€ How It Works:

  1. Create a Web API using ASP.NET Core.
  2. Deploy the API to a web server (IIS, Nginx, Azure, etc.).
  3. Access the API using a URL or domain (e.g., https://example.com/api/data).
  4. Consume the API from any application using HTTP requests (GET, POST, PUT, DELETE).

</aside>