Skip to main content

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.

ComponentDescription
gSharp ServerCore service responsible for scheduling, executing, and managing calculations.
Administration ApplicationWindows-based management tool for configuration, monitoring, and diagnostics.
Developer KitVisual Studio templates and compnents for creating and debugging calculation assemblies.
Migration ToolsUtilities 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.

ModeDescription
Event-based (Natural)Executes when one or more input values change.
Clock-basedExecutes at fixed, user-defined intervals.
CRON-basedExecutes according to a CRON expression.
ManualTriggered 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:

  1. The scheduler triggers execution when a calculation's schedule or event conditions are met.
  2. The server instantiates the calculation module for the target context and prepares input values from configured data sources.
  3. The calculation executes using the prepared input values.
  4. Output values are written back to target systems.
  5. Execution results and diagnostics are logged.

These stages work together so developers can concentrate on business logic while gSharp handles connectivity and scheduling.