Modern ASP.NET Core applications collect enormous amounts of personal information. Customer profiles, email addresses, transaction histories, device identifiers, IP addresses, behavioral analytics, and application logs all contribute to an increasingly complex data ecosystem.
While authentication, authorization, and encryption help protect this information from unauthorized access, they do not answer some equally important questions. Should the application collect this information in the first place? How long should it retain it? What happens when a user withdraws consent or requests account deletion? Privacy engineering brings these questions into the software development process. Instead of treating privacy as a legal requirement addressed after development, it makes privacy an architectural responsibility.
In this guide, we'll build a practical privacy-aware ASP.NET Core application using Entity Framework Core, data minimization strategies, consent management, automated retention policies, data export workflows, and reliable deletion mechanisms. We'll also explore how privacy requirements influence logging, caching, backups, background processing, and distributed application architecture.
When Collecting More Data Becomes a Liability
Imagine an online retail platform built with ASP.NET Core.
Customers create accounts, browse products, place orders, and receive personalized recommendations.
Over time, the application collects an increasing amount of information.
Developers introduce browsing history tracking to improve recommendations.
The marketing team requests additional customer information.
The support team stores conversation histories.
The engineering team adds detailed diagnostic logging.
Analytics systems record device identifiers and user interactions.
For several years, everything works perfectly.
Then a customer requests the deletion of their personal information.
The development team deletes the customer’s account from the primary database.
But their information still exists in application logs, analytics databases, cached responses, search indexes, historical exports, and database backups.
Some services have copied the customer’s information into their own databases.
Others have no mechanism for identifying or deleting it.
The team discovers that deleting an account is significantly more complicated than creating one.
The application was designed to collect, process, and distribute information.
It was never designed to forget it.
This is the problem privacy engineering addresses.
What Is Privacy Engineering?
Privacy engineering is the practice of incorporating privacy requirements into the design, implementation, operation, and maintenance of software systems.
Traditional application security focuses heavily on preventing unauthorized access.
Privacy engineering goes further by examining whether authorized processing itself is necessary, appropriate, and controlled.
Consider the difference.
Application Security Privacy Engineering
Who can access customer data? Why do we collect customer data?
Is the database encrypted? Do we need to store this information?
Is the API protected? Does the API expose unnecessary information?
Are backups secure? How long should backups retain personal data?
Can users authenticate securely? Can users exercise their privacy rights?
Are logs protected? Should sensitive information appear in logs at all?In our earlier article on Securing Your ASP.NET Applications: Top Security Practices, we explored techniques for protecting applications against security threats. Privacy engineering extends this approach by addressing whether personal information should be collected, how it should be processed, and when it should be removed.
Both disciplines are essential.
An application can be technically secure while collecting excessive personal information.
Similarly, an application can minimize data collection while failing to protect the information it retains.
Privacy-aware systems require both approaches.
Understanding the Personal Data Lifecycle
Personal information moves through multiple stages during its lifetime.
A privacy-aware application must consider each stage.
Collecting information creates a responsibility to protect it.
Processing information creates a responsibility to respect its intended purpose.
Sharing information creates a responsibility to track where it goes.
Retaining information creates a responsibility to determine when it is no longer needed.
Deleting information creates a responsibility to ensure that it does not silently reappear elsewhere.
Privacy engineering connects these responsibilities into a coherent application architecture.
Understanding Privacy by Design
Privacy by design means incorporating privacy protections into the architecture from the beginning.
Instead of building a complete application and later introducing privacy controls, developers consider privacy requirements while designing database schemas, APIs, services, and workflows.
For example, when designing a customer registration system, developers should ask whether the application actually requires a date of birth, residential address, telephone number, or government-issued identification number.
Every unnecessary field increases the amount of information the organization must protect.
It also increases the potential impact of a data breach.
Privacy by design encourages developers to make deliberate decisions about what information enters the system and what happens to it afterward.
Step 1: Create a Privacy-Aware ASP.NET Core Application
Let’s build a customer management platform that supports privacy-conscious registration, marketing preferences, activity retention, personal data exports, and account deletion.
We’ll use ASP.NET Core, .NET 10, Entity Framework Core, and SQLite for the demonstration.
SQLite keeps the example easy to reproduce locally. The architectural principles also apply to applications using SQL Server, PostgreSQL, and other relational databases.
Create the project:
dotnet new webapi -n PrivacyAwarePlatform -f net10.0
cd PrivacyAwarePlatformInstall Entity Framework Core packages compatible with .NET 10:
dotnet add package Microsoft.EntityFrameworkCore.Sqlite
dotnet add package Microsoft.EntityFrameworkCore.DesignFor production projects, select and pin approved package versions rather than relying on unrestricted package updates.
Our application will gradually introduce the following components:
PrivacyAwarePlatform/
│
├── Models/
│ ├── Customer.cs
│ ├── ConsentRecord.cs
│ ├── CustomerActivity.cs
│ └── PrivacyRequest.cs
│
├── Data/
│ └── AppDbContext.cs
│
├── Services/
│ ├── ConsentService.cs
│ ├── DataExportService.cs
│ ├── AccountDeletionService.cs
│ └── DataRetentionWorker.cs
│
├── Contracts/
│
├── Program.cs
└── appsettings.json Rather than treating privacy as a single feature, we'll distribute its responsibilities across the application.
Step 2: Implement Data Minimization
Data minimization means collecting and retaining only the personal information necessary for a defined purpose.
Consider a customer registration model.
A poorly designed version might look like this:
public class CustomerRegistration
{
public string FullName { get; set; } = "";
public string Email { get; set; } = "";
public string PhoneNumber { get; set; } = "";
public string HomeAddress { get; set; } = "";
public DateTime DateOfBirth { get; set; }
public string Occupation { get; set; } = "";
public string GovernmentId { get; set; } = "";
}For a basic online customer account, most of these fields may be unnecessary.
Collecting information because it might become useful someday creates avoidable privacy risks.
A minimized registration contract might look like this:
using System.ComponentModel.DataAnnotations;
public sealed class RegisterCustomerRequest
{
[Required]
[StringLength(100)]
public string DisplayName { get; init; } = "";
[Required]
[EmailAddress]
[StringLength(254)]
public string Email { get; init; } = "";
}The application collects only a display name and email address.
Additional information can be requested later when a specific feature genuinely requires it.
For example, a delivery address can be collected during checkout instead of account registration.
This reduces unnecessary data collection while keeping the registration experience simple.
Step 3: Design Privacy-Aware Database Models
Our customer entity should reflect the information the application actually needs.
Create Models/Customer.cs:
public sealed class Customer
{
public Guid Id { get; set; } = Guid.NewGuid();
public string IdentitySubject { get; set; } = "";
public string DisplayName { get; set; } = "";
public string Email { get; set; } = "";
public DateTime CreatedAtUtc { get; set; }
= DateTime.UtcNow;
public bool DeletionPending { get; set; }
public ICollection<ConsentRecord> Consents { get; set; }
= new List<ConsentRecord>();
public ICollection<CustomerActivity> Activities { get; set; }
= new List<CustomerActivity>();
}The IdentitySubject property associates the customer with an authenticated identity.
The DeletionPending property allows the application to prevent additional personal data processing while an account deletion workflow is underway.
Notice that the model does not contain unrelated demographic information, raw device fingerprints, or unnecessary personal identifiers.
A privacy-aware schema starts by deliberately limiting what can be stored.
Step 4: Separate Personal Data From Operational Data
Not every piece of application information has the same purpose or retention requirements.
Consider an order record.
A poorly designed schema may repeatedly store the customer’s name, email address, and telephone number in every order.
public class Order
{
public Guid Id { get; set; }
public string CustomerName { get; set; } = "";
public string CustomerEmail { get; set; } = "";
public string CustomerPhone { get; set; } = "";
public decimal Total { get; set; }
}This duplicates personal information across the database.
A more controlled design separates operational information from customer profile information.
public sealed class Order
{
public Guid Id { get; set; }
public Guid? CustomerId { get; set; }
public decimal Total { get; set; }
public DateTime CreatedAtUtc { get; set; }
}The customer reference is nullable, allowing the architecture to support disassociation when appropriate.
However, removing a customer reference does not automatically make an order anonymous.
Order timestamps, delivery information, payment references, and other attributes may still identify a person.
Some transaction information may also need to be retained for accounting, contractual, or legal purposes.
The correct design depends on the purpose of the data and the applicable retention obligations.
Step 5: Prevent Accidental Personal Data Exposure Through APIs
Data minimization applies to outgoing responses as well as incoming requests.
Consider an API endpoint that returns an entire database entity:
app.MapGet("/customers/{id:guid}", async (
Guid id,
AppDbContext db) =>
{
return await db.Customers.FindAsync(id);
});This exposes the entity’s serialized properties and creates a risk that future database changes will unintentionally expand the API response.
It also lacks appropriate authorization.
Instead, define an explicit response contract.
public sealed record CustomerProfileResponse(
Guid Id,
string DisplayName,
string Email
);Use a projection:
app.MapGet("/me/profile", async (
ClaimsPrincipal user,
AppDbContext db,
CancellationToken cancellationToken) =>
{
string? subject = user.FindFirstValue(
ClaimTypes.NameIdentifier);
if (string.IsNullOrWhiteSpace(subject))
{
return Results.Unauthorized();
}
var profile = await db.Customers
.AsNoTracking()
.Where(c =>
c.IdentitySubject == subject &&
!c.DeletionPending)
.Select(c => new CustomerProfileResponse(
c.Id,
c.DisplayName,
c.Email))
.SingleOrDefaultAsync(cancellationToken);
return profile is null
? Results.NotFound()
: Results.Ok(profile);
})
.RequireAuthorization();This endpoint retrieves the profile associated with the authenticated identity rather than accepting an arbitrary customer identifier.
It also explicitly selects the information required by the response.
The example assumes authentication has already been configured and that the application’s identity provider supplies a stable subject identifier through the configured claim mapping.
For multi-tenant systems, customer resolution must also enforce the appropriate tenant boundary.
Step 6: Understand Consent and Lawful Processing
Consent is frequently discussed in privacy engineering, but it is not the only basis for processing personal information.
Under frameworks such as GDPR, processing may rely on different lawful bases, including consent, contractual necessity, legal obligations, and legitimate interests, subject to applicable requirements.
Processing purpose Possible basis under GDPR
Delivering a purchased product Contractual necessity
Maintaining required tax records Legal obligation
Sending optional promotional emails Consent, where required
Preventing fraudulent transactions Legitimate interests or another applicable basis
Optional behavioral tracking Consent, where requiredThe appropriate basis depends on the processing activity and applicable law.
Developers should not assume that adding a consent checkbox makes every processing activity lawful.
From an engineering perspective, the important requirement is to distinguish processing purposes and enforce the rules associated with each purpose.
Step 7: Build a Versioned Consent Model
A single Boolean property such as this is often insufficient:
public bool HasConsent { get; set; }Consent may apply to multiple independent purposes.
A customer may agree to promotional emails but decline behavioral analytics.
They may later withdraw their marketing consent.
The application needs to know which purpose was authorized, when the decision occurred, and which notice was presented.
Create Models/ConsentRecord.cs:
public sealed class ConsentRecord
{
public long Id { get; set; }
public Guid CustomerId { get; set; }
public string Purpose { get; set; } = "";
public bool Granted { get; set; }
public string NoticeVersion { get; set; } = "";
public DateTime RecordedAtUtc { get; set; }
= DateTime.UtcNow;
}Each record represents a consent decision.
Instead of overwriting the previous decision, the application records a new event.
For example:
Customer Purpose Granted Notice version
C101 Marketing Yes 1.0
C101 Analytics No 1.0
C101 Marketing No 1.0
C101 Marketing Yes 2.0This provides a history of decisions.
Consent records themselves may constitute personal data, so their retention must also be justified and controlled.
An audit trail should not become an excuse to retain personal information indefinitely.
Step 8: Implement the Entity Framework Core Context
Create Data/AppDbContext.cs:
using Microsoft.EntityFrameworkCore;
public sealed class AppDbContext(
DbContextOptions<AppDbContext> options)
: DbContext(options)
{
public DbSet<Customer> Customers => Set<Customer>();
public DbSet<ConsentRecord> ConsentRecords
=> Set<ConsentRecord>();
public DbSet<CustomerActivity> CustomerActivities
=> Set<CustomerActivity>();
public DbSet<PrivacyRequest> PrivacyRequests
=> Set<PrivacyRequest>();
protected override void OnModelCreating(
ModelBuilder modelBuilder)
{
modelBuilder.Entity<Customer>()
.HasIndex(c => c.IdentitySubject)
.IsUnique();
modelBuilder.Entity<ConsentRecord>()
.HasIndex(c => new
{
c.CustomerId,
c.Purpose,
c.Id
});
modelBuilder.Entity<CustomerActivity>()
.HasIndex(a => a.ExpiresAtUtc);
modelBuilder.Entity<PrivacyRequest>()
.HasIndex(r => new
{
r.CustomerId,
r.Status
});
modelBuilder.Entity<Customer>()
.HasMany(c => c.Consents)
.WithOne()
.HasForeignKey(c => c.CustomerId)
.OnDelete(DeleteBehavior.Cascade);
modelBuilder.Entity<Customer>()
.HasMany(c => c.Activities)
.WithOne()
.HasForeignKey(a => a.CustomerId)
.OnDelete(DeleteBehavior.Cascade);
}
}Register the database context in Program.cs:
builder.Services.AddDbContext<AppDbContext>(
options => options.UseSqlite(
builder.Configuration.GetConnectionString("Default")));Configure the connection string:
{
"ConnectionStrings": {
"Default": "Data Source=privacy-platform.db"
}
}Once the remaining entity classes are created, generate and apply the migrations:
dotnet ef migrations add InitialPrivacySchema
dotnet ef database updateThe database now provides a foundation for storing customer profiles, consent decisions, retention-controlled activity, and privacy requests.
Step 9: Implement a Consent Management Service
Consent should not be checked independently through inconsistent logic scattered across controllers and background workers.
Centralizing the behavior makes it easier to enforce processing rules consistently.
public static class ConsentPurposes
{
public const string Marketing = "marketing";
public const string Analytics = "analytics";
public static bool IsSupported(string purpose)
{
return purpose is Marketing or Analytics;
}
}Create Services/ConsentService.cs:
using Microsoft.EntityFrameworkCore;
public sealed class ConsentService(AppDbContext db)
{
public async Task RecordDecisionAsync(
Guid customerId,
string purpose,
bool granted,
string noticeVersion,
CancellationToken cancellationToken)
{
if (!ConsentPurposes.IsSupported(purpose))
{
throw new ArgumentException(
"Unsupported consent purpose.");
}
db.ConsentRecords.Add(new ConsentRecord
{
CustomerId = customerId,
Purpose = purpose,
Granted = granted,
NoticeVersion = noticeVersion,
RecordedAtUtc = DateTime.UtcNow
});
await db.SaveChangesAsync(cancellationToken);
}
public async Task<bool> HasConsentAsync(
Guid customerId,
string purpose,
CancellationToken cancellationToken)
{
var latest = await db.ConsentRecords
.AsNoTracking()
.Where(c =>
c.CustomerId == customerId &&
c.Purpose == purpose)
.OrderByDescending(c => c.Id)
.Select(c => new
{
c.Granted
})
.FirstOrDefaultAsync(cancellationToken);
return latest?.Granted == true;
}
}Register the service:
builder.Services.AddScoped<ConsentService>();The service retrieves the latest recorded decision for a specific purpose.
If no consent decision exists, it returns false.
This creates a privacy-protective default for processing activities that require consent.
In a distributed application, concurrent consent changes require additional ordering guarantees. A database-generated sequence is useful for this single-database demonstration, while larger systems may need explicit consent revisions and optimistic concurrency controls.
Step 10: Enforce Consent at the Point of Processing
Recording consent is not enough.
The application must actually respect the decision when processing information.
Consider a marketing service:
public sealed class MarketingService(
ConsentService consentService,
AppDbContext db,
IEmailSender emailSender)
{
public async Task SendPromotionAsync(
Guid customerId,
CancellationToken cancellationToken)
{
bool permitted =
await consentService.HasConsentAsync(
customerId,
ConsentPurposes.Marketing,
cancellationToken);
if (!permitted)
{
return;
}
var customer = await db.Customers
.AsNoTracking()
.Where(c =>
c.Id == customerId &&
!c.DeletionPending)
.Select(c => new
{
c.Email
})
.SingleOrDefaultAsync(cancellationToken);
if (customer is null)
{
return;
}
await emailSender.SendAsync(
customer.Email,
"Our latest offers",
cancellationToken);
}
}Here, IEmailSender represents the application’s email delivery abstraction.
The service checks the current consent state before attempting delivery.
This is particularly important when promotional messages are queued for background processing.
A customer may have consented when the message was queued but withdrawn consent before the worker attempts delivery.
Consent should therefore be checked as close as practical to the actual processing operation.
There is still a potential race between the consent check and the external email submission. Production systems should coordinate withdrawal with pending delivery jobs and downstream providers, while recognizing that an already transmitted email cannot be recalled reliably.
Step 11: Handle Consent Withdrawal Across Services
Suppose the application contains several independent services.
The customer service stores consent preferences.
The marketing service sends emails.
The analytics service processes browsing activity.
The recommendation service builds personalized product suggestions.
When a customer withdraws consent, updating a single database record may not be sufficient.
Other services may have cached the previous decision.
Some may already have queued processing jobs.
A distributed architecture can propagate a minimal consent-change event.
public sealed record ConsentChangedEvent(
Guid CustomerId,
string Purpose,
bool Granted,
long Revision,
DateTime OccurredAtUtc
);Consumers can use the revision to avoid applying older decisions after newer ones.
The event should be published reliably, ideally through a transactional outbox or another mechanism that prevents the database update and event publication from becoming inconsistent.
Consumers should also process events idempotently.
Privacy-sensitive operations should not rely exclusively on indefinitely cached consent values.
The architecture must define how quickly withdrawal becomes effective and how processing is prevented while consent state is uncertain.
Step 12: Define Data Retention Policies
Personal information should not remain in storage simply because deleting it requires additional engineering effort.
Different categories of information may require different retention periods.
For our demonstration platform, consider these illustrative policies:
Data category Example retention period
Browsing activity 30 days
Diagnostic events 14 days
Temporary exports 24 hours
Inactive sessions 7 days
Customer support records 180 days
Financial records Based on applicable legal obligationsThese periods are examples, not universal legal requirements.
Actual retention periods should be determined according to processing purposes, business needs, contractual commitments, and applicable law.
As we discussed in Configuration at Scale in ASP.NET Core: Dynamic Settings, Validation, and Safe Reloading, centralized configuration and strongly typed options help applications enforce operational rules consistently. These practices are particularly valuable for privacy engineering, where incorrect retention settings can result in premature deletion or unnecessary storage of personal information.
Instead of hardcoding retention values throughout the application, define them centrally.
{
"PrivacyRetention": {
"CustomerActivityDays": 30,
"DiagnosticLogDays": 14,
"ExportLifetimeHours": 24,
"CleanupIntervalMinutes": 60,
"CleanupBatchSize": 500
}
}Create a strongly typed configuration class:
public sealed class PrivacyRetentionOptions
{
public int CustomerActivityDays { get; set; } = 30;
public int DiagnosticLogDays { get; set; } = 14;
public int ExportLifetimeHours { get; set; } = 24;
public int CleanupIntervalMinutes { get; set; } = 60;
public int CleanupBatchSize { get; set; } = 500;
}Register and validate the configuration:
builder.Services
.AddOptions<PrivacyRetentionOptions>()
.BindConfiguration("PrivacyRetention")
.Validate(
options => options.CustomerActivityDays > 0,
"Activity retention must be positive.")
.Validate(
options => options.CleanupIntervalMinutes > 0,
"Cleanup interval must be positive.")
.Validate(
options => options.CleanupBatchSize
is >= 1 and <= 1000,
"Invalid cleanup batch size.")
.ValidateOnStart();Configuration validation helps prevent accidental deployment of invalid retention settings.
Step 13: Store Expiration Information With Personal Data
Consider customer browsing activity.
The application may collect this information for an authorized analytics purpose, but it should not retain it indefinitely.
Create Models/CustomerActivity.cs:
public sealed class CustomerActivity
{
public long Id { get; set; }
public Guid CustomerId { get; set; }
public string ActivityType { get; set; } = "";
public DateTime OccurredAtUtc { get; set; }
public DateTime ExpiresAtUtc { get; set; }
}When recording an activity, calculate its expiration time.
public sealed class ActivityService(
AppDbContext db,
ConsentService consentService,
IOptions<PrivacyRetentionOptions> options)
{
public async Task RecordAsync(
Guid customerId,
string activityType,
CancellationToken cancellationToken)
{
bool permitted =
await consentService.HasConsentAsync(
customerId,
ConsentPurposes.Analytics,
cancellationToken);
if (!permitted)
{
return;
}
bool activeCustomer = await db.Customers
.AnyAsync(c =>
c.Id == customerId &&
!c.DeletionPending,
cancellationToken);
if (!activeCustomer)
{
return;
}
DateTime now = DateTime.UtcNow;
db.CustomerActivities.Add(
new CustomerActivity
{
CustomerId = customerId,
ActivityType = activityType,
OccurredAtUtc = now,
ExpiresAtUtc = now.AddDays(
options.Value.CustomerActivityDays)
});
await db.SaveChangesAsync(cancellationToken);
}
}In this design, expiration becomes part of the data model.
The database can efficiently identify expired records without reconstructing retention rules for every query.
For production applications, activity types should come from an approved set rather than accepting arbitrary strings that might contain personal information.
Also consider what happens when retention policies change. Updating the configuration does not automatically change expiration dates already stored in the database. Existing records may require a controlled policy migration.
Step 14: Build an Automated Data Retention Worker
Defining a retention period is meaningless if nothing enforces it.
ASP.NET Core background services provide a convenient way to perform periodic cleanup.
Create Services/DataRetentionWorker.cs:
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Options;
public sealed class DataRetentionWorker(
IServiceScopeFactory scopeFactory,
IOptions<PrivacyRetentionOptions> options,
ILogger<DataRetentionWorker> logger)
: BackgroundService
{
protected override async Task ExecuteAsync(
CancellationToken stoppingToken)
{
var settings = options.Value;
using var timer = new PeriodicTimer(
TimeSpan.FromMinutes(
settings.CleanupIntervalMinutes));
try
{
do
{
try
{
await DeleteExpiredActivitiesAsync(
stoppingToken);
}
catch (OperationCanceledException)
when (stoppingToken.IsCancellationRequested)
{
break;
}
catch (Exception)
{
logger.LogError(
"Privacy retention cleanup failed.");
}
}
while (await timer.WaitForNextTickAsync(
stoppingToken));
}
catch (OperationCanceledException)
when (stoppingToken.IsCancellationRequested)
{
// Normal application shutdown.
}
}
private async Task DeleteExpiredActivitiesAsync(
CancellationToken cancellationToken)
{
using var scope = scopeFactory.CreateScope();
var db = scope.ServiceProvider
.GetRequiredService<AppDbContext>();
DateTime cutoff = DateTime.UtcNow;
int batchSize = options.Value.CleanupBatchSize;
var expiredIds = await db.CustomerActivities
.Where(a => a.ExpiresAtUtc <= cutoff)
.OrderBy(a => a.ExpiresAtUtc)
.ThenBy(a => a.Id)
.Select(a => a.Id)
.Take(batchSize)
.ToListAsync(cancellationToken);
if (expiredIds.Count == 0)
{
return;
}
int deleted = await db.CustomerActivities
.Where(a =>
expiredIds.Contains(a.Id) &&
a.ExpiresAtUtc <= cutoff)
.ExecuteDeleteAsync(cancellationToken);
logger.LogInformation(
"Retention cleanup removed {Count} records.",
deleted);
}
}Register the worker:
builder.Services
.AddHostedService<DataRetentionWorker>();The worker runs immediately after startup and then at the configured interval.
It deletes expired records in bounded batches.
The second expiration check prevents deleting a record whose expiration was extended after the initial selection.
Using ExecuteDeleteAsync() avoids loading complete entities into application memory.
This example processes one batch per interval to keep resource consumption predictable. High-volume systems should process additional bounded batches or schedule cleanup more frequently to prevent retention backlogs.
Why Retention Cleanup Should Use Batches
Imagine a database containing 20 million activity records.
A retention policy change makes five million records eligible for deletion.
Executing one enormous delete operation may create substantial database contention, transaction log growth, storage activity, and replication delays.
Batch processing reduces the size of individual operations and allows the system to distribute cleanup work over time.
However, batching introduces another responsibility.
The application must monitor whether expired records are accumulating faster than they are being removed.
A retention worker that runs successfully but never catches up is not effectively enforcing the retention policy.
Useful operational metrics include the number of expired records, the age of the oldest expired record, cleanup throughput, execution failures, and time since the last successful cleanup.
Step 15: Distinguish Deletion, Anonymization, and Pseudonymization
These terms are often used interchangeably, but they describe different operations.
Technique Description Personal data may remain?
Deletion Removes information from a system Yes, in other copies or backups
Soft deletion Marks information as deleted Yes
Pseudonymization Replaces identifiers with alternative values Yes
Anonymization Makes identification no longer reasonably possible Not if genuinely anonymizedConsider this operation:
customer.Email = "[email protected]";
customer.DisplayName = "Deleted Customer";This removes two identifying attributes.
However, the customer identifier, order history, activity records, and related information may still make the individual identifiable.
Similarly, hashing an email address does not necessarily anonymize it.
Email addresses can be guessed, hashed, and compared against existing values.
Pseudonymization can reduce privacy risk, but pseudonymized information remains personal data when it can be attributed to an individual using additional information.
True anonymization requires evaluating re-identification risks across the remaining dataset.
Step 16: Design a Personal Data Export Workflow
Users may have rights to access their personal information or receive certain data in a portable format, depending on applicable law.
From an engineering perspective, the application needs a controlled way to identify and retrieve relevant personal information.
Define an export contract:
public sealed record CustomerDataExport(
string DisplayName,
string Email,
DateTime AccountCreatedAtUtc,
IReadOnlyList<ConsentExport> ConsentHistory,
IReadOnlyList<ActivityExport> ActivityHistory
);
public sealed record ConsentExport(
string Purpose,
bool Granted,
string NoticeVersion,
DateTime RecordedAtUtc
);
public sealed record ActivityExport(
string ActivityType,
DateTime OccurredAtUtc
);The export contract deliberately excludes authentication secrets, password hashes, internal security tokens, and unrelated operational information.
Create Services/DataExportService.cs:
using Microsoft.EntityFrameworkCore;
public sealed class DataExportService(AppDbContext db)
{
public async Task<CustomerDataExport?> ExportAsync(
Guid customerId,
CancellationToken cancellationToken)
{
var customer = await db.Customers
.AsNoTracking()
.Where(c => c.Id == customerId)
.Select(c => new
{
c.DisplayName,
c.Email,
c.CreatedAtUtc
})
.SingleOrDefaultAsync(cancellationToken);
if (customer is null)
{
return null;
}
var consents = await db.ConsentRecords
.AsNoTracking()
.Where(c => c.CustomerId == customerId)
.OrderBy(c => c.Id)
.Select(c => new ConsentExport(
c.Purpose,
c.Granted,
c.NoticeVersion,
c.RecordedAtUtc))
.ToListAsync(cancellationToken);
var activities = await db.CustomerActivities
.AsNoTracking()
.Where(a => a.CustomerId == customerId)
.OrderBy(a => a.OccurredAtUtc)
.Select(a => new ActivityExport(
a.ActivityType,
a.OccurredAtUtc))
.ToListAsync(cancellationToken);
return new CustomerDataExport(
customer.DisplayName,
customer.Email,
customer.CreatedAtUtc,
consents,
activities);
}
}Register the service:
builder.Services.AddScoped<DataExportService>();This creates a structured, machine-readable representation of the customer’s information within our demonstration database.
A complete legal access or portability response may require additional information from other systems and different handling of third-party information.
The export scope should be defined according to the applicable request type.
Step 17: Secure the Data Export Endpoint
A personal data export is itself a sensitive artifact.
If an attacker gains access to an account, an export endpoint could provide a convenient way to retrieve large amounts of personal information.
Export operations should require authentication and, where appropriate, recent authentication or additional identity verification.
app.MapGet("/me/privacy/export", async (
ClaimsPrincipal user,
HttpContext context,
AppDbContext db,
DataExportService exportService,
CancellationToken cancellationToken) =>
{
string? subject = user.FindFirstValue(
ClaimTypes.NameIdentifier);
if (string.IsNullOrWhiteSpace(subject))
{
return Results.Unauthorized();
}
Guid? customerId = await db.Customers
.Where(c => c.IdentitySubject == subject)
.Select(c => (Guid?)c.Id)
.SingleOrDefaultAsync(cancellationToken);
if (customerId is null)
{
return Results.NotFound();
}
var export = await exportService.ExportAsync(
customerId.Value,
cancellationToken);
if (export is null)
{
return Results.NotFound();
}
context.Response.Headers["Cache-Control"] = "no-store";
return Results.Json(export);
})
.RequireAuthorization();The Cache-Control: no-store header instructs compliant HTTP caches not to store the response.
It does not prevent the recipient from saving the information locally.
For larger datasets, generating exports synchronously may be inefficient.
A production architecture can use background jobs, encrypted temporary storage, authenticated downloads, and short-lived export availability.
Step 18: Model Privacy Requests as Durable Workflows
Account deletion should rarely be implemented as a single database command in a complex application.
Instead, privacy requests should have a durable lifecycle.
Create Models/PrivacyRequest.cs:
public sealed class PrivacyRequest
{
public Guid Id { get; set; } = Guid.NewGuid();
public Guid CustomerId { get; set; }
public string RequestType { get; set; } = "";
public string Status { get; set; } = "pending";
public DateTime RequestedAtUtc { get; set; }
= DateTime.UtcNow;
public DateTime? CompletedAtUtc { get; set; }
public int Attempts { get; set; }
}A privacy request may move through several states.
In our previous article on Graceful Shutdown and Application Lifecycle in ASP.NET Core: Deploy Without Dropping Work, we explored how durable state, cancellation handling, and recoverable background operations protect critical workflows during application restarts. These principles are equally important for privacy requests, where interrupted deletion or export operations must remain recoverable without compromising data integrity.
Durable request records allow the application to resume incomplete operations after restarts.
They also support progress monitoring, retries, and operational investigation.
However, the request record itself must have an appropriate retention policy because it may still be associated with an identifiable customer.
Step 19: Implement a Local Account Deletion Service
For our demonstration, we’ll delete personal information stored in the application’s primary database.
Create Services/AccountDeletionService.cs:
using Microsoft.EntityFrameworkCore;
public sealed class AccountDeletionService(
AppDbContext db)
{
public async Task DeleteLocalDataAsync(
Guid requestId,
CancellationToken cancellationToken)
{
await using var transaction =
await db.Database.BeginTransactionAsync(
cancellationToken);
var request = await db.PrivacyRequests
.SingleOrDefaultAsync(
r => r.Id == requestId,
cancellationToken);
if (request is null)
{
return;
}
if (request.Status == "local-data-deleted")
{
return;
}
if (request.RequestType != "deletion" ||
request.Status != "approved")
{
throw new InvalidOperationException(
"Deletion request is not approved.");
}
Guid customerId = request.CustomerId;
await db.CustomerActivities
.Where(a => a.CustomerId == customerId)
.ExecuteDeleteAsync(cancellationToken);
await db.ConsentRecords
.Where(c => c.CustomerId == customerId)
.ExecuteDeleteAsync(cancellationToken);
await db.Customers
.Where(c => c.Id == customerId)
.ExecuteDeleteAsync(cancellationToken);
request.Status = "local-data-deleted";
await db.SaveChangesAsync(cancellationToken);
await transaction.CommitAsync(cancellationToken);
}
}This example uses a transaction to keep the local deletion operations and request status consistent.
If an operation fails before the transaction commits, the database changes are rolled back.
If the operation succeeds but the worker loses its connection before receiving confirmation, retrying the same request can detect the completed local state.
Notice that the request is marked local-data-deleted, not completed.
Deleting records from one database does not prove that all personal information has been removed from every system.
The example also assumes that eligibility, legal retention obligations, and any necessary holds have already been evaluated before approval.
Step 20: Prevent Deleted Information From Reappearing
One of the most overlooked privacy problems is data resurrection.
Imagine the following sequence:
10:00 AM
Customer requests account deletion.
10:05 AM
Customer profile is deleted.
10:10 AM
An old synchronization event arrives.
10:11 AM
A downstream service recreates the customer profile.The deletion operation succeeded.
But an older event reversed its effect.
Distributed systems need mechanisms to prevent stale information from recreating deleted records.
One approach is to maintain a minimal deletion marker, sometimes called a tombstone.
public sealed class DeletionMarker
{
public Guid CustomerId { get; set; }
public DateTime DeletedAtUtc { get; set; }
public long DeletionRevision { get; set; }
}Consumers can reject events that precede the deletion revision.
Deletion markers should contain only the information required to prevent resurrection.
They also need a defined retention policy.
A customer identifier may remain personal data even after the associated profile has been deleted.
The application must balance resurrection prevention against the requirement to avoid unnecessary retention.
Step 21: Coordinate Deletion Across Distributed Services
A modern ASP.NET Core platform may store personal information in several locations.
A deletion event might contain:
public sealed record CustomerDeletionRequested(
Guid RequestId,
Guid CustomerId,
DateTime RequestedAtUtc
);Each participating service receives the event and performs its own deletion or approved retention operation.
After completing its responsibility, it publishes an acknowledgement.
public sealed record CustomerDeletionAcknowledged(
Guid RequestId,
string ServiceName,
DateTime CompletedAtUtc
);The privacy request service tracks acknowledgements from all required systems.
If a service is unavailable, the workflow remains incomplete and retries later.
If a service retains information under a valid exception, that outcome should be recorded separately rather than falsely reporting complete erasure.
This architecture is more reliable than attempting to delete information from every service through a chain of synchronous HTTP requests.
Step 22: Protect Personal Information in Application Logs
Application logs frequently become an unintended repository of personal information.
Consider this logging statement:
logger.LogInformation(
"Customer {Name} with email {Email} logged in.",
customer.DisplayName,
customer.Email);Every login creates another copy of personal information.
That information may be forwarded to centralized logging platforms, archived, exported, or accessed by multiple operational teams.
A better approach is to log only what the operational purpose requires.
logger.LogInformation(
"Customer authentication succeeded.");If correlation is necessary, use an appropriate request or operation identifier.
logger.LogInformation(
"Authentication succeeded. TraceId: {TraceId}",
Activity.Current?.TraceId.ToString());Even correlation identifiers can become personal data when they can be linked to an individual.
The objective is not to assume that identifiers are harmless.
It is to minimize unnecessary exposure and control how identifiers are used.
Step 23: Avoid Logging Sensitive Request Bodies
HTTP logging can be particularly dangerous in privacy-sensitive applications.
Request bodies may contain passwords, addresses, medical information, financial details, or authentication tokens.
Configure HTTP logging deliberately.
using Microsoft.AspNetCore.HttpLogging;
builder.Services.AddHttpLogging(options =>
{
options.LoggingFields =
HttpLoggingFields.RequestMethod |
HttpLoggingFields.ResponseStatusCode |
HttpLoggingFields.Duration;
});Register the middleware:
app.UseHttpLogging();This example selects a limited set of operational fields.
It avoids enabling request and response body logging.
Developers should also review URL paths, query strings, headers, exception messages, tracing attributes, and third-party monitoring integrations.
Personal information can enter observability systems through any of these channels.
Step 24: Disable Sensitive Data Logging in Production
Entity Framework Core can include sensitive values in diagnostic output when sensitive data logging is enabled.
For production environments, avoid enabling this feature unnecessarily.
builder.Services.AddDbContext<AppDbContext>(
options =>
{
options.UseSqlite(
builder.Configuration
.GetConnectionString("Default"));
options.EnableSensitiveDataLogging(false);
});Disabling sensitive data logging reduces the likelihood of parameter values appearing in EF Core diagnostics.
However, it does not guarantee that every database exception, manually written SQL statement, or application log is free of personal information.
Privacy-aware logging requires reviewing the complete observability pipeline.
Step 25: Use Data Classification and Redaction
Larger applications benefit from identifying sensitive fields systematically.
For example:
Classification Examples
Public Product descriptions
Internal Operational configuration
Personal Names, email addresses, customer identifiers
Highly sensitive Medical information, financial details, identity documents
Secrets Passwords, API keys, authentication tokensClassification helps determine how information should be stored, logged, transferred, and retained.
.NET also provides data classification and redaction capabilities through its compliance libraries.
These capabilities can support centralized redaction policies rather than relying entirely on individual developers to remember which fields are sensitive.
Microsoft provides further guidance in its official documentation on data redaction in .NET.
Redaction should occur before sensitive information reaches unauthorized logging or telemetry destinations.
Masking information only when displaying it in a monitoring dashboard does not remove the underlying sensitive data from storage.
Step 26: Protect Personal Data in Caches
Caching improves application performance, but it creates additional copies of information.
Consider a distributed cache containing customer profiles.
string cacheKey = $"customer-profile:{customerId}";If the customer updates their email address or requests deletion, the cached profile may continue to contain outdated personal information.
Privacy-aware caching requires short, justified expiration periods and reliable invalidation.
await distributedCache.SetStringAsync(
cacheKey,
serializedProfile,
new DistributedCacheEntryOptions
{
AbsoluteExpirationRelativeToNow =
TimeSpan.FromMinutes(5)
},
cancellationToken);When processing an account deletion:
await distributedCache.RemoveAsync(
cacheKey,
cancellationToken);However, cache invalidation alone does not eliminate race conditions.
A concurrent request may have read the customer profile before deletion and attempt to cache it afterward.
Deletion-aware cache population, version checks, and appropriate synchronization can help prevent this behavior.
For particularly sensitive information, avoiding caching altogether may be the most appropriate design.
Step 27: Handle Personal Data in Backups
Backups introduce one of the most difficult privacy engineering challenges.
Suppose a customer requests account deletion today.
The production database removes their information.
However, yesterday’s database backup still contains it.
Editing every historical backup immediately may be impractical and can compromise backup integrity.
A controlled backup strategy should define backup retention periods, restrict access, prevent inappropriate processing of backup contents, and ensure that restored systems respect previously completed deletion requests.
Consider a restoration workflow:
Restore database backup
|
v
Keep restored system isolated
|
v
Retrieve current deletion records
|
v
Reapply required deletion operations
|
v
Validate restored data
|
v
Return system to productionThe deletion ledger must survive independently of the backup being restored.
Otherwise, restoring an older database could also restore an outdated deletion history.
Backup retention and erasure handling must reflect applicable legal requirements.
The existence of backups is not a blanket exemption from privacy obligations.
Step 28: Understand Logical Deletion Versus Physical Storage Erasure
Deleting a row from a relational database does not necessarily overwrite every physical location that previously contained the information.
Copies may remain in database pages, transaction logs, write-ahead logs, snapshots, replicas, or storage-level backups.
SQLite, for example, provides a secure_delete setting:
PRAGMA secure_delete = ON;This setting instructs SQLite to overwrite certain deleted database content with zeros.
However, it does not guarantee that every historical copy has been erased.
Write-ahead logs, virtual table shadow tables, filesystem snapshots, backups, and underlying storage behavior require separate consideration.
Similarly, database maintenance operations such as VACUUM do not guarantee physical erasure across the entire storage infrastructure.
For systems with stronger erasure requirements, storage encryption, carefully managed encryption keys, and infrastructure-specific sanitization procedures may be necessary.
Privacy engineering must distinguish between removing access to information, logically deleting information, and physically erasing storage media.
Step 29: Consider Cryptographic Erasure
Cryptographic erasure is an architectural technique that makes encrypted information inaccessible by destroying the encryption keys required to decrypt it.
For example, a system may encrypt a customer’s sensitive documents using a dedicated data encryption key.
Customer document
|
v
Encrypted using customer-specific key
|
v
Encrypted document storedWhen deletion is required, destroying the relevant key can render the remaining ciphertext inaccessible.
However, this approach works only when the key management architecture supports reliable destruction and no recoverable key copies remain.
Plaintext caches, exports, logs, and independently encrypted copies must also be addressed.
Destroying a shared encryption key could affect multiple customers, so key granularity is an important architectural decision.
Cryptographic erasure is a specialized technique, not a replacement for ordinary data deletion workflows.
Step 30: Monitor Privacy Workflows Without Exposing Personal Data
Privacy operations need observability.
A failed deletion job or growing retention backlog may remain unnoticed without appropriate monitoring.
.NET metrics can help expose operational information without including personal data.
using System.Diagnostics.Metrics;
public static class PrivacyMetrics
{
private static readonly Meter Meter =
new("PrivacyAwarePlatform.Privacy");
public static readonly Counter<long>
DeletedRecords = Meter.CreateCounter<long>(
"privacy.records.deleted");
public static readonly Counter<long>
CompletedRequests = Meter.CreateCounter<long>(
"privacy.requests.completed");
public static readonly Counter<long>
FailedRequests = Meter.CreateCounter<long>(
"privacy.requests.failed");
}After a retention cleanup:
PrivacyMetrics.DeletedRecords.Add(deleted);After a privacy workflow completes:
PrivacyMetrics.CompletedRequests.Add(
1,
new KeyValuePair<string, object?>(
"request.type",
"deletion"));The metric records the operation type without including the customer’s email address or account identifier.
A production monitoring dashboard might display the following illustrative values.
Monitoring should focus on whether privacy controls are functioning, not on unnecessarily identifying the individuals affected by them.
Step 31: Test Privacy Requirements Like Other Application Features
Privacy controls should have automated tests.
Consider a test verifying that withdrawing marketing consent changes the effective consent state.
[Fact]
public async Task WithdrawnConsent_PreventsMarketing()
{
Guid customerId = existingCustomerId;
await consentService.RecordDecisionAsync(
customerId,
ConsentPurposes.Marketing,
true,
"1.0",
CancellationToken.None);
await consentService.RecordDecisionAsync(
customerId,
ConsentPurposes.Marketing,
false,
"1.0",
CancellationToken.None);
bool permitted =
await consentService.HasConsentAsync(
customerId,
ConsentPurposes.Marketing,
CancellationToken.None);
Assert.False(permitted);
}This test assumes an initialized test database containing the customer and a configured consent service.
Other important scenarios include:
Users cannot export another customer’s information.
Optional processing is disabled when consent is absent.
Consent withdrawal prevents future consent-dependent processing.
Expired records are removed by retention workers.
Records that are not expired remain untouched.
Deletion requests can safely be retried.
Pending deletion prevents new personal data collection.
Stale synchronization events cannot recreate deleted profiles.
Sensitive information does not appear in logs.
Restored backups respect previously completed deletion requests.
Approved legal retention exceptions are handled correctly.
Use relational database integration tests where transaction behavior, constraints, and bulk deletion operations matter.
An in-memory substitute may not accurately reproduce these behaviors.
Step 32: Privacy Engineering in Multi-Tenant SaaS Applications
Multi-tenant ASP.NET Core applications introduce additional complexity.
A customer identifier may exist in multiple tenant environments.
Privacy requests must not accidentally affect information belonging to another tenant.
For example:
var customer = await db.Customers
.SingleOrDefaultAsync(c =>
c.TenantId == tenantId &&
c.Id == customerId,
cancellationToken);This illustrates a tenant-aware query for an extended customer model containing a TenantId property.
Tenant isolation must also apply to export jobs, deletion workflows, caches, event consumers, search indexes, and backups.
A background worker must not assume that a customer identifier alone is sufficient to establish authorization.
Different tenants may also have different retention requirements.
The architecture should support validated tenant-specific policies without allowing one tenant’s configuration to weaken another tenant’s privacy protections.
Step 33: Build a Personal Data Inventory
As an application grows, developers may lose track of where personal information exists.
A personal data inventory helps document this information.
For example:
System Personal data Purpose Removal mechanism
Customer database Name, email Account management Deletion workflow
Marketing platform Email, preferences Promotions Provider API
Analytics database Activity records Usage analysis Retention worker
Distributed cache Profile responses Performance Invalidation and expiry
Object storage Data exports Privacy requests Expiration and deletion
Logging platform Limited identifiers Diagnostics Log retention policy
Backup storage Historical database contents Disaster recovery Backup lifecycle policyThe inventory should also identify system owners, processing bases, retention requirements, access restrictions, and downstream transfers.
This documentation is valuable during architecture reviews, incident response, privacy requests, and system migrations.
A privacy request cannot reliably remove information from systems the organization does not know exist.
Step 34: Understand GDPR and Privacy Compliance
Privacy engineering can support compliance with regulatory frameworks such as GDPR, but technical controls alone do not establish compliance.
Several GDPR principles have direct architectural implications.
Privacy principle Engineering implication
Data minimization Collect only necessary information
Purpose limitation Restrict processing to defined purposes
Storage limitation Implement justified retention policies
Accuracy Support correction of personal information
Integrity and confidentiality Protect data against unauthorized access
Accountability Maintain evidence of privacy controls
Right of access Support appropriate personal data access workflows
Right to erasure Implement deletion workflows and applicable exceptions
Data portability Support eligible machine-readable exports
Data protection by design and default Incorporate privacy into system architectureStep 35: Common Privacy Engineering Mistakes
Collecting information without a defined purpose.
Every unnecessary field increases the amount of personal information the organization must manage and protect.
Treating consent as a permanent Boolean value.
Consent decisions may differ by purpose, change over time, or require updated notices.
Recording consent without enforcing it.
A preference stored in the database has little practical value if background workers ignore it.
Using soft deletion as a substitute for erasure.
Soft-deleted information remains stored and may still be accessible.
Ignoring personal data in logs and caches.
Removing the primary customer record does not remove copies created elsewhere.
Allowing retention workers to fall behind indefinitely.
A cleanup job must remove expired information at a rate sufficient to enforce the intended policy.
Recreating deleted information through synchronization.
Old messages, imports, and restored backups must not silently reverse completed deletion operations.
Assuming pseudonymization is anonymization.
Removing obvious identifiers does not necessarily eliminate the possibility of re-identification.
Marking deletion requests complete prematurely.
Completion should reflect the verified outcomes of all required processing systems.
Treating privacy compliance as a one-time development task.
New features, dependencies, integrations, and data flows continually introduce new privacy considerations.
A Production-Ready Privacy Engineering Architecture
Let’s return to our customer management platform.
The registration API collects only the information required to create an account.
Additional personal information is requested only when a specific business operation requires it.
Consent decisions are recorded separately for each supported purpose.
Processing services verify the relevant consent state before performing optional activities.
Customer activity records include explicit expiration timestamps.
Background workers remove expired information in controlled batches.
Personal data exports use dedicated response contracts and protected access workflows.
Account deletion requests are recorded durably and processed through approved, retryable operations.
Downstream services receive deletion events and acknowledge completion.
Caches and search indexes are invalidated.
Logging systems avoid unnecessary personal information.
Backup restoration procedures reapply previously completed deletion requests before restored systems become available.
Monitoring systems track privacy workflow failures, retention backlogs, and incomplete requests.
The result is an application designed not only to protect personal information but also to manage its entire lifecycle responsibly.
Privacy becomes an observable, testable, and maintainable part of the software architecture.
Coming Next
In our next article, we’ll explore Database Sharding in ASP.NET Core: Partitioning Data Beyond a Single Database.
As applications grow, a single database may struggle to accommodate increasing storage requirements, write throughput, and geographically distributed workloads.
We’ll examine horizontal partitioning, shard keys, tenant-based sharding, shard routing, cross-shard queries, distributed transaction challenges, and data rebalancing.
We’ll also build a practical ASP.NET Core implementation that routes database operations to different shards using Entity Framework Core.
Privacy engineering becomes even more important in these architectures because customer information may be distributed across multiple independent databases.
Closing Thoughts
Privacy engineering changes the way developers think about personal information.
Instead of asking only how to protect the information an application stores, developers must also ask whether that information should be collected, why it is processed, where it travels, and when it should be removed.
Data minimization reduces unnecessary exposure.
Purpose-specific consent management gives users meaningful control over optional processing.
Retention policies prevent information from accumulating indefinitely.
Automated cleanup workers turn retention requirements into operational behavior.
Secure export workflows help users access their information.
Durable deletion mechanisms make complex privacy operations recoverable and auditable.
Privacy-aware logging, caching, synchronization, and backup strategies extend these protections beyond the primary database.
The most effective privacy controls are not isolated features added shortly before an application goes into production.
They are architectural decisions that influence how every component handles personal information.
A well-designed application* knows how to collect data, protect data, process data, and, when the time comes, responsibly forget data.
*Technical review note: The examples target .NET 10 and EF Core, with SQLite selected for local demonstration. They are modular implementation examples rather than a complete, independently tested application repository. Authentication configuration, distributed workflow infrastructure, legal retention exceptions, concurrency guarantees, and production integration tests require application-specific implementation before deployment.
Subscribe Now
Building modern ASP.NET Core applications requires more than delivering functionality and optimizing performance. It also requires designing systems that respect user privacy, manage information responsibly, and remain trustworthy throughout their operational lifetime.
Subscribe to ASP Today for practical .NET tutorials, real-world coding examples, enterprise architecture patterns, and production-focused guidance on application security, scalability, reliability, and privacy engineering.
Join our Substack Chat to discuss consent management, automated retention policies, personal data deletion, GDPR-related engineering challenges, and the architectural decisions behind privacy-aware applications.
Subscribe now and follow the series as we continue building secure, scalable, and production-ready ASP.NET Core systems.







