Open baron-chiu opened 4 years ago
Not sure it's a good idea, but I like it. It will decouple the punching logic and scheduler. There also a benifit to eliminate the punching machine to only one instance.
https://en.wikipedia.org/wiki/Event-driven_architecture
Is event-driven design a good architecture for punching machine? Worth of the refactoring? What do you think, @kwhsiung ?
Not sure it's a good idea, but I like it. It will decouple the punching logic and scheduler. There also a benifit to eliminate the punching machine to only one instance.
https://en.wikipedia.org/wiki/Event-driven_architecture