Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Software Architecture with C# 12 and .NET 8
Software Architecture with C# 12 and .NET 8

Software Architecture with C# 12 and .NET 8: Build enterprise applications using microservices, DevOps, EF Core, and design patterns for Azure , Fourth Edition

Arrow left icon
Profile Icon Gabriel Baptista Profile Icon Francesco Abbruzzese
Arrow right icon
R$49.99 R$222.99
Full star icon Full star icon Full star icon Half star icon Empty star icon 3.9 (13 Ratings)
eBook Feb 2024 756 pages 4th Edition
eBook
R$49.99 R$222.99
Paperback
R$278.99
Subscription
Free Trial
Renews at R$50p/m
Arrow left icon
Profile Icon Gabriel Baptista Profile Icon Francesco Abbruzzese
Arrow right icon
R$49.99 R$222.99
Full star icon Full star icon Full star icon Half star icon Empty star icon 3.9 (13 Ratings)
eBook Feb 2024 756 pages 4th Edition
eBook
R$49.99 R$222.99
Paperback
R$278.99
Subscription
Free Trial
Renews at R$50p/m
eBook
R$49.99 R$222.99
Paperback
R$278.99
Subscription
Free Trial
Renews at R$50p/m

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Table of content icon View table of contents Preview book icon Preview Book

Software Architecture with C# 12 and .NET 8

Non-Functional Requirements

Once you have gathered the system requirements, it is time to think about the impact they have on the architectural design. Scalability, availability, resiliency, performance, multithreading, interoperability, security, and other aspects need to be analyzed so that we can meet user needs. We refer to these aspects as non-functional requirements.

We will cover the following topics in this chapter:

  • Enabling scalability, availability, and resiliency with Azure and .NET 8
  • Performance issues that need to be considered when programming in C#
  • Software usability: how to design effective user interfaces
  • Interoperability with .NET 8
  • Achieving security by design

The main purpose of discussing non-functional requirements here is that they are highly relevant to software architects: even though they are not so important to getting the software working in terms of functionality, they can make all the difference when comparing...

Technical requirements

The samples provided in this chapter require Visual Studio 2022 Community Edition with the .NET 8 SDK installed.

You can find the sample code for this chapter at https://github.com/PacktPublishing/Software-Architecture-with-C-Sharp-12-and-.NET-8-4E.

Enabling scalability, availability, and resiliency with Azure and .NET 8

A quick search online for a definition of “scalability” returns something along the lines of “the ability of a system to keep working well when there is an increase in demand.” When developers go by this definition, many of them incorrectly conclude that scalability only means adding more hardware to keep things working without stopping their apps.

Scalability relies on hardware solutions to some extent. However, as a software architect, you need to be aware that good software will keep scalability in a sustainable model, which means that well-architected software can save a lot of money. Hence, scalability is not just a matter of hardware but also a matter of overall software design. The point here is that the running costs of a system should also be a factor in architectural decisions.

In Chapter 1, Understanding the Importance of Software Architecture, while discussing software...

Performance issues that need to be considered when programming in C#

Nowadays, C# is one of the most used programming languages in the world, so awareness of C# programming best practices is fundamental for the design of good architectures that satisfy the most common non-functional requirements.

The following sections mention a few simple but effective tips – the associated code samples are available in this book’s GitHub repository. It is worth mentioning that .NET Foundation has developed a library dedicated to benchmarking called BenchmarkDotNet. You may find it useful for your scenarios. Check it out at https://benchmarkdotnet.org/.

String concatenation

This is a classic one! A naive concatenation of strings with the + string operator may cause serious performance issues since every time two strings are concatenated; their contents are copied into a new string.

So, if we concatenate, for instance, 10 strings that have an average length of 100, the...

Software usability: how to design effective user interfaces

As a software architect, you cannot improve the performance of humans, but you can improve the performance of human-machine interaction by designing an effective user interface (UI), that is, a UI that ensures fast interaction with humans, which, in turn, means the following:

  • The UI must be easy to learn to reduce the time that is needed for the target users to learn how to operate it. This constraint is fundamental if UI changes are frequent and for public websites that need to attract the greatest possible number of users.
  • The UI must not cause any kind of slowdown in data insertion; data entry speed must be limited only by the user’s ability to type, not by system delays or additional gestures that could be avoided.
  • Today, we must also consider the accessibility aspects of our solutions since doing so allows us to include more users.

It is worth mentioning that we have UX experts...

Interoperability with .NET 8

Since .NET Core, Microsoft has brought to C# developers the ability to deliver their software to various platforms. And you, as a software architect, need to pay attention to this, considering developing for Linux and macOS as a great opportunity to deliver new features to your customers. Therefore, we need to ensure performance and multi-platform support, two common non-functional requirements for many systems.

Both console applications and web apps designed with .NET 8 in Windows are almost completely compatible with Linux and macOS, too. This means you do not have to build the app again to run it on these platforms.

Microsoft offers scripts to help you install .NET on Linux and macOS. You can find them at https://docs.microsoft.com/dotnet/core/tools/dotnet-install-script. Once you have the SDK installed, you just need to call dotnet the same way you do in Windows.

However, you must be aware of some features that are not fully...

Achieving security by design

As we have seen up to this point in the book, the opportunities and techniques we have for developing software are incredible. If you add all the information you will read about in relation to cloud computing in the next chapters, you will see that the opportunities just increase, as does the complexity involved in maintaining this computing environment.

As a software architect, you must understand that these opportunities come with many responsibilities. The world has changed a lot in recent years. The second decade of the 21st century has required lots of technology. Apps, social media, Industry 4.0, big data, and artificial intelligence are no longer future objectives but current projects that you will lead and deal with within your daily routine. However, the third decade of our century will require much more attention when it comes to cybersecurity.

The world now regulates companies that manage personal data. For instance, the GDPR –...

Summary

Functional requirements that describe system behavior must be complemented with non-functional requirements that constrain system performance, scalability, availability, resilience, interoperability, usability, and security.

Performance requirements come from response time and system load requirements. As a software architect, you should ensure you have the required performance at the minimum cost, building efficient algorithms and taking full advantage of the available hardware resources with multithreading.

Scalability is the ability of a system to be adapted to an increasing load. Systems can be scaled vertically by providing more powerful hardware or horizontally by replicating and load balancing the same hardware, which increases the availability. The cloud, in general, and Azure can help us implement strategies dynamically, with no need to stop your application.

Tools such as .NET 8 that run on several platforms can ensure interoperability, that is, the capability...

Questions

  1. What are the two conceptual ways to scale a system?
  2. Can you deploy your web app automatically from Visual Studio to Azure?
  3. What is multithreading useful for?
  4. What are the main advantages of the asynchronous pattern over other multithreading techniques?
  5. Why is the order of input fields so important?
  6. Why is the Path class so important for interoperability?
  7. What is the advantage of a .NET standard class library?
  8. List the most-used types of .NET Visual Studio projects.
Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • Get introduced to software architecture fundamentals and begin applying them in .NET
  • Explore the main technologies used by software architects and choose the best ones for your needs
  • Master new developments in .NET with the help of a practical case study that looks at software architecture for a travel agency

Description

Software Architecture with C# 12 and .NET 8 puts high-level design theory to work in a .NET context, teaching you the key skills, technologies, and best practices required to become an effective .NET software architect. This fourth edition puts emphasis on a case study that will bring your skills to life. You’ll learn how to choose between different architectures and technologies at each level of the stack. You’ll take an even closer look at Blazor and explore OpenTelemetry for observability, as well as a more practical dive into preparing .NET microservices for Kubernetes integration. Divided into three parts, this book starts with the fundamentals of software architecture, covering C# best practices, software domains, design patterns, DevOps principles for CI/CD, and more. The second part focuses on the technologies, from choosing data storage in the cloud to implementing frontend microservices and working with Serverless. You’ll learn about the main communication technologies used in microservices, such as REST API, gRPC, Azure Service Bus, and RabbitMQ. The final part takes you through a real-world case study where you’ll create software architecture for a travel agency. By the end of this book, you will be able to transform user requirements into technical needs and deliver highly scalable enterprise software architectures.

Who is this book for?

This 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 software architecture book.

What you will learn

  • Program and maintain Azure DevOps and explore GitHub Projects
  • Manage software requirements to design functional and non-functional needs
  • Apply architectural approaches such as layered architecture and domain-driven design
  • Make effective choices between cloud-based and data storage solutions
  • Implement resilient frontend microservices, worker microservices, and distributed transactions
  • Understand when to use test-driven development (TDD) and alternative approaches
  • Choose the best option for cloud development, from IaaS to Serverless

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Feb 28, 2024
Length: 756 pages
Edition : 4th
Language : English
ISBN-13 : 9781805122456
Languages :
Tools :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Product Details

Publication date : Feb 28, 2024
Length: 756 pages
Edition : 4th
Language : English
ISBN-13 : 9781805122456
Languages :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
R$50 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
R$500 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just R$25 each
Feature tick icon Exclusive print discounts
R$800 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just R$25 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total R$ 892.97
C# 12 and .NET 8 – Modern Cross-Platform Development Fundamentals
R$334.99
Software Architecture with C# 12 and .NET 8
R$278.99
Apps and Services with .NET 8
R$278.99
Total R$ 892.97 Stars icon
Banner background image

Table of Contents

25 Chapters
Understanding the Importance of Software Architecture Chevron down icon Chevron up icon
Non-Functional Requirements Chevron down icon Chevron up icon
Managing Requirements Chevron down icon Chevron up icon
Best Practices in Coding C# 12 Chevron down icon Chevron up icon
Implementing Code Reusability in C# 12 Chevron down icon Chevron up icon
Design Patterns and .NET 8 Implementation Chevron down icon Chevron up icon
Understanding the Different Domains in Software Solutions Chevron down icon Chevron up icon
Understanding DevOps Principles and CI/CD Chevron down icon Chevron up icon
Testing Your Enterprise Application Chevron down icon Chevron up icon
Deciding on the Best Cloud-Based Solution Chevron down icon Chevron up icon
Applying a Microservice Architecture to Your Enterprise Application Chevron down icon Chevron up icon
Choosing Your Data Storage in the Cloud Chevron down icon Chevron up icon
Interacting with Data in C# – Entity Framework Core Chevron down icon Chevron up icon
Implementing Microservices with .NET Chevron down icon Chevron up icon
Applying Service-Oriented Architectures with .NET Chevron down icon Chevron up icon
Working with Serverless – Azure Functions Chevron down icon Chevron up icon
Presenting ASP.NET Core Chevron down icon Chevron up icon
Implementing Frontend Microservices with ASP.NET Core Chevron down icon Chevron up icon
Client Frameworks: Blazor Chevron down icon Chevron up icon
Kubernetes Chevron down icon Chevron up icon
Case Study Chevron down icon Chevron up icon
Case Study Extension: Developing .NET Microservices for Kubernetes Chevron down icon Chevron up icon
Answers Chevron down icon Chevron up icon
Other Books You May Enjoy Chevron down icon Chevron up icon
Index Chevron down icon Chevron up icon

Customer reviews

Top Reviews
Rating distribution
Full star icon Full star icon Full star icon Half star icon Empty star icon 3.9
(13 Ratings)
5 star 46.2%
4 star 30.8%
3 star 0%
2 star 15.4%
1 star 7.7%
Filter icon Filter
Top Reviews

Filter reviews by




N/A Feb 14, 2024
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Livre clair et complet. À jour avec les derniers versions. Après avoir essayé des livres français je recommande l'ouvrage en priorité
Feefo Verified review Feefo
Giuseppe Nov 09, 2024
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Amazing for a Software Architect!
Subscriber review Packt
Noel A. Mar 13, 2024
Full star icon Full star icon Full star icon Full star icon Full star icon 5
If you're involved in any aspect of software development, this book is an absolute essential addition to your library. I can't stress this enough: buy it now. Looking back, I wish I had encountered this gem earlier in my career. It brilliantly encapsulates numerous lessons I had to learn on the job, serving as a comprehensive resource that would have greatly accelerated my growth had I possessed its insights from the outset.The authors cover a vast array of topics, providing not only foundational knowledge but also invaluable insights into the intricacies of software development. Their expertise shines through, making this book an indispensable companion for anyone navigating the complexities of the field.While C# and .NET understandably receive ample attention within these pages, the book transcends mere language specifics. It equips readers with the skills and understanding necessary to thrive in enterprise-level environments, delving into essential technologies and ideologies that are practically mandatory for success.What truly sets this book apart is its accessibility. Despite addressing advanced concepts, it remains remarkably beginner-friendly, offering clarity where other resources might falter. The authors adeptly touch upon crucial subjects often overlooked by introductory texts, ensuring a well-rounded education for readers at any stage of their careers.Even seasoned engineers stand to benefit significantly from this tome. Personally, I found the discussions on Azure, Docker, Kubernetes, and microservices particularly enlightening, as they provided fresh perspectives on technologies that are less commonly encountered in my day-to-day work.In summary, this book is a game-changer. It deserves a prominent place in every engineer's collection, serving as both a comprehensive reference guide and a catalyst for professional growth. Trust me, you won't regret making this investment in yourself and your career.
Amazon Verified review Amazon
B Oct 09, 2024
Full star icon Full star icon Full star icon Full star icon Full star icon 5
This book prioritizes breadth over depth, but still manages to convey the majority of important information for any given architecture topic. I have been incredibly pleased by how concise, knowledgeable, and thorough the authors are. This book actually gives expert insight.Similar to how 'C# in depth' is less of a tutorial book and more of a deep dive, this book stays on my desk as a second reference when I don't feel like digging through stack overflow for the theory behind things. This has been very helpful for refactoring a legacy application into a modern minimal-api based .NET project leveraging microservices.
Amazon Verified review Amazon
Igor Iric Apr 13, 2024
Full star icon Full star icon Full star icon Full star icon Full star icon 5
This book will introduce you to software architecture fundamentals which you can start applying in .NET immediately.The book is full of practical examples.Covers:- C# best practices- Software domains- Design patterns- DevOps principles for CI/CD with focus on Azure- Containers- AI and Machine LearningTechnologies:- Data storage on Azure- Frontend with Blazor- Microservices with Kubernetes- REST API- gRPC- Azure Service Bus- RabbitMQ- DockerYou will learn how to implement communication between microservices using technologies like REST API, gRPC, Azure Service Bus, and RabbitMQ.Understand the pros and cons of each approach and choose the most suitable one for your architecture.You will also understand how to design and implement serverless components in your architecture.You will learn about Azure Functions, AWS Lambda, and Google Cloud Functions.There is a nice practical case study where you’ll create software architecture for a travel agency to understand how to architect the real world app.There are a lot of new great things to learn throughout the book but, hey becoming an Arhitect isn't easy thing.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.