tarantool / tarantool-python

Python client library for Tarantool
https://www.tarantool.io
BSD 2-Clause "Simplified" License
101 stars 46 forks source link

Support watchers (subscription to server events) #309

Open DifferentialOrange opened 1 year ago

DifferentialOrange commented 1 year ago

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 commented 1 year ago

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