How to access the PushPort

80 views
Skip to first unread message

Ben Short

unread,
Apr 13, 2018, 5:59:57 AM4/13/18
to A gathering place for the Open Rail Data community
Hi,

In another thread someone was talking about executing the following steps to start up their application...

Load ..._v8.xml.gz
Load snapshot/...xml.gz
Load pPortLog.*.log
And then start consuming the queue

Someone else then mentioned that you can request a sync via the PushPort and after processing that you then ask to start up dates.

Is there any benefit in using the PushPort method over the FTP site + STOMP queue?

I'm a little confused how to access the PushPort. Do I need to register somewhere?

Regards

Ben

Allan Blundell

unread,
Apr 13, 2018, 6:10:29 AM4/13/18
to A gathering place for the Open Rail Data community
Hello Ben,

STOMP and PushPort are the same thing.

The sync functionality as far as i know isn't supported in the open data platform, not yet anyways.

As long you are registered at datafeeds.nationalrail.co.uk, you will have a queue id to connect to the PushPort with a STOMP client. 

Allan

Allan Blundell

unread,
Apr 13, 2018, 6:12:42 AM4/13/18
to A gathering place for the Open Rail Data community
Sorry let me rephrase the first line.

PushPort is a service which you can connect via STOMP. 

Ben Short

unread,
Apr 13, 2018, 6:25:47 AM4/13/18
to A gathering place for the Open Rail Data community
OK. I'ts becoming clearer now.

Thanks

Ben Short

unread,
Apr 13, 2018, 6:33:39 AM4/13/18
to A gathering place for the Open Rail Data community
Do you happen to know if the file in the snapshot directory can be ignored? Does it contain things that are duplicated in the pPortLog.*.log files?


On Friday, 13 April 2018 11:12:42 UTC+1, Allan Blundell wrote:

Allan Blundell

unread,
Apr 13, 2018, 6:45:39 AM4/13/18
to A gathering place for the Open Rail Data community
You can, it's useful after outages . But you could get the same state with using the timetable and logs. its a choice if you want to load the timetable or snapshot or even both to be safe. 

Again it depends on if you already saved data from the previous day/timetable.

Normally the snapshot contains the state of the database when the server has processed the new timetable data. The snapshot contains data on trains currently running, as well as the new timetable. This helps with a fresh start e.g. blank slate.

Allan
Reply all
Reply to author
Forward
0 new messages