Giter VIP home page Giter VIP logo

Comments (3)

3nprob avatar 3nprob commented on May 14, 2024

So I guess this warrants a Config.ts to the frontend.

It would be extra nice if his can be a runtime config and changed without editing a separate file and rebuilding, though.

I see three options for that:

  1. Configure using env vars: Read config.json values from a static URL. Add config.json.template to /etc/nginx/templates/ in Docker build and let nginx serve it from the envsusbst target.
  2. Configure using env vars: Use sub_filter in nginx to replace some magic strings with the values.
  3. Configure using file: Read config.json values from a static URL. Serve it from file like already done with bbox.txt.

I would go for 1 or 3.

from headway.

bwoodcock avatar bwoodcock commented on May 14, 2024

This is a really naive question, for which I apologize, but would it be feasible to have this be a run-time loadable module? Such that if a person didn't often use transit, but did once in a while, the transit module could be loaded (at, presumably, considerable one-time expense), and then flushed after some period (a couple of hours?) of inactivity, or when more pressing needs for that memory arose? From a social-responsibility perspective, having instances which are never able to supply transit directions, and thus make transit directions unpredictably available, would be a disincentive to transit use, which would be a bad thing.

from headway.

ellenhp avatar ellenhp commented on May 14, 2024

Not naive! The issue with that is building the OpenTripPlanner index requires a one-time cost in latency that's completely unacceptable for an end-user, and moveover the machine running the stack might not be able to spare the RAM to build the graph or run OTP.

from headway.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.