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

Software Architecture with C# 10 and .NET 6

Gabriel Baptista, Francesco Abbruzzese

Compartir libro
  1. 714 páginas
  2. English
  3. ePUB (apto para móviles)
  4. Disponible en iOS y Android
eBook - ePub

Software Architecture with C# 10 and .NET 6

Gabriel Baptista, Francesco Abbruzzese

Detalles del libro
Vista previa del libro
Índice
Citas

Información del libro

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.

Preguntas frecuentes

¿Cómo cancelo mi suscripción?
Simplemente, dirígete a la sección ajustes de la cuenta y haz clic en «Cancelar suscripción». Así de sencillo. Después de cancelar tu suscripción, esta permanecerá activa el tiempo restante que hayas pagado. Obtén más información aquí.
¿Cómo descargo los libros?
Por el momento, todos nuestros libros ePub adaptables a dispositivos móviles se pueden descargar a través de la aplicación. La mayor parte de nuestros PDF también se puede descargar y ya estamos trabajando para que el resto también sea descargable. Obtén más información aquí.
¿En qué se diferencian los planes de precios?
Ambos planes te permiten acceder por completo a la biblioteca y a todas las funciones de Perlego. Las únicas diferencias son el precio y el período de suscripción: con el plan anual ahorrarás en torno a un 30 % en comparación con 12 meses de un plan mensual.
¿Qué es Perlego?
Somos un servicio de suscripción de libros de texto en línea que te permite acceder a toda una biblioteca en línea por menos de lo que cuesta un libro al mes. Con más de un millón de libros sobre más de 1000 categorías, ¡tenemos todo lo que necesitas! Obtén más información aquí.
¿Perlego ofrece la función de texto a voz?
Busca el símbolo de lectura en voz alta en tu próximo libro para ver si puedes escucharlo. La herramienta de lectura en voz alta lee el texto en voz alta por ti, resaltando el texto a medida que se lee. Puedes pausarla, acelerarla y ralentizarla. Obtén más información aquí.
¿Es Software Architecture with C# 10 and .NET 6 un PDF/ePUB en línea?
Sí, puedes acceder a Software Architecture with C# 10 and .NET 6 de Gabriel Baptista, Francesco Abbruzzese en formato PDF o ePUB, así como a otros libros populares de Computer Science y Programming in C#. Tenemos más de un millón de libros disponibles en nuestro catálogo para que explores.

Información

Año
2022
ISBN
9781803245959
Edición
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...

Índice