Integration Design Guide#
Use these guidelines when designing long-running integrations.
Integration Cost Model#
Cheap Operations#
Reading fields or looking up IDs on objects and collections (children,
entries) you have already loaded makes no API calls.
Expensive Operations#
These operations make API calls:
First access to lazy collections such as
childrenandentries.Calling
refresh()and then reading the same objects again.Broad tree traversal or repeated full enumeration.
Direct calls through
user.api_getanduser.api_post.
Design Guidelines#
Store LabArchives IDs in your integration’s state. Use names and paths to find items and to display them.
Limit traversal to the subtree and depth you need, and scan only what changed.
Call
refresh()before reads that must include changes made by another user, the web UI, or another API session.After
refresh(), fetch child objects again from the parent before reading their fields.After failures, look up the parent by stored ID, then re-read the child by ID.
Suggested Reading Order#
Accessing Items with Index for duplicate-name and explicit lookup behavior.
Working with Paths for traversal and enumeration rules.
Clearing Cache for cache invalidation and stale-reference behavior.
Making Arbitrary API Calls for making raw API requests.