A developer needs ESQL data to be cached in memory so that it survives for the life of the message flow and is shared by all of the threads that run the flow. Which keyword on the DECLARE statement creates this type of variable?
Long-lived variables are created by using the SHARED keyword on the DECLARE statement. They are visible to multiple messages passing through a flow, are shared between threads, and exist for the life of the message flow, that is, the time between configuration changes to the flow. Access is much faster than from a database, but at the expense of shorter persistence and no transactionality. When several changes must be made to a shared variable and other instances must not see intermediate states, use the BEGIN ATOMIC construct. EXTERNAL defines a user-defined property that is set at deployment, CONSTANT defines a value that cannot change, and NAMESPACE declares a namespace constant.
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit