What if we create a third component like a mediator (updateService, responsible for reading and writing to db through A, get information from B), that is able to encapsulate the direct interaction between A and B?