SlideShare une entreprise Scribd logo
1  sur  15
Télécharger pour lire hors ligne
I N T R O D U C T I O N T O
MICROSOFT BLAZOR
BEFO RE W E BE GIN
We must understand the following as well:
o ASP.NET v/s .NET
o Single Page Application
o WebAssembly (WASM)
o Server-side Model
Let's dive into it step-by-step
. N E T
o It’s a cross-platform, open-source developer platform for building many
different types of applications
o You can write .NET in various languages including C#, F#, or Visual Basic
o It consists of NuGet, a package manager built specifically for .NET which
consists of over 100,000 packages.
o Not only this, but you can also join .NET developers' community on multiple
social media platforms
o Latest version of .NET is currently .NET 8.0.
. N E T APP LICA TION MOD ELS
ASP. NET
o It’s a cross-platform, open-source and a free framework specifically used to
build web-apps and services with .NET and C#
o It extends the .NET developer platform with tools and libraries which are used
specific to web applications.
SING LE P AGE APPL ICAT ION
(SPA )
o Refers to the web app implementation that only loads a single web
document
o The single web document then updates the content of that single
document via JavaScript APIs such as Fetch when different content is
to be shown
o Allows user to use website without loading new pages from the server,
resulting in performance gains and a more dynamic experience
SING LE P AGE APPL ICAT ION
(SPA )
o Websites such as Gmail, Facebook, LinkedIn etc., all are SPAs that offers
outstanding user experience in the browser with no page reloading
SING LE P AGE APPL ICAT ION
(SPA )
o In general, when you want to visit a specific web page, you enter its
address to request access from the browser, the browser sends this
request to a server, and it comes with an HTML document in return
o Using SPA, the server sends the HTML document only for the first
request, sending JSON data
o The SPA will rewrite the current page’s content and not reload the
whole web page
SING LE P AGE APPL ICAT ION
(SPA ) ( A D V A N T A G E S )
o High Speed: SPAs provide shorter response times as the entire page doesn’t have to reload
and the data only changes in the requested content path
o Enhanced UX: Helps user gain only the information they request other than loading
everything
o Efficient Caching: Caches data efficiently as it sends a request to a server for one time only
and then updates the other data
o Consumes less resources: Since they load the page just once, therefore it consumes less
bandwidth, and work in areas with slow internet
o Cross platform compatibility: Help developers make apps that can run on any OS, device
and browser
SING LE P AGE APPL ICAT ION
(SPA ) ( D I S A D V A N T A G E S )
o Poor SEO performance: As there is just a single URL with no changes or exceptional addresses,
optimizing it for SEO is tricky. It lacks indexation, good analytics, unique links, metadata, etc.
o Online threats: SPAs are more vulnerable to online threats such as cross-site scripting (XSS) than
MPAs. Attackers can utilize XSS to inject client-side scripts into a web app and compromise it.
o Initial load time: Although SPAs are praised for showcasing great performance and speed, it takes
a while to load the complete site. It may irritate some users who may not open the app again.
o Doesn’t store history: SPAs don’t store browser history. If you check the history for any valuable
data, you only see the SPA’s link to the entire website. Also, you can’t move back and forth in the
SPA.
WEB ASSE MBLY
o Web Assembly allows you to take
the parsing and compiling to the
server
o With Web Assembly, you compile
your code in WASM, from where it
gets downloaded by the browser
WEB ASSE MBLY
o WebAssembly allows you to run
.NET code in your browser
o This is how you run Blazor on web.
Blazor uses ASP.NET MVC approach
for building applications that run in
the browser
SERV ER - S IDE MODE L
o Results in smaller size downloads
BLAZ OR
o An ASP.NET framework used to
make Single Page Applications
o Consists of Razor pages in which
user can write code and markup at
the same place
o Fast, scalable and accurate
o Can run on both client and server
models efficiently
THAN K YO U

Contenu connexe

Similaire à #1 | Introduction to Microsoft Blazor | Sameer Siddiqui

TECHNOLOGY FOR BACK-END WEB DEVELOPMENT: SERVER-SIDE SCRIPTING
TECHNOLOGY FOR BACK-END WEB DEVELOPMENT: SERVER-SIDE SCRIPTING TECHNOLOGY FOR BACK-END WEB DEVELOPMENT: SERVER-SIDE SCRIPTING
TECHNOLOGY FOR BACK-END WEB DEVELOPMENT: SERVER-SIDE SCRIPTING PamRobert
 
LATEST_TRENDS_IN_WEBSITE_DEVELOPMENT.pptx
LATEST_TRENDS_IN_WEBSITE_DEVELOPMENT.pptxLATEST_TRENDS_IN_WEBSITE_DEVELOPMENT.pptx
LATEST_TRENDS_IN_WEBSITE_DEVELOPMENT.pptxchitrachauhan21
 
Benefits of Using ASP.NET For Web Development for Businesses In 2023
Benefits of Using ASP.NET For Web Development for Businesses In 2023Benefits of Using ASP.NET For Web Development for Businesses In 2023
Benefits of Using ASP.NET For Web Development for Businesses In 2023CMARIX TechnoLabs
 
web, spa vs traditional - 2016
web, spa vs traditional - 2016web, spa vs traditional - 2016
web, spa vs traditional - 2016Yauheni Nikanovich
 
Things you must know on ruby on rails single page application
Things you must know on ruby on rails single page applicationThings you must know on ruby on rails single page application
Things you must know on ruby on rails single page applicationAndolasoft Inc
 
Dynamic Website Designing Company in Delhi NCR Dynamic website Designers
Dynamic Website Designing Company in Delhi NCR Dynamic website DesignersDynamic Website Designing Company in Delhi NCR Dynamic website Designers
Dynamic Website Designing Company in Delhi NCR Dynamic website DesignersMambaSoftwares
 
Web service Introduction
Web service IntroductionWeb service Introduction
Web service IntroductionMadhukar Kumar
 
Web 2 0 Fullfeatures
Web 2 0 FullfeaturesWeb 2 0 Fullfeatures
Web 2 0 Fullfeaturesvsnmurthy
 
Web 2 0 Fullfeatures
Web 2 0 FullfeaturesWeb 2 0 Fullfeatures
Web 2 0 Fullfeaturesguest9b7f4753
 
single page application
single page applicationsingle page application
single page applicationRavindra K
 
Web Development Today
Web Development TodayWeb Development Today
Web Development Todaybretticus
 
HTML5: the new frontier of the web
HTML5: the new frontier of the webHTML5: the new frontier of the web
HTML5: the new frontier of the webIvano Malavolta
 

Similaire à #1 | Introduction to Microsoft Blazor | Sameer Siddiqui (20)

Course Document
Course DocumentCourse Document
Course Document
 
TECHNOLOGY FOR BACK-END WEB DEVELOPMENT: SERVER-SIDE SCRIPTING
TECHNOLOGY FOR BACK-END WEB DEVELOPMENT: SERVER-SIDE SCRIPTING TECHNOLOGY FOR BACK-END WEB DEVELOPMENT: SERVER-SIDE SCRIPTING
TECHNOLOGY FOR BACK-END WEB DEVELOPMENT: SERVER-SIDE SCRIPTING
 
LATEST_TRENDS_IN_WEBSITE_DEVELOPMENT.pptx
LATEST_TRENDS_IN_WEBSITE_DEVELOPMENT.pptxLATEST_TRENDS_IN_WEBSITE_DEVELOPMENT.pptx
LATEST_TRENDS_IN_WEBSITE_DEVELOPMENT.pptx
 
AFTAB AHMED.pptx
AFTAB AHMED.pptxAFTAB AHMED.pptx
AFTAB AHMED.pptx
 
Benefits of Using ASP.NET For Web Development for Businesses In 2023
Benefits of Using ASP.NET For Web Development for Businesses In 2023Benefits of Using ASP.NET For Web Development for Businesses In 2023
Benefits of Using ASP.NET For Web Development for Businesses In 2023
 
technology@web
technology@webtechnology@web
technology@web
 
web, spa vs traditional - 2016
web, spa vs traditional - 2016web, spa vs traditional - 2016
web, spa vs traditional - 2016
 
Java script framework
Java script frameworkJava script framework
Java script framework
 
Things you must know on ruby on rails single page application
Things you must know on ruby on rails single page applicationThings you must know on ruby on rails single page application
Things you must know on ruby on rails single page application
 
Dynamic Website Designing Company in Delhi NCR Dynamic website Designers
Dynamic Website Designing Company in Delhi NCR Dynamic website DesignersDynamic Website Designing Company in Delhi NCR Dynamic website Designers
Dynamic Website Designing Company in Delhi NCR Dynamic website Designers
 
New trends on web platform
New trends on web platformNew trends on web platform
New trends on web platform
 
Web service Introduction
Web service IntroductionWeb service Introduction
Web service Introduction
 
Web 2 0 Fullfeatures
Web 2 0 FullfeaturesWeb 2 0 Fullfeatures
Web 2 0 Fullfeatures
 
Web 2 0 Fullfeatures
Web 2 0 FullfeaturesWeb 2 0 Fullfeatures
Web 2 0 Fullfeatures
 
Portfolio
PortfolioPortfolio
Portfolio
 
single page application
single page applicationsingle page application
single page application
 
Web Development Today
Web Development TodayWeb Development Today
Web Development Today
 
A comprehensive software infrastructure of .Net
A comprehensive software infrastructure of .Net  A comprehensive software infrastructure of .Net
A comprehensive software infrastructure of .Net
 
HTML5: the new frontier of the web
HTML5: the new frontier of the webHTML5: the new frontier of the web
HTML5: the new frontier of the web
 
Web 2 0 Fullfeatures
Web 2 0 FullfeaturesWeb 2 0 Fullfeatures
Web 2 0 Fullfeatures
 

Dernier

Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2Hyundai Motor Group
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxnull - The Open Security Community
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?XfilesPro
 

Dernier (20)

Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptxVulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?
 

#1 | Introduction to Microsoft Blazor | Sameer Siddiqui

  • 1. I N T R O D U C T I O N T O MICROSOFT BLAZOR
  • 2. BEFO RE W E BE GIN We must understand the following as well: o ASP.NET v/s .NET o Single Page Application o WebAssembly (WASM) o Server-side Model Let's dive into it step-by-step
  • 3. . N E T o It’s a cross-platform, open-source developer platform for building many different types of applications o You can write .NET in various languages including C#, F#, or Visual Basic o It consists of NuGet, a package manager built specifically for .NET which consists of over 100,000 packages. o Not only this, but you can also join .NET developers' community on multiple social media platforms o Latest version of .NET is currently .NET 8.0.
  • 4. . N E T APP LICA TION MOD ELS
  • 5. ASP. NET o It’s a cross-platform, open-source and a free framework specifically used to build web-apps and services with .NET and C# o It extends the .NET developer platform with tools and libraries which are used specific to web applications.
  • 6. SING LE P AGE APPL ICAT ION (SPA ) o Refers to the web app implementation that only loads a single web document o The single web document then updates the content of that single document via JavaScript APIs such as Fetch when different content is to be shown o Allows user to use website without loading new pages from the server, resulting in performance gains and a more dynamic experience
  • 7. SING LE P AGE APPL ICAT ION (SPA ) o Websites such as Gmail, Facebook, LinkedIn etc., all are SPAs that offers outstanding user experience in the browser with no page reloading
  • 8. SING LE P AGE APPL ICAT ION (SPA ) o In general, when you want to visit a specific web page, you enter its address to request access from the browser, the browser sends this request to a server, and it comes with an HTML document in return o Using SPA, the server sends the HTML document only for the first request, sending JSON data o The SPA will rewrite the current page’s content and not reload the whole web page
  • 9. SING LE P AGE APPL ICAT ION (SPA ) ( A D V A N T A G E S ) o High Speed: SPAs provide shorter response times as the entire page doesn’t have to reload and the data only changes in the requested content path o Enhanced UX: Helps user gain only the information they request other than loading everything o Efficient Caching: Caches data efficiently as it sends a request to a server for one time only and then updates the other data o Consumes less resources: Since they load the page just once, therefore it consumes less bandwidth, and work in areas with slow internet o Cross platform compatibility: Help developers make apps that can run on any OS, device and browser
  • 10. SING LE P AGE APPL ICAT ION (SPA ) ( D I S A D V A N T A G E S ) o Poor SEO performance: As there is just a single URL with no changes or exceptional addresses, optimizing it for SEO is tricky. It lacks indexation, good analytics, unique links, metadata, etc. o Online threats: SPAs are more vulnerable to online threats such as cross-site scripting (XSS) than MPAs. Attackers can utilize XSS to inject client-side scripts into a web app and compromise it. o Initial load time: Although SPAs are praised for showcasing great performance and speed, it takes a while to load the complete site. It may irritate some users who may not open the app again. o Doesn’t store history: SPAs don’t store browser history. If you check the history for any valuable data, you only see the SPA’s link to the entire website. Also, you can’t move back and forth in the SPA.
  • 11. WEB ASSE MBLY o Web Assembly allows you to take the parsing and compiling to the server o With Web Assembly, you compile your code in WASM, from where it gets downloaded by the browser
  • 12. WEB ASSE MBLY o WebAssembly allows you to run .NET code in your browser o This is how you run Blazor on web. Blazor uses ASP.NET MVC approach for building applications that run in the browser
  • 13. SERV ER - S IDE MODE L o Results in smaller size downloads
  • 14. BLAZ OR o An ASP.NET framework used to make Single Page Applications o Consists of Razor pages in which user can write code and markup at the same place o Fast, scalable and accurate o Can run on both client and server models efficiently