queue
queue copied to clipboard
Unnecessary session creation for connection that is not for queue
The number of requests has increased significantly аfter installation of queue module. I use tarantool for data cache and when the client disconnects, the queue creates a new session and immediately delete it. It is not necessary.
I researched this and got that: the queue have event connection.on_disconnect
. It calls identify, which select session by connection id. It insert id in queue_session_ids and return session, which are deleted immediately on disconnect.