OneBusAway / onebusaway-gtfs-realtime-exporter

A Java library to help in implementing GTFS-realtime data sources.
https://github.com/OneBusAway/onebusaway-gtfs-realtime-exporter/wiki
Other
17 stars 12 forks source link

optionally support caching & compression #13

Open derhuerst opened 2 years ago

derhuerst commented 2 years ago

What applies to gtfs-realtime-validator (client) also applies to this project (server). From https://github.com/CUTR-at-USF/gtfs-realtime-validator/issues/124:

We should be sure to look at the following, which will optimize the fetching of feeds (both GTFS and GTFS-realtime):

I run a medium-sized GTFS-Realtime feed (usually 100-300 TripUpdates & 100-300 VehiclePositions). I just checked, gzipping (with the default level) brought the feed's size down from 246kb to 50kb.

derhuerst commented 8 months ago

In case someone is interested in a JavaScript/Node.js implementation: I have implemented the headers mentioned above as part of another project, using serve-buffer.