Overview
State management defines how plugins maintain context and data across their lifecycle. This configuration enables optimized resource usage and data sharing patterns.State Management Modes
Global
The plugin starts at system initialization or on a specific trigger and maintains state across multiple tasks.Characteristics
Characteristics
- Available only to host plugins
- Maintains context in shared memory on the host
- Persists across multiple task executions
- Single instance can serve multiple tasks
Use cases
Use cases
- Machine learning models that remain loaded in memory
- Caching layers for repeated operations
- Shared databases or indices
- Long-running analysis services
Isolated
The plugin is instantiated per task with no persistent state. Each task receives a fresh instance.Characteristics
Characteristics
- Complete isolation between tasks
- No metadata or state persists after task completion
- Simplest lifecycle model
- Guaranteed clean state for each execution
Use cases
Use cases
- Stateless analysis operations
- Single-task workflows
- Quick analysis tasks
Context Aware
The plugin can share context and data with specific plugins or tasks through controlled mechanisms.Characteristics
Characteristics
- Selective state sharing
- Context propagation between related tasks
- Controlled data flow between plugins
- Balance between isolation and collaboration
Use cases
Use cases
- Multi-stage analysis pipelines
- Plugins that build on previous analysis results
- Coordinated analysis workflows
- Data aggregation across related tasks