tarantool / queue

Create task queues, add and take jobs, monitor failed tasks
Other
234 stars 52 forks source link

Unnecessary session creation for connection that is not for queue #220

Open arduanov opened 8 months ago

arduanov commented 8 months ago

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.