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.

Production Impact
Ingestion-to-memory latency maintained during peak sensor burst rates.
Zero dropped telemetry frames recorded during continuous multi-week plant runs.
Reduction in control room dashboard query times for historical trends.
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.
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.
Technical Decisions
Implemented in C# .NET 8 using clean architectural boundaries, dependency injection, and zero-allocation memory pools (ArrayPool<T>) for raw telemetry buffers.
System.Threading.Channels over RabbitMQ broker
For single-node plant gateways, in-process bounded channels eliminated network serialization latency and third-party broker operational overhead.
Buffer memory is node-bound; solved by enforcing strict backpressure limits and failover file spools.
Pre-compiled LINQ expressions over raw SQL strings
Maintained strong compile-time type safety while matching raw ADO.NET execution speed across complex parametric search filters.
Required strict testing of query generation plans to avoid inadvertent client-side evaluation.
Custom sliding window ring buffer
Allows control room consoles to fetch the last 30 minutes of 50Hz sensor data instantly from RAM without hitting disk storage.
Requires fixed memory allocation overhead per active sensor channel.
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