move the Windows service to a cloud-based solution in blue

I want to move a very old Windows service to blue but not well enough.

The service, as it is, rotates several threads and each thread consults a database every x minutes and then sends an email for each record returned by the db query.

Is a blue time-based function suitable as a replacement?

I know there is an application logic, but I am afraid of previous bad experience with workflow products such as Biztalk and Windows.

The logic of the application looks like another one of these horror stories of drag and drop failures.

I'm wrong?