Receiving events from PostgreSQL on a channel

I am working through a way to communicate changes in specific tables in
PostgreSQL to rust process through mpsc::channel. However, I couldn’t find
much on internet for the same. The architecture I am planning right now is

client process [receiving notifications from PostgreSQL]

server process [created channel for communication with client]

Could anyone please help me provide a basic example from where I can explore

And is tokio postgres suitable for the same?

1 Like