AO-StreetArt / Adrestia

Aesel Gateway Service
Apache License 2.0
0 stars 1 forks source link

Scene Deletion Flow #72

Open AO-StreetArt opened 6 years ago

AO-StreetArt commented 6 years ago

When a Scene Deletion message (https://crazyivan.readthedocs.io/en/v2/pages/Scene_API.html#scene-deletion) is routed, the PersistenceFilter.java class should also activate to perform the following logic:

  1. Remove any SceneLocation entries stored in Mongo associated to the Scene (by calling the SceneLocationRepository.java class)
  2. Call the Cache Remove API for all instances of Crazy Ivan (https://crazyivan.readthedocs.io/en/v2/pages/Cache_API.html#cache-remove) which are in a cluster associated to the Scene. These associations can be taken from the entries removed in step 1.