tarantool-python icon indicating copy to clipboard operation
tarantool-python copied to clipboard

Support watchers (subscription to server events)

Open DifferentialOrange opened this issue 2 years ago • 1 comments

See Tarantool server events documentation for more info. See go-tarantool patch for reference implementation.

Watchers are expected to cover cases which are covered by box.session.push now. Since the latter is planned to be removed, we need to introduce a proper replacement first.

It is a design question how to introduce asynchronous mechanism to a synchronous connector. One way is to use threads like in connection pool health check.

DifferentialOrange avatar Sep 12 '23 14:09 DifferentialOrange

As a follow-up, we need to consider supporting graceful shutdown event.

DifferentialOrange avatar Sep 12 '23 14:09 DifferentialOrange