SystemIntegration Decorator¶
Provides guidance for integrating with existing systems and services.
Category: Implementation-Focused
Parameters¶
Parameter | Type | Description | Default |
---|---|---|---|
systems | string | External systems to integrate with | none |
approach | enum | Integration approach | adapter |
coupling | enum | Desired coupling level | loose |
Approach Options¶
adapter
: Use an adapter pattern to create a compatible interface between systems.direct
: Implement direct integration with minimal abstraction layers.facade
: Create a facade to provide a simplified interface to the complex subsystems.proxy
: Implement a proxy pattern to control access to the external systems.bridge
: Use a bridge pattern to decouple abstraction from implementation.
Coupling Options¶
loose
: Maintain loose coupling to minimize dependencies between systems.moderate
: Balance coupling with performance considerations.tight
: Implement tight coupling where performance is critical.
Examples¶
Basic integration with payment gateway using facade pattern¶
Provides guidance for implementing a facade-based integration with payment gateway and inventory services while maintaining loose coupling.
Direct integration with tight coupling for performance¶
Guides implementation of direct database integration with tight coupling for performance-critical operations.
Model-Specific Implementations¶
gpt-4-turbo¶
Instruction: When implementing the solution, consider these system integration guidelines:
Notes: Simplified instruction for models with less context capacity.
Implementation Guidance¶
E-commerce application¶
Original Prompt:
Implement an order processing service that integrates with our payment gateway and inventory system.
Transformed Prompt:
Consider the following system integration requirements when developing your solution:
Integrate with the following systems: payment-gateway,inventory-service.
Create a facade to provide a simplified interface to the complex subsystems.
Maintain loose coupling to minimize dependencies between systems.
Implement an order processing service that integrates with our payment gateway and inventory system.
Notes: The decorator adds specific integration guidance while preserving the original implementation request.
Transformation Details¶
Base Instruction: Consider the following system integration requirements when developing your solution:
Placement: prepend
Composition Behavior: accumulate
Parameter Effects:
systems
:-
Format: Integrate with the following systems: {value}.
-
approach
: - When set to
adapter
: Use an adapter pattern to create a compatible interface between systems. - When set to
direct
: Implement direct integration with minimal abstraction layers. - When set to
facade
: Create a facade to provide a simplified interface to the complex subsystems. - When set to
proxy
: Implement a proxy pattern to control access to the external systems. -
When set to
bridge
: Use a bridge pattern to decouple abstraction from implementation. -
coupling
: - When set to
loose
: Maintain loose coupling to minimize dependencies between systems. - When set to
moderate
: Balance coupling with performance considerations. - When set to
tight
: Implement tight coupling where performance is critical.
Compatibility¶
- Requires: None
- Conflicts: None
- Compatible Models: gpt-4-turbo, gpt-4o, claude-3-7-sonnet-latest, llama-3.2
- Standard Version: 1.0.0 - 2.0.0
Related Decorators¶
- DesignPatterns: Enhances SystemIntegration SystemIntegration works well with DesignPatterns to provide comprehensive architectural guidance.
- CodeQuality: Enhances SystemIntegration Can be combined with CodeQuality to ensure integration code meets quality standards.