android10 / android10/Android-CleanArchitecture

Push events in the data layer to the presentation layer

Aberta
#66 20 comentários 0 reações 0 responsáveis Ver no GitHub
discussion question
Linguagem predominante
Java
Estrelas
15.5k
Forks
3.3k
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

What about update events in the data layer and how to notify about them the presentation layer? Let's suppose, that some third party service has updated some user data in the data base.

Is event bus approach good for that?
For example, we will define some event class in the domain layer: UserUpdatedEvent. Some presenter in the presentation can subscribe/unsubscribe for this event on the event bus. Data layer can post the UserUpdatedEvent on event bus ...

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.