Qeasy Cloud
Get Started

Qeasy "Delete 3-Month Queue" Strategy: WebAPI-Based Queue Cleanup for the Integration Platform

· 冯潇· Integration Solutions· 29 views· 4 min read
易快报Kingdee Cloud轻易云轻易云Qeasy供应链集成WebAPI系统维护队列清理

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.

RoleFieldTypeRequiredDescription
Source requesttarget_1objectYesDomain to clean, e.g. Real-time Inventory
Source responsedatetimestringNoServer-side receipt timestamp
Source responseparamsstringNoCleanup 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:

  1. API metadata selection. For the source, choose DeleteExceptData, set type to WebAPI, effect to QUERY. For the target, choose Write Empty Operation, effect to EXECUTE. Keep idCheck=true on both ends to avoid accidental deletion.
  2. Filter objects. In the source request array, add objects whose label is the business domain to clean (e.g. "Real-time Inventory"), and note in describe: "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.
  3. Response auto-fill. Set the source's autoFillResponse to true; the platform will automatically populate datetime and params, making it easy to trace later "when was it cleaned, and which domains."
  4. Empty target operation. Leave the target's request array 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 with target_1 before go-live.
  • Step 2 — Full-volume trigger (verification). Execute manually two or three times, confirm that datetime receipts are normal and params contains 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 to 23 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

  1. Don't treat it as a business sync strategy. Its flow_direction is INTERNAL, 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.
  2. Wrong filter object leads to accidental cleanup. If target_1 is 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. Fortunately idCheck=true blocked the secondary write, but it took an entire day to troubleshoot.
  3. 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.
  4. 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.
  5. Keep audit fields. The two receipt fields datetime and params look 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.

Original content. Please credit the source when reposting: https://www.qeasy.cloud/insights/solutions/strat-pbcf081-kingdee-cloud-8397-nf466c343-16ad671a

Comments