Skip to content

Startup time can be significantly slow when a large number of Telegram puppets are configured #697

@Half-Shot

Description

@Half-Shot

Related to #316

The bridge will await all connections to telegram on startup which means for a bridge handling several hundred connections, this can take minutes. Ideally, this would happen after startup in the background so as not to impact traffic. I'd probably suggest a model similar to the IRC bridge.

  • The bridge should start a background task to connect all users on startup.
  • The bridge does not await this task and starts up.
  • When a Matrix user talks, that connection (if not connected), should be bumped in the queue to allow the message to be bridged (albeit delayed).
  • Eventually all the connections will have completed, this may take some time because the bridge still needs to connect everyone to Telegram, but critically it shouldn't block the bridge handling chats.

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