gSharp Architecture Overview
gSharp is designed around a centralized execution model that simplifies deployment, improves reliability, and supports scalable analytics.
System Components
A compact set of collaborating components make up the gSharp platform. The table below lists the primary pieces you will interact with when deploying, operating, or developing for gSharp.
| Component | Description |
|---|---|
| gSharp Server | Core service responsible for scheduling, executing, and managing calculations. |
| Administration Application | Windows-based management tool for configuration, monitoring, and diagnostics. |
| Developer Kit | Visual Studio templates and compnents for creating and debugging calculation assemblies. |
| Migration Tools | Utilities for converting PI ACE calculations and contexts into gSharp. |
Scheduling Engine
Scheduling is central to gSharp's behavior — it determines when and why calculations run. The engine is flexible so you can match scheduling to operational needs, from event-driven updates to fixed-interval processing. The scheduling engine determines when a calculation executes. Each calculation defines its own scheduling model.
| Mode | Description |
|---|---|
| Event-based (Natural) | Executes when one or more input values change. |
| Clock-based | Executes at fixed, user-defined intervals. |
| CRON-based | Executes according to a CRON expression. |
| Manual | Triggered on demand for testing, backfill, or recovery. |
Calculation Lifecycle
The lifecycle description that follows outlines the practical path from writing calculation logic to running and updating it in production. It shows the repeatable steps teams use to iterate safely.
- Development – Implement calculation logic as a .NET class.
- Compilation – Compile the class into a .NET assembly.
- Registration – Register the assembly with the gSharp Server.
- Configuration – Define inputs, outputs, and scheduling parameters.
- Execution – Server loads and executes the calculation.
- Monitoring – Logs and diagnostics are recorded.
- Update – Assemblies can be updated without redesigning schedules or context.
Data Flow Overview
When gSharp runs a calculation, control and data flow through a predictable sequence:
- The scheduler triggers execution when a calculation's schedule or event conditions are met.
- The server instantiates the calculation module for the target context and prepares input values from configured data sources.
- The calculation executes using the prepared input values.
- Output values are written back to target systems.
- Execution results and diagnostics are logged.
These stages work together so developers can concentrate on business logic while gSharp handles connectivity and scheduling.