Live feed API status

Secured
#1
The live feed API is still in incubation stage but especially the live event export feature from factomd is functional. Work is being done in a fork branch:
https://github.com/bi-foundation/factomd/tree/FD-1150_live_api_20190910
('ve tagged it because we're still working on that branch)

The next task is to implement a replay feature so a specific range of blocks can be requested using a REST endpoint.

We are also working on a second layer which is basically a subscription/filter API. It is designed to run close to factomd and consumes of the event data, filters it & routes the desired events to the subscribed systems.
https://github.com/bi-foundation/live-feed-api

We have created a protobuf interface between the two, I've uploaded an example project that only dumps the live feed events from the factomd node (1st layer) to console:
https://github.com/bi-foundation/factomd-sample-event-consumer/tree/FD-1150_20190910

For factomd there is a new section in the conf file:
Code:
[LiveFeedAPI]
EnableLiveFeedAPI                     = false
EventReceiverProtocol                 = tcp
EventReceiverAddress                  = 127.0.0.1
EventReceiverPort                     = 8040
EventFormat                           = protobuf   (protobuf or json)
MuteReplayDuringStartup               = false      (Mute replay during startup)
ResendRegistrationsOnStateChange      = false      (Resend the entire registration record for each state change rather than just a StateChange event)
ContentFilterMode                     = SendOnRegistration
        (Settings for including content in the event messages SendAlways|SendOnRegistration|SendNever; default SendOnce)
We will provide examples consumer asap.
 
Last edited: