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.