So, I'm considering downloading and archiving some realtime location and alert f...

@moof@cupoftea.social

So, I'm considering downloading and archiving some realtime location and alert feeds for renfe, in order to use them for later analysis.

I imagine there will be a lot of duplicate data here, either because trains don’t move when in stations, or because the actual alert information is generally not changing every few seconds, even if the feed updates every 20 seconds.

I'm considering throwing the files to a Hetzner object storage to have them for later perusal and analysis, separating ETL from download, but I am wondering if I'm better off sticking this directly in a postgres database.

The format is mostly JSON (all the protobuf versions have JSON equivalents) and there's a significant amount of foreign key references to the GTFS.

Does anyone have any better ideas on the best way to handle this stream of data?

Part of the reason I'm wondering is that I'm not 100% sure what I want to do with it yet, but I'd rather have the data to play with and see what I can do with it.