1

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

j2emanue
  • 60,549
  • 65
  • 286
  • 456
  • What do you mean same hole? It seems to still be supported, but just like Otto that could change tomorrow. – DeeV Oct 25 '16 at 19:43
  • Why don't you want to use Rx? There's [LocalBroadcastManager](https://developer.android.com/reference/android/support/v4/content/LocalBroadcastManager.html), but it's even more trouble to use it. – tynn Oct 25 '16 at 19:49
  • You can use whatever you want, or follow [a guide on RxJava event buses](https://lorentzos.com/rxjava-as-event-bus-the-right-way-10a36bdd49ba). This sort of question is generally prohibited since it's opinion-based. Try an approach, then come back here and ask a technical question if you run into issues. – jyanks Oct 26 '16 at 18:10

1 Answers1

2

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

jyanks
  • 2,356
  • 1
  • 19
  • 36