Choosing the integration direction
Orchestrator rarely works alone. A solution reads from one system, changes another, and reports to a third. For each of them you have to decide who starts the conversation. VMware’s Coding Design Guide calls the two directions northbound and southbound, and the choice shapes your inputs, your error handling, and how much load you can put on the other system.
This recipe makes that decision for the decommissioning solution from recipe 9.1, and maps each direction to the Orchestrator 9.x feature that implements it.
Getting ready
- The decommissioning solution from recipe 9.1, or the list of systems your own solution touches.
- For each system: who owns it, whether it has an API, and how many requests it can take at once. Ask its owners; this is the part people skip.
How to do it
List the systems and the direction of each call
-
Write down every system the solution talks to, and for each one, which side starts. For decommissioning:
System What happens Who starts Direction IT service management tool A change ticket approves a decommission and asks for it The ticket tool Northbound: it calls Orchestrator VCF Automation A user runs the day-2 action Decommission VM on a deployment VCF Automation Northbound vCenter Power off, snapshot, delete Orchestrator Southbound: Orchestrator calls it Mail Tell the owner Orchestrator Southbound CMDB Mark the configuration item retired Orchestrator Southbound -
Keep the northbound callers at the edge. Each caller gets its own thin entry workflow that turns what it sends into plain inputs (a VM, a ticket number, a requester) and calls one shared workflow that knows nothing about the caller. Recipe 9.1 builds it this way: VCFG - VM - Decommission VM is the shared workflow, and only the entry workflows know about tickets or deployments.
Pick the feature for each northbound caller
-
Choose how each caller starts Orchestrator:
The caller… Use Recipe can make REST calls (a ticket tool, a pipeline, a script) The Orchestrator REST API: start a workflow run and poll it 7.1, 7.2 is VCF Automation, as part of a deployment’s life An extensibility subscription on a topic such as compute removal 8.5 is a person in VCF Automation A catalog item, or a day-2 resource action 8.6, 8.8 publishes messages An AMQP subscription and a policy that runs a workflow per message 5.7, 7.3 can do none of these Polling: a scheduled workflow that asks the other system for new work 7.7
Pick the plug-in for each southbound call
- Choose how Orchestrator reaches each system: the vSphere plug-in for vCenter (recipe 8.1), the Mail plug-in (5.5), and for the CMDB whatever it offers: REST (5.2), SQL (5.4), or SSH to a command-line tool (5.3). Prefer the highest-level interface the system has. A REST API that returns errors you can read beats a command-line tool whose output you have to parse.
Check what the other system can take
- For each southbound system, find out how many requests it accepts at once and how fast. Orchestrator will happily start fifty decommissions in parallel; a CMDB with a five-session limit won’t keep up. Where the limit is low, serialize the calls: a lock around the CMDB update (recipe 7.5), or a queue that a scheduled workflow works through.
- For each northbound caller, decide what it gets back and when. A REST caller gets a run ID at once and must poll for the result; tell its owners how, and what a failed run looks like. A blocking subscription holds the VCF Automation request until the workflow ends (recipe 8.5), so keep that workflow short and hand long work to an asynchronous call (recipe 3.8).
How it works
Northbound: someone else is in charge. When another system calls Orchestrator, it decides when work starts, with what data, and often what happens with the result. Your workflow must validate what it receives, because it can’t trust the caller to, and it must fail with a message the caller can show to a person.
Southbound: you’re in charge, and responsible. When Orchestrator calls out, it decides the timing and the load, and it owns the retries and the clean-up when a call half-succeeds. Most of the error handling in a solution lives on this side.
Sever the caller early. The guide’s advice is to cut the link to the calling product as early as possible and pass plain objects from then on. A workflow that reads VCF Automation custom properties in every element can only ever be run by VCF Automation. A workflow that receives vmName and ticketId can be run by VCF Automation, a ticket tool, the REST API, the scheduler, and your test workflow (recipe 9.6), without change.
Abstracting old systems. One pattern from the guide is still common: wrap an old system that has no proper API in a set of Orchestrator workflows, with input checks, error handling and a limit on concurrent calls, and let other systems call those workflows through the Orchestrator REST API. Orchestrator becomes that system’s API.
See also
- 7.2 Starting workflows from scripts, for a northbound REST call.
- 8.5 Extensibility subscriptions in VCF Automation.
- 7.5 Locks, to limit concurrent calls to a fragile system.
- VMware: vRealize Orchestrator Coding Design Guide, technical white paper, March 2016 (section Third-party Integrations).
