Class TrajectoryDefinition

java.lang.Object
org.chenile.core.model.TrajectoryDefinition

public class TrajectoryDefinition extends Object
The trajectory definition details. Trajectories allow experimentation. They may also serve other purposes like overriding services for certain geographies, tenants etc. These overrides customize the services for a specific set of users. Trajectories are highly modular. A new trajectory can be defined/used in a new module. Once the module is removed, the trajectory vanishes from Chenile!

A trajectory can also be an experimental (A-B test) path that provides selected users with alternate services. These paths may invoke experimental services. Loggers will log the trajectories. This will allow us to determine if the experimental services are more effective than the actual services.

Even health checks can be customized for a particular trajectory

  • Field Details

    • MAINSTREAM

      public static final String MAINSTREAM
      This is a special ID used for the MAINSTREAM requests. All requests, by default, belong to this unless specified otherwise.
      See Also:
    • id

      private String id
    • trajectoryOverrides

      private Map<String, TrajectoryOverride> trajectoryOverrides
      a map between the service name and the service reference to use for this trajectory. This effects only those services that are configured. Other services will stay unaffected.
    • attributes

      private Map<String,Object> attributes
      Trajectories can contain additional attributes that can be used by the Trajectory consumers in their own way. Chenile is opaque to how this is used but provides a way to store them here.
  • Constructor Details

    • TrajectoryDefinition

      public TrajectoryDefinition()
  • Method Details