tarantool / tarantool-python

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

Support watchers (subscription to server events) #309

Open DifferentialOrange opened 10 months ago

DifferentialOrange commented 10 months 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 10 months ago

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