Bulk updates from UI

(puneet) #1

we are showing data of an Aggregate from a Read Model. Now when user do a bulk operation on the UI, eg: update a field on lets say 5 Entity from one request.

Now when i will update all the Entities, as UI is from read side which will take time to refresh,

what is the pattern is should use here to make the UI immediately consistent

(Alan Klikic) #2

We use this patterns (depending on the needed constancy):

  • on change actions return data representation from the write side (if read and write side have the same schema) and update the UI
  • after change actions return done display in UI “change action done” window where customer needs to press ok and after then reload from read side (hoping
    read view will be consistant :))
  • use web sockets to comminicate when read side is updated