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
$19.99 per month
Full star icon Full star icon Full star icon Full star icon Empty star icon 4 (11 Ratings)
Paperback Feb 2024 756 pages 4th Edition
eBook
$9.99 $39.99
Paperback
$49.99
Subscription
Free Trial
Renews at $19.99p/m
Arrow left icon
Profile Icon Gabriel Baptista Profile Icon Francesco Abbruzzese
Arrow right icon
$19.99 per month
Full star icon Full star icon Full star icon Full star icon Empty star icon 4 (11 Ratings)
Paperback Feb 2024 756 pages 4th Edition
eBook
$9.99 $39.99
Paperback
$49.99
Subscription
Free Trial
Renews at $19.99p/m
eBook
$9.99 $39.99
Paperback
$49.99
Subscription
Free Trial
Renews at $19.99p/m

What do you get with a Packt Subscription?

Free for first 7 days. $19.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing
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 : 9781805127659
Languages :
Tools :

What do you get with a Packt Subscription?

Free for first 7 days. $19.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing

Product Details

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

Packt Subscriptions

See our plans and pricing
Modal Close icon
$19.99 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
$199.99 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 $5 each
Feature tick icon Exclusive print discounts
$279.99 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 $5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total $ 159.97
C# 12 and .NET 8 – Modern Cross-Platform Development Fundamentals
$59.99
Software Architecture with C# 12 and .NET 8
$49.99
Apps and Services with .NET 8
$49.99
Total $ 159.97 Stars icon

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 Full star icon Empty star icon 4
(11 Ratings)
5 star 45.5%
4 star 36.4%
3 star 0%
2 star 9.1%
1 star 9.1%
Filter icon Filter
Top Reviews

Filter reviews by




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
Jonathan Reeves Apr 02, 2024
Full star icon Full star icon Full star icon Full star icon Full star icon 5
This book is a great resource for anyone looking to sharpen their software architecting skills or looking to learn more about these skills. This book will walk you through the process of architecting your applications using .NET and C#. If you aren't a .NET or C# developer you can still benefit from going through this book to learn the ins and out of what makes a good software architect. The examples and theory go hand in hand which will help you put the concepts together and have a great grasp of them to use in your own projects and career.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

What is included in a Packt subscription? Chevron down icon Chevron up icon

A subscription provides you with full access to view all Packt and licnesed content online, this includes exclusive access to Early Access titles. Depending on the tier chosen you can also earn credits and discounts to use for owning content

How can I cancel my subscription? Chevron down icon Chevron up icon

To cancel your subscription with us simply go to the account page - found in the top right of the page or at https://subscription.packtpub.com/my-account/subscription - From here you will see the ‘cancel subscription’ button in the grey box with your subscription information in.

What are credits? Chevron down icon Chevron up icon

Credits can be earned from reading 40 section of any title within the payment cycle - a month starting from the day of subscription payment. You also earn a Credit every month if you subscribe to our annual or 18 month plans. Credits can be used to buy books DRM free, the same way that you would pay for a book. Your credits can be found in the subscription homepage - subscription.packtpub.com - clicking on ‘the my’ library dropdown and selecting ‘credits’.

What happens if an Early Access Course is cancelled? Chevron down icon Chevron up icon

Projects are rarely cancelled, but sometimes it's unavoidable. If an Early Access course is cancelled or excessively delayed, you can exchange your purchase for another course. For further details, please contact us here.

Where can I send feedback about an Early Access title? Chevron down icon Chevron up icon

If you have any feedback about the product you're reading, or Early Access in general, then please fill out a contact form here and we'll make sure the feedback gets to the right team. 

Can I download the code files for Early Access titles? Chevron down icon Chevron up icon

We try to ensure that all books in Early Access have code available to use, download, and fork on GitHub. This helps us be more agile in the development of the book, and helps keep the often changing code base of new versions and new technologies as up to date as possible. Unfortunately, however, there will be rare cases when it is not possible for us to have downloadable code samples available until publication.

When we publish the book, the code files will also be available to download from the Packt website.

How accurate is the publication date? Chevron down icon Chevron up icon

The publication date is as accurate as we can be at any point in the project. Unfortunately, delays can happen. Often those delays are out of our control, such as changes to the technology code base or delays in the tech release. We do our best to give you an accurate estimate of the publication date at any given time, and as more chapters are delivered, the more accurate the delivery date will become.

How will I know when new chapters are ready? Chevron down icon Chevron up icon

We'll let you know every time there has been an update to a course that you've bought in Early Access. You'll get an email to let you know there has been a new chapter, or a change to a previous chapter. The new chapters are automatically added to your account, so you can also check back there any time you're ready and download or read them online.

I am a Packt subscriber, do I get Early Access? Chevron down icon Chevron up icon

Yes, all Early Access content is fully available through your subscription. You will need to have a paid for or active trial subscription in order to access all titles.

How is Early Access delivered? Chevron down icon Chevron up icon

Early Access is currently only available as a PDF or through our online reader. As we make changes or add new chapters, the files in your Packt account will be updated so you can download them again or view them online immediately.

How do I buy Early Access content? Chevron down icon Chevron up icon

Early Access is a way of us getting our content to you quicker, but the method of buying the Early Access course is still the same. Just find the course you want to buy, go through the check-out steps, and you’ll get a confirmation email from us with information and a link to the relevant Early Access courses.

What is Early Access? Chevron down icon Chevron up icon

Keeping up to date with the latest technology is difficult; new versions, new frameworks, new techniques. This feature gives you a head-start to our content, as it's being created. With Early Access you'll receive each chapter as it's written, and get regular updates throughout the product's development, as well as the final course as soon as it's ready.We created Early Access as a means of giving you the information you need, as soon as it's available. As we go through the process of developing a course, 99% of it can be ready but we can't publish until that last 1% falls in to place. Early Access helps to unlock the potential of our content early, to help you start your learning when you need it most. You not only get access to every chapter as it's delivered, edited, and updated, but you'll also get the finalized, DRM-free product to download in any format you want when it's published. As a member of Packt, you'll also be eligible for our exclusive offers, including a free course every day, and discounts on new and popular titles.

Modal Close icon
Modal Close icon