Book description
Improve the speed of your code and optimize the performance of your apps
About This Book- Understand the common performance pitfalls and improve your application's performance
- Get to grips with multi-threaded and asynchronous programming in C#
- Develop highly performant applications on .NET Core using microservice architecture
This book is for .NET developers looking at improving the speed of their code or simply wanting to take their skills to the next level. Basic C# knowledge is assumed.
What You Will Learn- Measure application performance using BenchmarkDotNet
- Explore the techniques to write multithreaded applications
- Leverage TPL and PLinq libraries to perform asynchronous operations
- Get familiar with data structures to write optimized code
- Understand design techniques to increase your application's performance
- Learn about memory management techniques in .NET Core
- Develop a containerized application based on microservices architecture
- Learn tools and techniques to monitor application performance
While writing an application, performance is paramount. Performance tuning for realworld applications often involves activities geared toward fnding bottlenecks; however, this cannot solve the dreaded problem of slower code. If you want to improve the speed of your code and optimize an application's performance, then this book is for you. C# 7 and .NET Core 2.0 High Performance begins with an introduction to the new features of what?explaining how they help in improving an application's performance. Learn to identify the bottlenecks in writing programs and highlight common performance pitfalls, and learn strategies to detect and resolve these issues early. You will explore multithreading and asynchronous programming with .NET Core and learn the importance and effcient use of data structures. This is followed with memory management techniques and design guidelines to increase an application's performance. Gradually, the book will show you the importance of microservices architecture for building highly performant applications and implementing resiliency and security in .NET Core. After reading this book, you will learn how to structure and build scalable, optimized, and robust applications in C#7 and .NET.
Style and approachThis book will be a step by step easy to follow guide with focused examples to increase performance of applications and provide optimization techniques.
Table of contents
- Title Page
- Copyright and Credits
- Packt Upsell
- Contributors
- Preface
- What's New in .NET Core 2 and C# 7?
- Understanding .NET Core Internals and Measuring Performance
- Multithreading and Asynchronous Programming in .NET Core
- Data Structures and Writing Optimized Code in C#
- Designing Guidelines for .NET Core Application Performance
- Memory Management Techniques in .NET Core
-
Securing and Implementing Resilience in .NET Core Applications
- Introduction to resilient applications
- Storing sensitive information using Application Secrets
-
Protecting ASP.NET Core APIs
- SSL (Secure Socket Layer)
- Preventing CSRF (Cross-Site Request Forgery) attacks
- Reinforcing security headers
- Adding the HTTP strict transport security header
- Authentication and authorization
- Authentication
- Authorization
- Implementing authentication and authorization using the ASP.NET Core Identity framework
- Summary
-
Microservices Architecture
- Microservices architecture
-
Developing microservices architecture with .NET Core
-
Creating a sample app in .NET Core using microservices architecture
- Solution structure
- Logical architecture
- Developing a Core infrastructure project
- Developing an identity service for user authorization
- Implementing the vendor service
- Creating a vendor domain
- Creating the vendor infrastructure
- Creating the vendor service
- Implementing the mediator pattern in the vendor service
-
Creating a sample app in .NET Core using microservices architecture
- Deploying microservices on Docker containers
- Summary
- Monitoring Application Performance Using Tools
- Other Books You May Enjoy
Product information
- Title: C# 7 and .NET Core 2.0 High Performance
- Author(s):
- Release date: April 2018
- Publisher(s): Packt Publishing
- ISBN: 9781788470049
You might also like
book
C# 8 and .NET Core 3 Projects Using Azure - Second Edition
Get up to speed with using C# 8 and .NET Core 3.0 features to build real-world …
book
Hands-On Parallel Programming with C# 8 and .NET Core 3
Enhance your enterprise application development skills by mastering parallel programming techniques in .NET and C# Key …
book
Professional C# 7 and .NET Core 2.0, 7th Edition
The professional’s guide to C# 7, with expert guidance on the newest features Professional C# 7 …
book
ASP.NET Core 2 High Performance - Second Edition
Learn how to develop web applications that deploy cross-platform and are optimized for high performance using …