# Handling Delays When Syncing Ignition Gateway Data with SAP via REST API

**URL:** <https://forum.inductiveautomation.com/t/handling-delays-when-syncing-ignition-gateway-data-with-sap-via-rest-api/111813>\
**Category:** General Discussion\
**Created:** [October 30, 2025, 9:16am UTC](https://forum.inductiveautomation.com/t/handling-delays-when-syncing-ignition-gateway-data-with-sap-via-rest-api/111813 "2025-10-30T09:16:55Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![David\_Stone](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/david_stone/32/79749_2.png) [@David\_Stone](https://forum.inductiveautomation.com/u/David_Stone)\
**Post date:** [October 31, 2025, 5:21am UTC](https://forum.inductiveautomation.com/t/handling-delays-when-syncing-ignition-gateway-data-with-sap-via-rest-api/111813/4 "2025-10-31T05:21:55Z")

</div>

> [@britanneywiley](#):
>
> tag event scripts

> [@Best practices and pitfalls with Tag Event Scrips](https://forum.inductiveautomation.com/t/best-practices-and-pitfalls-with-tag-event-scrips/99355/2):
>
> I use system.util.invokeAsynchronous() extensively in tag change scripts, as we were running into performance issues. The pitfalls Kevin mentioned about the guaranteed order of events does not apply to my use case. Your example may be massive improved if refactored with the new reading functions to only read (blocking) and write (async) once. Pseudo-code: val = currentValue.value readlist = [] for i in range(1, 33): packPath = str(tagPath).replace("Battery/inNumberOfPacks","Pa…

---

_[View the full topic](https://forum.inductiveautomation.com/t/handling-delays-when-syncing-ignition-gateway-data-with-sap-via-rest-api/111813)._
