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

Software Architecture with C# 10 and .NET 6

Gabriel Baptista, Francesco Abbruzzese

Buch teilen
  1. 714 Seiten
  2. English
  3. ePUB (handyfreundlich)
  4. Über iOS und Android verfügbar
eBook - ePub

Software Architecture with C# 10 and .NET 6

Gabriel Baptista, Francesco Abbruzzese

Angaben zum Buch
Buchvorschau
Inhaltsverzeichnis
Quellenangaben

Über dieses Buch

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.

Häufig gestellte Fragen

Wie kann ich mein Abo kündigen?
Gehe einfach zum Kontobereich in den Einstellungen und klicke auf „Abo kündigen“ – ganz einfach. Nachdem du gekündigt hast, bleibt deine Mitgliedschaft für den verbleibenden Abozeitraum, den du bereits bezahlt hast, aktiv. Mehr Informationen hier.
(Wie) Kann ich Bücher herunterladen?
Derzeit stehen all unsere auf Mobilgeräte reagierenden ePub-Bücher zum Download über die App zur Verfügung. Die meisten unserer PDFs stehen ebenfalls zum Download bereit; wir arbeiten daran, auch die übrigen PDFs zum Download anzubieten, bei denen dies aktuell noch nicht möglich ist. Weitere Informationen hier.
Welcher Unterschied besteht bei den Preisen zwischen den Aboplänen?
Mit beiden Aboplänen erhältst du vollen Zugang zur Bibliothek und allen Funktionen von Perlego. Die einzigen Unterschiede bestehen im Preis und dem Abozeitraum: Mit dem Jahresabo sparst du auf 12 Monate gerechnet im Vergleich zum Monatsabo rund 30 %.
Was ist Perlego?
Wir sind ein Online-Abodienst für Lehrbücher, bei dem du für weniger als den Preis eines einzelnen Buches pro Monat Zugang zu einer ganzen Online-Bibliothek erhältst. Mit über 1 Million Büchern zu über 1.000 verschiedenen Themen haben wir bestimmt alles, was du brauchst! Weitere Informationen hier.
Unterstützt Perlego Text-zu-Sprache?
Achte auf das Symbol zum Vorlesen in deinem nächsten Buch, um zu sehen, ob du es dir auch anhören kannst. Bei diesem Tool wird dir Text laut vorgelesen, wobei der Text beim Vorlesen auch grafisch hervorgehoben wird. Du kannst das Vorlesen jederzeit anhalten, beschleunigen und verlangsamen. Weitere Informationen hier.
Ist Software Architecture with C# 10 and .NET 6 als Online-PDF/ePub verfügbar?
Ja, du hast Zugang zu Software Architecture with C# 10 and .NET 6 von Gabriel Baptista, Francesco Abbruzzese im PDF- und/oder ePub-Format sowie zu anderen beliebten Büchern aus Computer Science & Programming in C#. Aus unserem Katalog stehen dir über 1 Million Bücher zur Verfügung.

Information

Jahr
2022
ISBN
9781803245959

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...

Inhaltsverzeichnis