jeudi 9 avril 2020

Microservice for running cron job in spring boot application

Application design question here : I have a spring boot application and I am tasked with designing a cron job that will run every 1 hour, collect some data from our RDS database and send it to a shared redshift instance. Redshift instance is used by the mode analytics tool to extract some data and run some reports for the concerned people.
Question is : should I be writing a new microservice just for this job ? We don't want this to be a part of our application anymore because this task is kind of heavy and irrelevant to the actual application. But if I write a service for this it will be sitting idle when cron job is not running and wasting resources. Is lambda better for this ?

Aucun commentaire:

Enregistrer un commentaire