Class StartDataFeedProcessExecutionRequest

java.lang.Object
com.broadleafcommerce.datafeed.messaging.payload.StartDataFeedProcessExecutionRequest
All Implemented Interfaces:
Serializable

public class StartDataFeedProcessExecutionRequest extends Object implements Serializable
When a DataFeedProcessExecution is marked DefaultDataFeedExecutionStatuses.REQUESTED, this message should simultaneously be emitted for it.

This represents a request to actually start running the execution and processing data for it.

The expectation is for the data feed microservice itself to publish and consume these messages. By separating the 'request' and 'run' phases of an execution via this messaging process, we ensure the (lengthy) run step can happen in the background rather than tying up a request thread. Furthermore, it opens up the possibility of better load-balancing across instances of data feed services depending on message consumer configuration - the node emitting the StartDataFeedProcessExecutionRequest does not have to be the one to actually consume and process it.

See Also: