Guy McKechnieSoftware Engineer · PAS-SA
All Projects & Systems
Industrial Telemetry & Enterprise APIIn Continuous Production

SciNapse & Choco

Architected a high-throughput industrial telemetry logger and backend API using C# .NET, LINQ queries, and multi-tier architectural patterns for real-time plant operations.

Client / DomainPAS Automation Services (PAS-SA)
My RoleBackend Architect & Systems Engineer
Timeline2025 – Present
External Links
Proprietary Enterprise
SciNapse & Choco Production Interface Screenshot
FIGURE 1.0 // SCINAPSE & CHOCO PRODUCTION INTERFACE VIEWTAGS: C# · .NET 8 · LINQ · Enterprise API · Telemetry · SQL Server
Metrics // Quantifiable Outcomes

Production Impact

<5msCommit Latency

Ingestion-to-memory latency maintained during peak sensor burst rates.

0%Packet Loss

Zero dropped telemetry frames recorded during continuous multi-week plant runs.

10xQuery Speedup

Reduction in control room dashboard query times for historical trends.

01 // Context & Problem

The Engineering Challenge

Industrial automation plants monitor continuous instrumentation across thousands of sensors, flow valves, and multi-stage compressor units. Legacy logging solutions suffered from write-lock contention, uncontrolled garbage collection pauses during high-frequency ingestion spikes, and query timeouts when control room operators queried multi-gigabyte historical telemetry windows.

02 // Architecture & Data Flow

System Design & Pipeline

SciNapse is partitioned into an asynchronous ingestion ring buffer, an in-memory streaming window, and an enterprise REST/gRPC API service layer communicating with high-performance persistent storage.

[Field Telemetry] --> (OPC-UA / Modbus Ingestion Worker)
                            |
                            v [Concurrent Ring Buffer]
                 +----------+----------+
                 |                     |
                 v                     v
      [In-Memory Rolling Window]   [Batch Writer (.NET Channels)]
                 |                     |
                 v                     v
      [Low-Latency Live Queries]    [SQL Server / Timescale Store]
                 ^                     ^
                 +----------+----------+
                            |
                 [Enterprise .NET API Service]
                            |
                   (REST / gRPC Endpoints)

Step 01: Field Ingestion & De-jitter

High-frequency sensor payloads arrive via industrial protocols into bounded System.Threading.Channels, decoupling network ingestion from disk persistence.

Step 02: Batch Transformation & Compression

Micro-batches of sensor points are validated, checked against calibration bounds, and compressed in memory before bulk transaction commits.

Step 03: Optimized LINQ Aggregation

Operator queries utilize pre-compiled LINQ expressions and covering indexes to compute rolling averages and statistical anomalies across tens of millions of records without GC churn.

03 // Implementation & Tradeoffs

Technical Decisions

Implemented in C# .NET 8 using clean architectural boundaries, dependency injection, and zero-allocation memory pools (ArrayPool<T>) for raw telemetry buffers.

Decision 01

System.Threading.Channels over RabbitMQ broker

Rationale:

For single-node plant gateways, in-process bounded channels eliminated network serialization latency and third-party broker operational overhead.

Trade-off Accepted:

Buffer memory is node-bound; solved by enforcing strict backpressure limits and failover file spools.

Decision 02

Pre-compiled LINQ expressions over raw SQL strings

Rationale:

Maintained strong compile-time type safety while matching raw ADO.NET execution speed across complex parametric search filters.

Trade-off Accepted:

Required strict testing of query generation plans to avoid inadvertent client-side evaluation.

Decision 03

Custom sliding window ring buffer

Rationale:

Allows control room consoles to fetch the last 30 minutes of 50Hz sensor data instantly from RAM without hitting disk storage.

Trade-off Accepted:

Requires fixed memory allocation overhead per active sensor channel.

Specification Sheet

Technical Stack

Languages
C# 12 · SQL
Frameworks & Libs
.NET 8 · ASP.NET Core · Entity Framework Core
Infrastructure
Windows Server · SQL Server · IIS · Docker
Protocols & Formats
OPC-UA · Modbus TCP · REST · gRPC
Testing & Profiling
xUnit · BenchmarkDotNet · FluentAssertions