Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slow down station board and train position injectors #15

Open
galderz opened this issue Sep 29, 2017 · 0 comments
Open

Slow down station board and train position injectors #15

galderz opened this issue Sep 29, 2017 · 0 comments

Comments

@galderz
Copy link
Contributor

galderz commented Sep 29, 2017

Both sets of injectors should be improved to read the timestamps in each of the entries, and delay consumption until next timestamp.

e.g. station board

{"stop":{"station":{"id":"8500080","name":"Talhaus",..."timeStamp":1456761608798,..."@timestamp":"2016-02-29T16:00:11.418Z"}
...
{"stop":{"station":{"id":"8500081","name":"Altmarkt",..."timeStamp": 1456761611593,..."@timestamp":"2016-02-29T16:00:12.380Z"}

There's a difference of 2795ms between the two timestamps. We certainly don't want for users to wait precisely this time, but a a reduction of 4/5 times would provide a nice stable flow.

Similar timestamp information is available in the train position injector, so we should to coordinate them.

@galderz galderz removed the must do label Nov 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant