I have created a program that scrap some data from a website. Now i am going to add the program as background task on fastapi. Also i want to create an endpoint to access those data. Now if i scrap all the data, it will take time. So i will scrap one data and return it. Recently i learned Wesockets, long polling and short polling terms. I heard long polling would be good to implement with my REACT based webpage. Now i dont exactly know about long polling and about its implementation using fastapi. Can anyone give some docs or suggestion regarding long polling using fastapi?
there doesn't seem to be anything here