Hey, it depends to some extent what this realtime task involves. Prefect <= 1.0 currently has a lowest scheduling frequency of 1 minute so if this satisfies your realtime requirements, you can absolutely do that in Prefect.
If you need more info,
this post discusses real-time use cases in Orion and
this post shows a hack so that you can get subminute execution in minutely batch jobs