When a System Integration bus is created and the bus security is enabled, each time a message is published to or subscribed from a topicspace, a security check is performed to ensure the credibility of the user. This impacts the message processing time which is more prominent in scenarios involving large number of publishers and subscribers who are publishing/subscribing continuously. In order to process these messages faster, a custom property sib.security.userCacheTimeout is added at bus level. This value is an integer between 1 to 100 which indicates the number of seconds for which the user credentials are cached. After the timeout, the cache is updated again. This reduces the number of times the security check happens and thereby improves the performance in case of publish-subscribe topology.
Procedure to add sib.security.userCacheTimeout property:
1. via wsadmin (using jython)
me = AdminConfig.list("SIBus" )
AdminConfig.modify(me, [["properties", [[["name", "sib.security.userCacheTimeout"], ["value", 10]]]]] )
via Admin Console
Create a bus, say bus1 with security enabled.
Navigate to bus1 → Custom properties → New.
Enter name as sib.security.userCacheTimeout and value as any integer between 1 to 100.