Skip to content

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

Open
@arduanov

Description

@arduanov

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions