Search code examples
androidevent-busotto

what to use or how best to convert otto event bus (now that otto is deprecated)?


on Square's github i found the following statement:

Deprecated!

This project is deprecated in favor of RxJava and RxAndroid. These projects permit the same event-driven programming model as Otto, but they’re more capable and offer better control of threading.

If you’re looking for guidance on migrating from Otto to Rx, this post is a good start.

I have a legacy project using otto and im worried about the future of the project now. Does android have anything built in i can use as an event bus ? Do you think event bus would be a good one to swap otto with or are they in the same hole ? classic alternative is the observer pattern but otto is just way more clean.

Some alternatives:

Event Bus with RxJava

Mediator pattern

Event Aggregator

The state of event bus today

RxBus


Solution

  • Green Robot Event Bus is good and it will also be easy to migrate from otto.