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

Consider alternative strategies for journey-matcher #166

Open
haphut opened this issue Dec 8, 2022 · 0 comments
Open

Consider alternative strategies for journey-matcher #166

haphut opened this issue Dec 8, 2022 · 0 comments

Comments

@haphut
Copy link
Contributor

haphut commented Dec 8, 2022

The APC messages are sent into one topic and the VP messages into one topic per GTFS Realtime data source, so currently per municipality.

There are several strategies of combining APC messages with VP messages, e.g.:

  1. Process messages on a first-come, first-served basis. Timestamps are not used. The order of the messages and thus the matching of the messages depends on when the message delivery from the Pulsar cluster to journey-matcher happens.

    If there's a surprising delay in APC messages so that they arrive after the match-triggering, stop-changing VP message and after its APC wait time, they are matched onto a later stop.

    If the journey-matcher is killed and many APC and VP messages become ready to be sent to the journey-matcher while it is restarted, the order of the AP and VP messages is not guaranteed. There might be mismatches.

  2. Matching by server-set event timestamp.

    How to handle messages arriving late due to network problems?

  3. Matching by on-vehicle APC device event timestamp.

    How to handle messages arriving late due to network problems?

@haphut haphut converted this from a draft issue Dec 8, 2022
@haphut haphut moved this from Shaping 🎨 to Backlog ⚖ in Waltti-APC board Dec 8, 2022
@haphut haphut changed the title Consider alternative strategies for journey matching Consider alternative strategies for journey-matcher Sep 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog
Development

No branches or pull requests

1 participant