orchestration-service-nestjs

Coordinate multi-model workflows across NestJS services with transactional boundaries.

1|Updated Jan 2, 2025
One-click install
npx skills add https://github.com/allenlin90/eridu-services --skill orchestration-service-nestjs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: orchestration-service-nestjs
Source: https://github.com/allenlin90/eridu-services/tree/main/.agent/skills/orchestration-service-nestjs
Command: npx skills add https://github.com/allenlin90/eridu-services --skill orchestration-service-nestjs

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Orchestration Services coordinate complex workflows that span multiple model services, bridging controllers and domain logic to ensure consistent behavior across services.

Core Features & Use Cases

  • Coordinates multiple model services to implement end-to-end workflows across domains.
  • Enforces transactional boundaries via a dedicated Processor service and NestJS transaction patterns.
  • Provides cross-domain validation helpers and a modular pattern to expose an orchestration surface for controllers while keeping Processor internal.

Quick Start

Implement TaskOrchestrationService and TaskGenerationProcessor, wire them into a TaskOrchestrationModule, and expose the OrchestrationService to your controllers.

Frequently Asked Questions about orchestration-service-nestjs

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I coordinate multi-service workflows in NestJS?

To coordinate multi-service workflows in NestJS, use an OrchestrationService to bridge controllers and domain logic. This pattern coordinates multiple model services to execute end-to-end cross-domain operations while maintaining consistent behavior.

How do I enforce transactional boundaries across multiple model services in NestJS?

Transactional boundaries across NestJS model services are enforced using a dedicated internal Processor service. This Processor applies NestJS transaction patterns to ensure operations across services like Show and Task succeed or fail together atomically.

What is the best way to handle bulk operations and cross-domain validation in a NestJS API?

Handling bulk operations and cross-domain validation in a NestJS API is best managed by an orchestration layer. It coordinates the required model services and provides modular validation helpers to ensure data integrity before executing complex workflows.

How do I prevent race conditions during concurrent bulk operations in NestJS?

To prevent race conditions during concurrent bulk operations in NestJS, apply advisory locks for concurrency control. Combined with a dedicated Processor, this pattern enforces idempotency and secures the transactional boundary against parallel conflicts.

Should I expose my domain Processor directly to controllers in NestJS?

You should not expose your domain Processor directly to NestJS controllers. The orchestration pattern exposes a public OrchestrationService for controllers to communicate with, keeping the internal Processor service private to protect transactional boundaries.

When do I need an orchestration service for my NestJS application?

You need an orchestration service in NestJS when complex workflows span multiple model services across different domains. It is required for bulk operations, cross-domain validation, and transactional processing that demand idempotency and concurrency control.