Delivered remotely for a business based in Dallas, United States. Names withheld by agreement.
Project Overview
In high-footfall brick-and-mortar retail, every second spent waiting on a sluggish register screen or a cloud timeout translates directly into abandoned baskets and frustrated queues. At the same time, modern retailers operate seamlessly across physical aisles and online storefronts—requiring real-time visibility into store-level inventory for buy-online-pickup-in-store (BOPIS) orders and cross-channel returns.
Built for multi-location retail operations headquartered in Dallas, we engineered an omnichannel retail POS software suite grounded in C#, .NET, and SQL Server. The platform pairs local, offline-resilient store checkout services with a centralized ASP.NET Core back-office, deterministic hardware peripheral control, and event-driven inventory synchronization.
Storefront & Register Bottlenecks
Retail operators moving off legacy green-screen terminals or pure browser-only cloud POS tools consistently encountered four operational pain points:
- Connectivity fragility: Cloud-only browser registers froze completely whenever mall Wi-Fi or store ISP links flickered during peak weekend rushes.
- Inventory drift across channels: Overwriting stock integers concurrently from web checkouts and physical registers caused phantom availability for BOPIS pickups.
- Fragile peripheral wrappers: Browser print dialogs and flaky USB extensions slowed down thermal receipt printing, cash drawer kicks, and EMV PIN-pad pairing.
- Opaque shift reconciliation: Disconnected end-of-day Z-reports forced store managers and regional finance teams into manual spreadsheet audits across dozens of locations.
Architectural Strategy
We adopted a local-first store edge paired with a centralized event-sourced ledger. Each retail location runs a lightweight .NET checkout service backed by a local SQL Server store holding active SKU prices, tax rules, loyalty balances, and pending sales journals. Checkout lines execute against local storage with zero round-trip dependency on headquarters.
Whenever network connectivity is present, a background .NET sync worker publishes signed sales, return, and stock-adjustment events over Azure Service Bus into the central SQL Server enterprise warehouse. Meanwhile, SignalR channels stream urgent updates—flash markdowns, recalled SKUs, and incoming BOPIS pickup alerts—down to active store registers within seconds.
Core Capabilities
- Sub-Second Offline-Capable Checkout: Supports rapid barcode scanning, split tenders (cash, EMV card, gift card, loyalty points), parked carts, and automated local receipt queuing during ISP outages.
- Deterministic Hardware Abstraction Layer: Drives USB-HID scanners, ESC/POS thermal printers, cash drawers, customer pole displays, and semi-integrated EMV terminals natively from .NET.
- Event-Ledger Inventory & BOPIS Sync: Tracks physical sales, store transfers, shrinkage counts, and online pickup reservations in an auditable SQL Server movement ledger.
- Omnichannel Returns & Exchanges: Validates original e-commerce or sister-store receipts at any register, restocking returned SKUs locally and issuing tender-matched refunds.
- Blind Shift Close & Cash Control: Guides cashiers through structured till counts, safe drops, and variance tracking while enforcing manager PIN overrides on sensitive voids and discounts.
Technical Architecture
Store registers communicate over local loopback/LAN links with the .NET store host, which manages peripheral drivers and commits every receipt locally before acknowledging the cashier. Asynchronous sync agents stream compressed transaction batches to ASP.NET Core ingestion APIs and Azure Service Bus, consolidating financial and stock states inside central SQL Server.
Flow: POS Hardware (Scanners / EMV / Printers) → .NET Local Store Service & Offline SQL Cache → Azure Service Bus Sync Pipeline → ASP.NET Core Back-Office API → Central SQL Server Movement Ledger & Reporting + SignalR Store Push
Recording inventory deltas as immutable ledger rows rather than blind SET quantity = X updates guarantees deterministic convergence even when disconnected registers reconnect hours later.
Technology Stack
| Category | Technology detail |
|---|---|
| Register Runtime | C# and .NET local store service driving cashier UI, offline ledger, and peripheral hardware |
| Central Back-Office | ASP.NET Core web portal and REST APIs managing multi-store pricing, promos, and reporting |
| Enterprise Database | SQL Server storing centralized SKU catalogs, store stock ledgers, shifts, and tax journals |
| Local Store Cache | SQL Server Express / local embedded store persisting offline receipts and catalog deltas |
| Async Sync Bus | Azure Service Bus transporting store-to-HQ sales journals, transfers, and stock events |
| Real-Time Alerts | SignalR pushing live price overrides, BOPIS pickup alerts, and register health telemetry |
| Hardware Bridge | OPOS / USB-HID / TCP adapters driving barcode scanners, receipt printers, scales, and EMV PIN pads |
| ORM & Data Access | Entity Framework Core paired with tuned Dapper queries for high-throughput POS reporting |
Engineering Trade-offs & Solutions
| Engineering Challenge | Solution & Trade-off |
|---|---|
| Pure cloud POS APIs stall checkout lanes during store broadband drops | Placed an authoritative local .NET runtime and local SQL cache inside each store, trading multi-node sync orchestration for uninterrupted checkout availability. |
| Overwriting stock counts causes lost updates between e-commerce and registers | Modeled stock changes as immutable ledger events (Sale, Return, Transfer, Count) summed via indexed views in SQL Server, ensuring conflict-free multi-store convergence. |
| Mixing Entity Framework Core change tracking with massive end-of-day analytical queries degraded memory | Used EF Core for transactional domain writes while routing heavy multi-store margin and tax rollups through lean parameterized Dapper queries. |
| Unmanaged offline card acceptance carries chargeback exposure | Enforced configurable store-level offline EMV floor limits and automatic encrypted store-and-forward settlement thresholds inside the payment bridge. |
Security, PCI Scope & Auditability
Retail registers concentrate payment flows, employee permissions, and cash accountability. By using semi-integrated P2PE EMV PIN pads, raw cardholder numbers never enter the .NET application memory or SQL Server tables—reducing PCI-DSS compliance scope across store networks.
Every register workstation authenticates to ASP.NET Core using mutual TLS device certificates paired with short-lived cashier tokens. Manager overrides, drawer opens, price edits, and voided receipts write tamper-evident journal entries complete with terminal ID and supervisor approval signatures.
Performance & Multi-Store Scalability
Consistent register responsiveness during holiday peaks starts with keeping checkout paths strictly local and avoiding chatty network calls. Local catalog lookups execute against indexed in-memory and SQL tables in milliseconds, while SignalR pushes incremental catalog deltas rather than forcing full nightly database downloads across store links.
At headquarters, partitioning SQL Server sales journal tables by fiscal period and offloading heavy regional financial exports to read replicas ensures live store sync queues and BOPIS inventory APIs remain fast as store footprints expand.
Operational Outcomes
Consolidating brick-and-mortar checkout, hardware drivers, and centralized stock synchronization onto C#, .NET, and SQL Server brought measurable clarity to retail store and headquarters teams:
- Uninterrupted checkout continuity: Cashiers process sales, print receipts, and settle cash or queued card payments smoothly even when store internet connections drop.
- Unified store-to-web stock visibility: Append-only inventory ledgers eliminate discrepancies between physical shelf counts and online BOPIS availability.
- Faster shift reconciliation: Automated blind-count workflows and centralized Z-reports replace manual end-of-day spreadsheet consolidation across regions.
- Tighter loss-prevention governance: Real-time audit journals and badge-enforced override thresholds give regional managers transparent oversight across every register lane.