tdlib / td

Cross-platform library for building Telegram clients
https://core.telegram.org/tdlib
Boost Software License 1.0
7.11k stars 1.44k forks source link

Need to have external session storage for stateless services in kubernetes #2560

Closed Bugathur closed 1 year ago

Bugathur commented 1 year ago

Right now there is only a SQLite support that can't be used in stateless clustered services in kubernetes, as there is no mounted persistant volume and also there several instances of same pods are running, so we need to share DB across several pods. So we need to have cloud native storage for data (PostgreSQL or anything else) and S3 for file storages.

I tried to find any solution and found this old request https://github.com/tdlib/td/issues/225 Provided solution is applicable only for monoliths or statefull services without cluster support.

levlam commented 1 year ago

This is not possible. Telegram apps can't be stateless, because this would be extremely ineffective.