A source switch changes one route and nothing else

Table of Contents

1. Summary

A party changes its source by changing one route. The service writes an audited, effective-dated change, sends new demand sets to the two adapters, and closes and opens the metering intervals. The party's series, its mapping and its consumers do not change.

2. Detail

market_data_source_switch.png

Figure 1: Switching a party from the simulated source to the live source.

Source: market_data_source_switch.puml. Regenerate with plantuml -tpng doc/knowledge/architecture/market_data_source_switch.puml.

2.1. The steps

  1. The party administrator writes a new route with an effective date and a reason.
  2. The service checks the subscription, the rights and the state of the new source.
  3. The service closes the old metering interval and opens the new one.
  4. The service sends the old adapter a demand set without the party's ids and the new adapter a demand set with them.
  5. Ticks of the new source reach the same series. Each observation records its source.

2.2. What does not change

  • The series key (item, provider, party).
  • The mapping.
  • Every consumer.

2.3. What a reader sees

The series page shows the source of each value. The history of the route shows who changed it, when and why. Prices from the two sources can differ at the switch. That is a market fact.

3. See also

Emacs 29.3 (Org mode 9.6.15)