gbfs icon indicating copy to clipboard operation
gbfs copied to clipboard

Improve performance: Push for the usage of ETag/If-None-Match

Open tdelmas opened this issue 1 year ago • 9 comments

What is the issue and why is it an issue?

In order to reduce the load both on producers and consumers, caching mechanisms could be improved.

Please describe some potential solutions you have considered (even if they aren’t related to GBFS).

Following the discussion during the International Mobility Data Summit (https://github.com/MobilityData/gbfs/discussions/703), I would like to suggest this addition to the specification in the "File Distribution" section:

Is your potential solution a breaking change?

  • [ ] Yes
  • [X] No
  • [ ] Unsure

tdelmas avatar Nov 26 '24 13:11 tdelmas

Hi @tdelmas . Always a good idea to reduce load.

I think it's related to this topic: #630 Which addresses the issue of both load and latency but with a complete different mechanism. As long as there is no activity in the regard of #630 I think your suggestion is a nice step in between.

matt-wirtz avatar Jan 23 '25 09:01 matt-wirtz

This discussion has been automatically marked as stale because it has not had recent activity. It will be closed in 30 days if no further activity occurs. Thank you for your contributions.

mobilitydataio avatar Mar 25 '25 04:03 mobilitydataio

https://github.com/MobilityData/gbfs/issues/630#issuecomment-2625476342

We are positive to incremental improvements and are looking into https://github.com/MobilityData/gbfs/issues/708 as a stepping stone.

@testower how is your progress on that as a producer?

tdelmas avatar Mar 25 '25 08:03 tdelmas

Unfortunately no progress yet @tdelmas but it's on the horizon :)

testower avatar Mar 25 '25 10:03 testower

This discussion has been automatically marked as stale because it has not had recent activity. It will be closed in 30 days if no further activity occurs. Thank you for your contributions.

mobilitydataio avatar May 25 '25 04:05 mobilitydataio

This discussion has been closed due to inactivity. Discussions can always be reopened after they have been closed.

mobilitydataio avatar Jun 24 '25 04:06 mobilitydataio

Reopening this issue now what we have an example case from @testower. I would like add the language proposed above to the "File Distribution" section. Question: Is the above adequate to cover this topic. Anything that should be added, modified, removed?

CC: @tdelmas

mplsmitch avatar Nov 24 '25 19:11 mplsmitch

@davidgamez Please can you re-open this issue?

tdelmas avatar Nov 27 '25 11:11 tdelmas

Implementing this between OpenTripPlanner (client) and entur/lamassu aggregator (server), we observe that around 90% of requests are handled with 304 Not Modified response.

testower avatar Nov 27 '25 11:11 testower