Qeasy "Delete 3-Month Queue" Strategy: WebAPI-Based Queue Cleanup for the Integration Platform
What This Strategy Solves
In supply-chain integration scenarios, the Qeasy data integration platform itself caches large volumes of API request queues, response receipts, and intermediate process data. When run for a long time, queues older than three months pile up — slowing queries and potentially exhausting storage. In one real project, the customer complained that "the platform backend has been getting slower lately." Investigation revealed that inventory sync receipts from three months ago were still sitting in a single table with tens of millions of rows.
The single purpose of this strategy is: periodically purge queues and historical data older than three months inside the Qeasy platform itself, keeping the integration platform "light." It is not a sync strategy but an internal system-maintenance cleanup strategy — easily overlooked, but guaranteed to cause problems if missing.
Data Flow and Field Mapping
This strategy has a special flow: both source and target point to the internal Qeasy platform — it is essentially a "platform self-maintenance" action.
Source call: DeleteExceptData (WebAPI, POST, effect QUERY), used to retrieve queue data older than three months. The request body filters by target domain through an object target_1 (Real-time Inventory) with is_required=true; to clean multiple domains, append target_2, target_3, and so on.
Target call: Write Empty Operation (WebAPI, POST, effect EXECUTE), which performs no business write — only acts as a placeholder to avoid the strategy chain running into nothing.
| Role | Field | Type | Required | Description |
|---|---|---|---|---|
| Source request | target_1 | object | Yes | Domain to clean, e.g. Real-time Inventory |
| Source response | datetime | string | No | Server-side receipt timestamp |
| Source response | params | string | No | Cleanup parameters echo |
| Target request | — | — | — | Empty operation, no parameters |
How to Configure on Qeasy
On the Qeasy data integration platform, there are four key configuration points for this strategy:
- API metadata selection. For the source, choose
DeleteExceptData, settypetoWebAPI,effecttoQUERY. For the target, chooseWrite Empty Operation,effecttoEXECUTE. KeepidCheck=trueon both ends to avoid accidental deletion. - Filter objects. In the source
requestarray, add objects whoselabelis the business domain to clean (e.g. "Real-time Inventory"), and note indescribe: "To delete multiple, customize target_2 and additional objects." A single configuration can cover multiple domains — this is where centralized encoding-mapping management really shines: all domains to clean are listed in one place, making future additions and removals obvious at a glance. - Response auto-fill. Set the source's
autoFillResponsetotrue; the platform will automatically populatedatetimeandparams, making it easy to trace later "when was it cleaned, and which domains." - Empty target operation. Leave the target's
requestarray empty. This is Qeasy's common "placeholder node" pattern: it makes the strategy look complete in the schedule graph without writing to any business database.
Implementation Steps
On customer sites we typically follow three steps:
- Step 1 — Incremental starting point (strategy go-live). Manually trigger once to clear all historical queues older than three months. The classic pitfall here is "missing
is_required=true, then the schedule reports missing parameters." The safe approach is to run a smoke test withtarget_1before go-live. - Step 2 — Full-volume trigger (verification). Execute manually two or three times, confirm that
datetimereceipts are normal andparamscontains no abnormal JSON, then hand it over to the scheduler. - Step 3 — Scheduling frequency (daily operation). Set the source schedule to
20 7 * * *(07:20 daily), the target to23 2 * * *(02:23 daily). Stagger the two times — the header/body staged approach here means "query first, clean after," avoiding the mid-state caused by querying while deleting.
Pitfalls Recap
- Don't treat it as a business sync strategy. Its
flow_directionisINTERNAL, not a flow from YiKuaibao to Kingdee Cloud Cosmos. Newcomers often "can't find it" in the strategy list, leaving it unmanaged for three months. - Wrong filter object leads to accidental cleanup. If
target_1is mistakenly set to an in-use business domain instead of a historical queue domain, it could wipe out the recent three months of data. We handled a real incident: the customer mistakenly passed "Real-time Inventory" to the production domain. FortunatelyidCheck=trueblocked the secondary write, but it took an entire day to troubleshoot. - Don't overlap scheduling with business peaks. Source 07:20 is the window before business starts, target 02:23 is the low-traffic early morning — both intentional. Moving them to 09:00 or 14:00 will clash with forward and reverse syncs.
- Empty operation is not really useless. The target's "Write Empty Operation" looks redundant, but it is actually the "anchor" of the schedule chain. Removing it turns the strategy into a "no-exit node," and the platform will refuse to save it.
- Keep audit fields. The two receipt fields
datetimeandparamslook redundant but are essential during compliance review. We recommend building a simple archive table on Qeasy that persists daily receipts for 180 days.
When It Applies — and When It Doesn't
Applies: Supply-chain integration scenarios between YiKuaibao and Kingdee Cloud Cosmos with high daily queue volume and fast-growing platform cache; any project that needs to clean Qeasy internal queues by domain and period.
Does not apply: Business data archiving (should use the business database's own archiving); scenarios with strict real-time requirements that cannot tolerate "stale data existing outside the timed window"; and industries where queue retention periods are compliance-driven and cannot simply be cut off at three months.