HomeCase studiesRegulated Enterprise Document Management and Retention Platform...

Case study · Brussels, Belgium

Regulated Enterprise Document Management and Retention Platform on .NET and SQL Server

Enterprise Records & Compliance Management

We engineered a regulated enterprise document management system using .NET, React, SQL Server, Azure Blob Storage, and Elasticsearch. Compliance officers, legal reviewers, and departmental staff ingest scanned contracts and digital records, search across OCR-extracted text, collaborate through immutable version histories, and enforce retention and legal-hold rules. Streaming direct-to-blob uploads, cryptographic checksums, and policy-backed access control protect sensitive archives without slowing everyday retrieval.

Industry
Enterprise Records & Compliance Management
Solution
ASP.NET Core API and React web portal backed by SQL Server metadata ledgers, immutable Azure Blob Storage, and Elasticsearch full-text retrieval.
Platforms
Web & API
Stack
.NET · C# · ASP.NET Core · React · TypeScript · SQL Server
Location
Brussels, Belgium · delivered remotely
Role
Engineering, with the team behind for mobile and QA

Delivered remotely for a business based in Brussels, Belgium. Names withheld by agreement.

Project Overview

European organizations operating across regulated sectors face strict obligations around how contracts, board resolutions, and operational records are captured, indexed, and retained. Based in Brussels, we delivered an enterprise digital document management platform built on .NET, React, SQL Server, Azure Blob Storage, and Elasticsearch. The platform unifies secure document ingestion, multilingual OCR search, controlled version check-in/check-out, and policy-driven retention governance in a browser-native workspace.

Business Bottleneck

Teams previously relied on sprawling network file shares and ad-hoc email attachments that offered no reliable version lineage, no searchable text inside scanned PDFs, and no enforceable retention lifecycle. Auditors struggled to verify who accessed or exported sensitive dossiers, while legal teams risked accidental deletion of records subject to active regulatory holds. Uploading large multi-hundred-page filings routinely timed out over legacy web forms, forcing staff back onto unmanaged local drives.

Architectural Strategy

We separated binary storage, transactional metadata, and full-text search into specialized tiers orchestrated by ASP.NET Core in C#. SQL Server acts as the authoritative system of record for folder hierarchies, custom metadata schemas, document check-out locks, and immutable audit events.

Binary files never buffer through web server RAM; React uploads chunks directly to Azure Blob Storage via tightly scoped Shared Access Signatures, triggering asynchronous .NET Worker Services for malware scanning, SHA-256 hashing, PDF thumbnail rendering, and OCR indexing into Elasticsearch.

Core Capabilities

  • Chunked Direct-to-Cloud Ingestion: Resumable multi-part browser uploads with drag-and-drop metadata tagging and automatic MIME validation.
  • Immutable Version Lineage: Explicit check-out/check-in locking, side-by-side metadata diffs, and non-destructive version promotion.
  • Multilingual OCR & Faceted Search: Automated text extraction on scanned TIFFs and PDFs indexed with custom taxonomy filters and security-trimmed snippets.
  • Granular Inheritance & Explicit ACLs: Folder-level permission inheritance with document-level overrides mapped directly to enterprise SSO groups.
  • Retention Schedules & Legal Holds: Automated lifecycle timers aligned to document classes, overridden cleanly by compliance legal holds.
  • Watermarked Viewing & Controlled Sharing: In-browser document previewer applying dynamic user watermarks and expiring external review links.

Technical Architecture

Flow: React SPA (TypeScript) -> ASP.NET Core (.NET API) -> SQL Server (ACLs, Versions & Audit) / Azure Blob Storage (SAS Direct Upload + WORM) / .NET Workers -> Elasticsearch (Security-Trimmed OCR Index)

When a user initiates an upload, ASP.NET Core verifies folder write permissions, creates a pending_ingestion version record in SQL Server, and issues a time-bounded, prefix-scoped SAS upload URL. React streams file blocks directly to Azure Blob Storage and calls the commit endpoint upon completion.

Commit triggers an event consumed by .NET Worker Services, which scan the payload for malware, verify the SHA-256 digest, run OCR on non-searchable pages, push extracted text and flattened ACL principal arrays to Elasticsearch, and transition the SQL Server record to active. Subsequent user searches query Elasticsearch with mandatory security-group filter clauses derived from the caller's validated token, while downloads mint single-use SAS URLs or stream watermarked PDFs through policy middleware.

Technology Stack

Category Technology detail
Backend Runtime .NET and ASP.NET Core (C#) enforcing document policies, ACLs, and audit trails
Web Application React and TypeScript SPA with chunked uploader and inline PDF/image annotation viewer
Metadata Database Microsoft SQL Server storing folder taxonomies, version trees, and retention schedules
Binary Object Store Azure Blob Storage with customer-managed encryption keys and WORM immutability policies
Search Engine Elasticsearch indexing OCR text, custom taxonomy tags, and security-trimmed facets
Background Workers .NET Worker Services executing virus scanning, OCR extraction, and retention sweeps
Identity Integration OpenID Connect / SAML SSO with group-to-role claims synchronization
Telemetry & Auditing Tamper-evident append-only audit tables streamed to centralized SIEM exports

Engineering Trade-offs & Solutions

Challenge Architectural Solution
Preventing large uploads from exhausting ASP.NET Core worker memory Direct-to-Azure Blob chunked uploads via short-lived SAS URLs with post-commit worker verification
Resolving deep folder ACL checks quickly during search Flattened principal-ID arrays synchronized into Elasticsearch documents and checked via mandatory query filters
Guaranteeing deleted records cannot vanish while under litigation Dual-layer legal-hold flags enforced in SQL Server disposition workflows and Azure immutable blob locks
Avoiding stale search indexes after permission changes Outbox table in SQL Server driving reliable incremental ACL re-indexing into Elasticsearch
Eliminating simultaneous editing conflicts on controlled SOPs Pessimistic check-out locks with configurable lease timeouts and admin override logging

Security & Reliability

All authentication delegates to corporate OpenID Connect / SAML identity providers, ensuring departing employees lose document access automatically upon directory deprovisioning. Blobs are encrypted at rest with customer-managed keys, and sensitive document classes block unwatermarked local downloads via policy rules. Short-lived download SAS tokens bind to exact blob versions and expire quickly so forwarded links cannot expose archived records externally.

Every preview, download, permission grant, legal-hold placement, and disposition event writes to an append-only audit table protected from updates at the database permission layer, providing verifiable evidence for internal governance and external regulatory reviews. Periodic background integrity sweeps recompute stored SHA-256 digests against Azure Blob Storage metadata to confirm archival immutability.

Performance & Scale

Splitting binary transfer onto Azure Blob Storage keeps the ASP.NET Core tier lightweight and responsive for metadata browsing, approvals, and search orchestration. SQL Server leverages filtered indexes on active document versions and hierarchical path keys so deep enterprise folder trees expand rapidly without full-table scans.

Because OCR and thumbnail generation execute asynchronously on scalable .NET worker queues, heavy batch archival imports never degrade interactive query latency for daily legal and operational users. Elasticsearch shard routing keeps tenant or department queries focused, while React caches rendered document pages locally during multi-page contract reviews.

Operational Outcomes

Compliance and legal teams replaced fragmented shared drives with a governed repository where every contract and record is searchable by full content within moments of upload. Auditors trace complete document lifecycles without manual evidence gathering, while business units collaborate confidently on controlled versions protected by enforceable retention and legal-hold safeguards. Onboarding new departments onto standardized folder taxonomies and retention policies now happens through configuration rather than bespoke IT scripting.

01 — Questions

asked about this kind of project

How do you handle multi-gigabyte engineering drawings or large PDF bundles without exhausting .NET API server memory?

React splits large files into parallel chunks and uploads directly to staging containers in Azure Blob Storage using short-lived SAS tokens minted by ASP.NET Core. Once all blocks commit and pass SHA-256 verification and malware scanning, the blob moves to its governed prefix.

How are search results in Elasticsearch prevented from exposing document snippets to unauthorized users?

Every indexed document stores flattened ACL principal IDs alongside metadata and OCR text. Query requests from ASP.NET Core attach a mandatory terms filter matching the authenticated user's identity and active SSO security groups before hits return.

How do retention policies interact with active legal holds?

Retention schedules compute earliest eligible disposition dates from document classification rules, but any active legal-hold tag overrides disposition unconditionally. Both SQL Server state guards and Azure Blob Storage immutability locks block deletion until compliance officers explicitly lift all holds.

Why keep metadata and permissions in SQL Server while storing full text in Elasticsearch?

SQL Server provides strict transactional integrity for check-in/check-out locks, version lineage, and audit logging, while Elasticsearch handles multi-language stemming, OCR typo tolerance, and fast faceted filtering across millions of pages.

What ensures a recorded file has not been altered silently on disk after archival?

Upon ingestion, the worker computes a SHA-256 digest stored alongside the SQL Server version row and sets version-level immutability in Azure Blob Storage. Periodic integrity verification and download checks validate digests against stored metadata.

03 — Similar project?

describe what is different about yours

Build yours.

Tell me what exists, what you need and the deadline. Fixed price for a defined scope, or $55/day (8–9 hours work) with a written plan first.

Solitaire Corporate Park, Makarba, Ahmedabad, Gujarat 380015, India · IST (UTC+5:30) · --:-- IST · Mon–Fri 09:00–18:00 IST · US & EU overlap daily

No newsletter, no CRM. Just a reply.