Hi Miraj, I also agree with Godwin's idea and +1 for the 2nd option.
Thanks and Regards, Menaka On Thu, Jan 18, 2018 at 7:32 PM, Godwin Shrimal <[email protected]> wrote: > Hi Miraj, > > If the microservice only perform this particular task (periodically call > the resource) I think it's useless to keep running a JVM and I am +1 for > your second option. > > > Thanks > Godwin > > On Thu, Jan 18, 2018 at 2:58 PM, Miraj Abeysekara <[email protected]> wrote: > >> Hi all, >> >> I want to check for a response from 3rd party service to determine the >> availability of a user in that system and send an email notification once >> that user is available. >> >> I am planning to develop a microservice for the above requirement which >> periodically calls to that 3rd party service. This can be achieved by, >> >> 1. Running a timer inside the microservice which calls to the 3rd >> party service or >> 2. Running an external cron task which calls a resource in my >> microservice. >> >> What would be the good approach to use? >> >> Thank you and regards, >> Miraj >> >> -- >> *Miraj Abeysekara* >> Software Engineer >> WSO2, Inc. >> >> Mobile : +94775690822 <+94%2077%20569%200822> >> Twitter : https://twitter.com/miragecreator >> <http://wso2.com/signature> >> >> _______________________________________________ >> Dev mailing list >> [email protected] >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > *Godwin Amila Shrimal* > Associate Technical Lead > WSO2 Inc.; http://wso2.com > lean.enterprise.middleware > > mobile: *+94772264165* > linkedin: *https://www.linkedin.com/in/godwin-amila-2ba26844/ > <https://www.linkedin.com/in/godwin-amila-2ba26844/>* > twitter: https://twitter.com/godwinamila > <http://wso2.com/signature> > > _______________________________________________ > Dev mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- *Menaka Jayawardena* *Software Engineer - WSO2 Inc* *Tel : 071 350 5470* *LinkedIn: https://lk.linkedin.com/in/menakajayawardena <https://lk.linkedin.com/in/menakajayawardena>* *Blog: https://menakamadushanka.wordpress.com/ <https://menakamadushanka.wordpress.com/>*
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
