Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Push notification from MYSQL

I am having my database created in MYSQL and a WebSocket application(Autobahn Wamp WebSocket v1) created in Python. I have an application which makes entries in my database.

My requirement is that I need to create a trigger in MYSQL which would notify my Python WebSocket application(Autobahn Wamp WebSocket v1) when data gets inserted in my database.

I would like to know whether it is possible to achieve the above mentioned functionality or not, and if yes how?

Thanks in advance.

like image 760
Gaurang Avatar asked May 10 '26 07:05

Gaurang


1 Answers

The python-mysql-replication project maybe interesting. It allows you to receive event like insert, update, delete with their datas from your application

like image 150
Miguel Prz Avatar answered May 11 '26 20:05

Miguel Prz