I have the following scenario:
- Kick off Lagom Process 1, that eventually saves something to the database via read side processor.
- As soon as that happens, I want to execute Lagom Process 2 which queries the database, and the data from process 1 needs to be there since it depends on it.
Now, if I understand correctly, there is no guarantee, when the data from process 1 will be written, so I cannot hardcode a constant delay between the two processes.
What is the best way to deal with this?