java - Building a software that listens to database changes and calls up other methods. Am I doing right architecture? -


i 2 months old software engineer. have got software piece rewritten in java. have no experience in writing industry standard code or designing applications according standards. so, chance me that!

this requirement-i need write program listens mysql database new entries. if number of new entries reach threshold, listener should call class pull data database , operations on data.

i read design patterns in java , came know observer pattern. think can go ahead or can write piece of code listening , don't care patterns.

please let me know inputs. understand experience has lot in space.

thanks

using design pattern better design approach if intent correctly matched. i.e. if design pattern used right intent. helps achieve design goal of decoupling.

observer pattern used implement distributed event handling systems. observer pattern key part in familiar model–view–controller (mvc) architectural pattern.

looks perfect fit me problem.


Comments

Popular posts from this blog

php - Submit Form Data without Reloading page -

linux - Rails running on virtual machine in Windows -

php - $params->set Array between square bracket -