# rengwuxian/RxJavaSamples

RxJava 2 和 Retrofit 结合使用的几个最常见使用方式举例

Repository: https://github.com/rengwuxian/RxJavaSamples
Canonical: https://ross.abutalabs.com/products/rxjavasamples
Language: Java
License Family: other
Last push: 2018-01-16T14:39:53+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3814, "days_push": 3151, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3907, forks 848 (observed 2026-08-28T04:08:28.800441+00:00)

## What it is
A sample Android application demonstrating common usage patterns of RxJava 2 combined with Retrofit for network requests. It includes runnable examples of map, zip, flatMap token flows, retryWhen token refresh, and BehaviorSubject caching.

## Use cases
- learn how to use RxJava 2 with Retrofit
- example of chaining token request with flatMap
- combine parallel API calls with zip
- auto-refresh expired tokens with retryWhen
- cache network responses with BehaviorSubject
- sample code for reactive Android networking

## When to choose
- you are learning RxJava 2 + Retrofit patterns on Android
- you want runnable example code for common reactive networking scenarios

## When to avoid
- you need a production-ready library
- you use RxJava 1 (see the 1.x branch) or Kotlin coroutines/Flow
- you need maintained or licensed code

## Facets
- artifact type: learning-resource
- maturity: abandoned
- function: http-client, developer-tools
- domain: developer-tools, tutorials, web-development, mobile-development
- platform: jvm
- tags: rxjava2, retrofit, sample-code, reactive-programming, android-app, chinese, android, mobile

## Member repositories
- rengwuxian/RxJavaSamples (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:28.800441+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:25:06.598276+00:00, confidence not recorded.
  - readme: https://github.com/rengwuxian/RxJavaSamples (fetched 2026-08-28T04:08:28.800441+00:00, sha 7b1bc130b967)
- Data as of 2026-08-30T08:39:29.467469+00:00.
