I am currently developing a web application. This application requires a timer for logging hours and logging breaks of employees. Now, I am searching for a way that once the user hit the
start logging hour button
or
start break button
The time will run by itself or as a background process. My current approach is using the MySQL Event Scheduler as a background process.
This event scheduler will update the tables and also it will calculate the time, like how much over break the employee taken or if the employee is late when he hit the start logging hour button. This is done when the event scheduler will call the stored procedure which where the logic taken place. This will happen "Every SECONDS".
Now, my questions:
- Is this approach OK?
- Does MySQL Event can handle this kind of approach?
- What if there will be over a thousands employees logging in and breaking time? Does MySQL Event can handle the process?
One more thing.This application is currently develop using Laravel and VueJs. If you have good idea to implement this on Laravel or VueJS it will be also very helpful.