M
M
Mark2017-05-02 09:55:13
MySQL
Mark, 2017-05-02 09:55:13

Is it possible in node.js to create a condition dependent on changes in MySQL?

Hello.
For some reason, I am always ashamed to ask questions, because if I could not google the answer to this question, then apparently you should not engage in such activities.
But it seems I need the opinion of someone who knows the subject better than me.
Task:
1. In node.js, respond to adding a row to a table (mysql) (web).
2. When adding n rows (for example 10), perform a series of actions (open the application under windows and perform operations using the data from the table).
3. After completing the steps, remove the rows from the table and start the loop again.
Solutions:
1. Check the number of lines with a timer, perform actions, delete lines, and so on in a circle.
2. I was offered to use Socket.io (but I don’t know in which direction to study)
3. Maybe there are other solutions?
What is a smart approach to a task?
I saw similar questions on the toaster, but did not see the final answers.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dimonchik, 2017-05-02
@day90

stackoverflow.com/questions/1467369/invoking-a-php...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question