# Java concurrent queue for tag change scripts

**URL:** <https://forum.inductiveautomation.com/t/java-concurrent-queue-for-tag-change-scripts/82044>\
**Category:** Ignition\
**Created:** [November 17, 2023, 1:53pm UTC](https://forum.inductiveautomation.com/t/java-concurrent-queue-for-tag-change-scripts/82044 "2023-11-17T13:53:19Z")\
**Posts on this page:** 1\
**Showing post:** 61

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [December 10, 2024, 1:41pm UTC](https://forum.inductiveautomation.com/t/java-concurrent-queue-for-tag-change-scripts/82044/61 "2024-12-10T13:41:38Z")

</div>

Did you read the linked topic in the first post?

Some more about this:

> [@Best practices and pitfalls with Tag Event Scrips](https://forum.inductiveautomation.com/t/best-practices-and-pitfalls-with-tag-event-scrips/99355):
>
> In summary, my question is: What is best practices, and what to avoid when writing Tag Event Scripts? Background and more details regarding question: From what I have read, the Tag Event Scripts are running in fixed size thread pool (default 3 threads). This would mean that if you have multiple Tag Event Scripts that does slow/blocking operations, it could block any other tag event scripts from running. This would presumably mean that running e.g. network calls like OPC calls, or other poten…

`system.util.invokeAsynchronous()` is a very heavy-weight tool and should not be used where you could make hundreds or thousands of threads.

---

_[View the full topic](https://forum.inductiveautomation.com/t/java-concurrent-queue-for-tag-change-scripts/82044)._
