Software Architecture with C# 10 and .NET 6
eBook - ePub

Software Architecture with C# 10 and .NET 6

Gabriel Baptista, Francesco Abbruzzese

Share book
  1. 714 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Software Architecture with C# 10 and .NET 6

Gabriel Baptista, Francesco Abbruzzese

Book details
Book preview
Table of contents
Citations

About This Book

Design scalable and high-performance enterprise applications using the latest features of C# 10 and.NET 6Key Features• Gain comprehensive software architecture knowledge and the skillset to create fully modular apps• Solve scalability problems in web apps using enterprise architecture patterns• Master new developments in front-end architecture and the application of AI for software architectsBook DescriptionSoftware architecture is the practice of implementing structures and systems that streamline the software development process and improve the quality of an app. This fully revised and expanded third edition, featuring the latest features of.NET 6 and C# 10, enables you to acquire the key skills, knowledge, and best practices required to become an effective software architect. Software Architecture with C# 10 and.NET 6, Third Edition features new chapters that describe the importance of the software architect, microservices with ASP.NET Core, and analyzing the architectural aspects of the front-end in the applications, including the new approach of.NET MAUI. It also includes a new chapter focused on providing a short introduction to artificial intelligence and machine learning using ML.NET, and updated chapters on Azure Kubernetes Service, EF Core, and Blazor. You will begin by understanding how to transform user requirements into architectural needs and exploring the differences between functional and non-functional requirements. Next, you will explore how to choose a cloud solution for your infrastructure, taking into account the factors that will help you manage a cloud-based app successfully. Finally, you will analyze and implement software design patterns that will allow you to solve common development problems. By the end of this book, you will be able to build and deliver highly scalable enterprise-ready apps that meet your business requirements.What you will learn• Use proven techniques to overcome real-world architectural challenges• Apply architectural approaches such as layered architecture• Leverage tools such as containers to manage microservices effectively• Get up to speed with Azure features for delivering global solutions• Program and maintain Azure Functions using C# 10• Understand when it is best to use test-driven development (TDD)• Implement microservices with ASP.NET Core in modern architectures• Enrich your application with Artificial Intelligence• Get the best of DevOps principles to enable CI/CD environmentsWho this book is forThis book is for engineers and senior software developers aspiring to become architects or looking to build enterprise applications with the.NET Stack. Basic familiarity with C# and.NET is required to get the most out of this book.

Frequently asked questions

How do I cancel my subscription?
Simply head over to the account section in settings and click on “Cancel Subscription” - it’s as simple as that. After you cancel, your membership will stay active for the remainder of the time you’ve paid for. Learn more here.
Can/how do I download books?
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
What is the difference between the pricing plans?
Both plans give you full access to the library and all of Perlego’s features. The only differences are the price and subscription period: With the annual plan you’ll save around 30% compared to 12 months on the monthly plan.
What is Perlego?
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Do you support text-to-speech?
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Is Software Architecture with C# 10 and .NET 6 an online PDF/ePUB?
Yes, you can access Software Architecture with C# 10 and .NET 6 by Gabriel Baptista, Francesco Abbruzzese in PDF and/or ePUB format, as well as other popular books in Computer Science & Programming in C#. We have over one million books available in our catalogue for you to explore.

Information

Year
2022
ISBN
9781803245959
Edition
3

17

Blazor WebAssembly

In this chapter, you will learn how to implement a presentation layer with Blazor WebAssembly. Blazor WebAssembly applications are C# applications that can run in any browser that supports the WebAssembly technology. They can be accessed by navigating to a specific URL and are downloaded in the browser as standard static content, made of HTML pages and downloadable files.
Blazor applications use many technologies we already analyzed in Chapter 15, Presenting ASP.NET Core MVC, such as dependency injection and Razor. Therefore, we strongly recommend studying Chapter 15, Presenting ASP.NET Core MVC, and Chapter 16, Implementing Frontend Microservices with ASP.NET Core, before reading this chapter.
More specifically, in this chapter, you will learn about the following subjects:
  • Blazor WebAssembly architecture
  • Blazor pages and components
  • Blazor forms and validation
  • Blazor advanced features, such as globalization, authentication, and JavaScript interoperability
  • Third-party tools for Blazor WebAssembly
  • Use case – implementing a simple application in Blazor WebAssembly
While there is also server-side Blazor, which runs on the server like ASP.NET Core MVC, this chapter discusses just Blazor WebAssembly, which runs entirely in the user’s browser, since the main purpose of the chapter is to furnish a relevant example of how to implement a presentation layer with client-side technology. Moreover, server-side Blazor can’t furnish a performance that is comparable with other server-side technologies, like ASP.NET Core MVC, which we analyzed in Chapter 15, Presenting ASP.NET Core MVC.
The first section gives a sketch of the general Blazor WebAssembly architecture, while the remaining sections describe specific features. When needed, concepts are clarified by analyzing and modifying the example code that Visual Studio generates automatically when one selects the Blazor WebAssembly project template. The last section shows how to use all the concepts learned in practice with the implementation of a simple application based on the WWTravelClub book use case.

Technical requirements

This chapter requires the free Visual Studio 2022 Community edition or better with all the database tools installed. All concepts are clarified with a simple example application based on the WWTravelClub book use case. The code for this chapter is available at https://github.com/PacktPublishing/Software-Architecture-with-C-10-and-.NET-6-3E.

Blazor WebAssembly architecture

Blazor WebAssembly uses the new WebAssembly browser feature to execute the .NET runtime in the browser. This way, it enables all developers to use the whole .NET code base and ecosystem in the implementation of applications capable of running in any WebAssembly-compliant browser. WebAssembly was conceived as a high-performance alternative to JavaScript. It is an assembly capable of running in a browser and obeying the same limitations as JavaScript code. This means that WebAssembly code, like JavaScript code, runs in an isolated execution environment that has very limited access to all machine resources.
WebAssembly differs from similar options of the past, like Flash and Silverlight, since it is an official W3C standard. More specifically, it became an official standard on December 5, 2019, so it is expected to have a long life. As a matter of fact, all mainstream browsers already support it.
However, WebAssembly doesn’t bring just performance with it! It also creates the opportunity to run whole code bases associated with modern and advanced object-oriented languages such as C++ (direct compilation), Java (bytecode), and C# (.NET) in browsers.
At the moment Microsoft offers two frameworks that run .NET on top of WebAssembly, Blazor WebAssembly and Unity WebAssembly, which is the WebAssembly port of the Unity 3D graphic framework. Unity WebAssembly’s main purpose is the implementation of online videogames that run in the browser, while Blazor WebAssembly is a single-page applicatio...

Table of contents