I’m still using "optimisations_use_async_session_write": false due to a JSVM plugin of ours that is manually doing calls to TykGetKeyData,TykMakeHttpRequest, TykSetKeyData
Originally in development back in the pre 2.5 days this was set to optimisations_use_async_session_write: true but we experienced session lookup misses when in fact the session was there (some race condition) described in this thread
Is the use of "optimisations_use_async_session_write": false still necessary for this scenario post 2.6+?
Not totally following, how do I make TykSetKeyData behave synchronously, beyond setting optimisations_use_async_session_write? I was under the assumption it was already writing in band given that setting.
The original reason we set this is that we are managing the session ourself, then telling tyk via a custom header which key to leverage in its auth plugin. (we create the session key) This was leading to some sort of race condition by which the tyk auth plugin was not seeing the updated key.
Would love to be able to get rid of this (full sync) because I think its affecting performance in some instances.