# bumptech/glide architecture

> Architecture diagram of the GitHub repository bumptech/glide, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-09). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/bumptech/glide
- Repository: https://github.com/bumptech/glide

## Overview

Glide is an Android media-loading framework. An app obtains a lifecycle-aware manager, builds a request for a model and display options, and starts it for a target; the engine coordinates retrieval, decoding, caching, and delivery. The repository also includes annotation-based API generation and optional network, media-format, UI, and caching integrations. The graph reflects README capabilities and the supplied excerpts/index; several internal runtime details and integration registrations were not sampled, so those connections are omitted or marked unverified.

Main entry points: [`library/src/main/java/com/bumptech/glide/Registry.java`](https://github.com/bumptech/glide/blob/master/library/src/main/java/com/bumptech/glide/Registry.java) (Load registry), [`library/src/main/java/com/bumptech/glide/load/engine/Engine.java`](https://github.com/bumptech/glide/blob/master/library/src/main/java/com/bumptech/glide/load/engine/Engine.java) (Load engine), [`library/src/main/java/com/bumptech/glide/RequestBuilder.java`](https://github.com/bumptech/glide/blob/master/library/src/main/java/com/bumptech/glide/RequestBuilder.java) (Request builder), [`library/src/main/java/com/bumptech/glide/Glide.java`](https://github.com/bumptech/glide/blob/master/library/src/main/java/com/bumptech/glide/Glide.java) (Glide entry)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_api["Request API"]
  node_glide["Glide entry<br/>[Glide.java]"]
  node_retriever["Manager retrieval"]
  node_manager["Request manager"]
  node_builder["Request builder"]
  node_target["Display target<br/>[Target.java]"]
end

subgraph group_runtime["Load Runtime"]
  node_engine["Load engine<br/>[Engine.java]"]
  node_registry["Load registry<br/>[Registry.java]"]
  node_models["Model loaders<br/>[ModelLoader.java]"]
  node_fetchers["Data fetchers<br/>[DataFetcher.java]"]
  node_decode["Decode pipeline<br/>[DecodeJob.java]"]
  node_resources["Resource codecs"]
  node_memory[("Memory cache<br/>[MemoryCache.java]")]
  node_disk[("Disk cache<br/>[DiskCache.java]")]
end

subgraph group_extensions["Generated API"]
  node_annotations["Glide annotations"]
  node_processor["Annotation processor"]
  node_generators["API generators"]
end

subgraph group_integrations["Optional Integrations"]
  node_http["HTTP integration"]
  node_okhttp["OkHttp adapter"]
  node_volley["Volley adapter"]
  node_cronet["Cronet adapter"]
  node_avif["AVIF decoder"]
  node_compose["Compose UI<br/>[GlideImage.kt]"]
  node_sqlcache[("Journaled disk cache")]
end

node_app(("Android app"))

node_app -->|"starts load"| node_glide
node_glide -->|"retrieves manager"| node_retriever
node_retriever -->|"builds manager"| node_manager
node_manager -->|"creates builder"| node_builder
node_builder -.->|"starts request"| node_engine
node_builder -->|"loads into"| node_target
node_engine -->|"uses registry"| node_registry
node_registry -.->|"resolves loaders"| node_models
node_models -.->|"obtains data"| node_fetchers
node_engine -.->|"coordinates decode"| node_decode
node_decode -.->|"decodes resources"| node_resources
node_engine -->|"checks cache"| node_memory
node_engine -->|"uses cache"| node_disk
node_annotations -.->|"processed by"| node_processor
node_processor -->|"uses generators"| node_generators
node_registry -.->|"supports fetching"| node_http
node_registry -.->|"optional adapter"| node_okhttp
node_registry -.->|"optional adapter"| node_volley
node_registry -.->|"optional adapter"| node_cronet
node_registry -.->|"optional decoder"| node_avif
node_compose -.->|"uses Glide"| node_glide
node_sqlcache -.->|"cache adapter"| node_disk

click node_glide "https://github.com/bumptech/glide/blob/master/library/src/main/java/com/bumptech/glide/Glide.java"
click node_retriever "https://github.com/bumptech/glide/blob/master/library/src/main/java/com/bumptech/glide/manager/RequestManagerRetriever.java"
click node_manager "https://github.com/bumptech/glide/blob/master/library/src/main/java/com/bumptech/glide/RequestManager.java"
click node_builder "https://github.com/bumptech/glide/blob/master/library/src/main/java/com/bumptech/glide/RequestBuilder.java"
click node_target "https://github.com/bumptech/glide/blob/master/library/src/main/java/com/bumptech/glide/request/target/Target.java"
click node_engine "https://github.com/bumptech/glide/blob/master/library/src/main/java/com/bumptech/glide/load/engine/Engine.java"
click node_registry "https://github.com/bumptech/glide/blob/master/library/src/main/java/com/bumptech/glide/Registry.java"
click node_models "https://github.com/bumptech/glide/blob/master/library/src/main/java/com/bumptech/glide/load/model/ModelLoader.java"
click node_fetchers "https://github.com/bumptech/glide/blob/master/library/src/main/java/com/bumptech/glide/load/data/DataFetcher.java"
click node_decode "https://github.com/bumptech/glide/blob/master/library/src/main/java/com/bumptech/glide/load/engine/DecodeJob.java"
click node_resources "https://github.com/bumptech/glide/blob/master/library/src/main/java/com/bumptech/glide/load/ResourceDecoder.java"
click node_memory "https://github.com/bumptech/glide/blob/master/library/src/main/java/com/bumptech/glide/load/engine/cache/MemoryCache.java"
click node_disk "https://github.com/bumptech/glide/blob/master/library/src/main/java/com/bumptech/glide/load/engine/cache/DiskCache.java"
click node_annotations "https://github.com/bumptech/glide/blob/master/annotation/src/main/java/com/bumptech/glide/annotation/GlideExtension.java"
click node_processor "https://github.com/bumptech/glide/blob/master/annotation/compiler/src/main/java/com/bumptech/glide/annotation/compiler/GlideAnnotationProcessor.java"
click node_generators "https://github.com/bumptech/glide/blob/master/annotation/compiler/src/main/java/com/bumptech/glide/annotation/compiler/RequestManagerGenerator.java"
click node_http "https://github.com/bumptech/glide/blob/master/library/src/main/java/com/bumptech/glide/load/data/HttpUrlFetcher.java"
click node_okhttp "https://github.com/bumptech/glide/blob/master/integration/okhttp3/src/main/java/com/bumptech/glide/integration/okhttp3/OkHttpUrlLoader.java"
click node_volley "https://github.com/bumptech/glide/blob/master/integration/volley/src/main/java/com/bumptech/glide/integration/volley/VolleyUrlLoader.java"
click node_cronet "https://github.com/bumptech/glide/blob/master/integration/cronet/src/main/java/com/bumptech/glide/integration/cronet/ChromiumUrlLoader.java"
click node_avif "https://github.com/bumptech/glide/blob/master/integration/avif/src/main/java/com/bumptech/glide/integration/avif/AvifStreamBitmapDecoder.java"
click node_compose "https://github.com/bumptech/glide/blob/master/integration/compose/src/main/java/com/bumptech/glide/integration/compose/GlideImage.kt"
click node_sqlcache "https://github.com/bumptech/glide/blob/master/integration/sqljournaldiskcache/src/main/java/com/bumptech/glide/integration/sqljournaldiskcache/JournaledLruDiskCache.java"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_glide,node_retriever,node_manager,node_builder,node_target toneBlue
class node_engine,node_registry,node_models,node_fetchers,node_decode,node_resources,node_memory,node_disk toneAmber
class node_annotations,node_processor,node_generators toneMint
class node_http,node_okhttp,node_volley,node_cronet,node_avif,node_compose,node_sqlcache toneRose
class node_app toneIndigo
```

## Components

### Request API

- [Glide entry](https://github.com/bumptech/glide/blob/master/library/src/main/java/com/bumptech/glide/Glide.java): `library/src/main/java/com/bumptech/glide/Glide.java`
- [Manager retrieval](https://github.com/bumptech/glide/blob/master/library/src/main/java/com/bumptech/glide/manager/RequestManagerRetriever.java): `library/src/main/java/com/bumptech/glide/manager/RequestManagerRetriever.java`
- [Request manager](https://github.com/bumptech/glide/blob/master/library/src/main/java/com/bumptech/glide/RequestManager.java): `library/src/main/java/com/bumptech/glide/RequestManager.java`
- [Request builder](https://github.com/bumptech/glide/blob/master/library/src/main/java/com/bumptech/glide/RequestBuilder.java): `library/src/main/java/com/bumptech/glide/RequestBuilder.java`
- [Display target](https://github.com/bumptech/glide/blob/master/library/src/main/java/com/bumptech/glide/request/target/Target.java): `library/src/main/java/com/bumptech/glide/request/target/Target.java`

### Load Runtime

- [Load engine](https://github.com/bumptech/glide/blob/master/library/src/main/java/com/bumptech/glide/load/engine/Engine.java): `library/src/main/java/com/bumptech/glide/load/engine/Engine.java`
- [Load registry](https://github.com/bumptech/glide/blob/master/library/src/main/java/com/bumptech/glide/Registry.java): `library/src/main/java/com/bumptech/glide/Registry.java`
- [Model loaders](https://github.com/bumptech/glide/blob/master/library/src/main/java/com/bumptech/glide/load/model/ModelLoader.java): `library/src/main/java/com/bumptech/glide/load/model/ModelLoader.java`
- [Data fetchers](https://github.com/bumptech/glide/blob/master/library/src/main/java/com/bumptech/glide/load/data/DataFetcher.java): `library/src/main/java/com/bumptech/glide/load/data/DataFetcher.java`
- [Decode pipeline](https://github.com/bumptech/glide/blob/master/library/src/main/java/com/bumptech/glide/load/engine/DecodeJob.java): `library/src/main/java/com/bumptech/glide/load/engine/DecodeJob.java`
- [Resource codecs](https://github.com/bumptech/glide/blob/master/library/src/main/java/com/bumptech/glide/load/ResourceDecoder.java): `library/src/main/java/com/bumptech/glide/load/ResourceDecoder.java`
- [Memory cache](https://github.com/bumptech/glide/blob/master/library/src/main/java/com/bumptech/glide/load/engine/cache/MemoryCache.java): `library/src/main/java/com/bumptech/glide/load/engine/cache/MemoryCache.java`
- [Disk cache](https://github.com/bumptech/glide/blob/master/library/src/main/java/com/bumptech/glide/load/engine/cache/DiskCache.java): `library/src/main/java/com/bumptech/glide/load/engine/cache/DiskCache.java`

### Generated API

- [Glide annotations](https://github.com/bumptech/glide/blob/master/annotation/src/main/java/com/bumptech/glide/annotation/GlideExtension.java): `annotation/src/main/java/com/bumptech/glide/annotation/GlideExtension.java`
- [Annotation processor](https://github.com/bumptech/glide/blob/master/annotation/compiler/src/main/java/com/bumptech/glide/annotation/compiler/GlideAnnotationProcessor.java): `annotation/compiler/src/main/java/com/bumptech/glide/annotation/compiler/GlideAnnotationProcessor.java`
- [API generators](https://github.com/bumptech/glide/blob/master/annotation/compiler/src/main/java/com/bumptech/glide/annotation/compiler/RequestManagerGenerator.java): `annotation/compiler/src/main/java/com/bumptech/glide/annotation/compiler/RequestManagerGenerator.java`

### Optional Integrations

- [HTTP integration](https://github.com/bumptech/glide/blob/master/library/src/main/java/com/bumptech/glide/load/data/HttpUrlFetcher.java): `library/src/main/java/com/bumptech/glide/load/data/HttpUrlFetcher.java`
- [OkHttp adapter](https://github.com/bumptech/glide/blob/master/integration/okhttp3/src/main/java/com/bumptech/glide/integration/okhttp3/OkHttpUrlLoader.java): `integration/okhttp3/src/main/java/com/bumptech/glide/integration/okhttp3/OkHttpUrlLoader.java`
- [Volley adapter](https://github.com/bumptech/glide/blob/master/integration/volley/src/main/java/com/bumptech/glide/integration/volley/VolleyUrlLoader.java): `integration/volley/src/main/java/com/bumptech/glide/integration/volley/VolleyUrlLoader.java`
- [Cronet adapter](https://github.com/bumptech/glide/blob/master/integration/cronet/src/main/java/com/bumptech/glide/integration/cronet/ChromiumUrlLoader.java): `integration/cronet/src/main/java/com/bumptech/glide/integration/cronet/ChromiumUrlLoader.java`
- [AVIF decoder](https://github.com/bumptech/glide/blob/master/integration/avif/src/main/java/com/bumptech/glide/integration/avif/AvifStreamBitmapDecoder.java): `integration/avif/src/main/java/com/bumptech/glide/integration/avif/AvifStreamBitmapDecoder.java`
- [Compose UI](https://github.com/bumptech/glide/blob/master/integration/compose/src/main/java/com/bumptech/glide/integration/compose/GlideImage.kt): `integration/compose/src/main/java/com/bumptech/glide/integration/compose/GlideImage.kt`
- [Journaled disk cache](https://github.com/bumptech/glide/blob/master/integration/sqljournaldiskcache/src/main/java/com/bumptech/glide/integration/sqljournaldiskcache/JournaledLruDiskCache.java): `integration/sqljournaldiskcache/src/main/java/com/bumptech/glide/integration/sqljournaldiskcache/JournaledLruDiskCache.java`

### Other components

- **Android app**

## Connections

- Android app → Glide entry: starts load (evidence: `README.md`)
- Glide entry → Manager retrieval: retrieves manager (evidence: `library/src/main/java/com/bumptech/glide/Glide.java`)
- Manager retrieval → Request manager: builds manager (evidence: `library/src/main/java/com/bumptech/glide/manager/RequestManagerRetriever.java`)
- Request manager → Request builder: creates builder (evidence: `library/src/main/java/com/bumptech/glide/RequestManager.java`)
- Request builder → Load engine: starts request
- Request builder → Display target: loads into (evidence: `library/src/main/java/com/bumptech/glide/RequestBuilder.java`)
- Load engine → Load registry: uses registry (evidence: `library/src/main/java/com/bumptech/glide/load/engine/Engine.java`)
- Load registry → Model loaders: resolves loaders
- Model loaders → Data fetchers: obtains data
- Load engine → Decode pipeline: coordinates decode (evidence: `library/src/main/java/com/bumptech/glide/load/engine/Engine.java`)
- Decode pipeline → Resource codecs: decodes resources
- Load engine → Memory cache: checks cache (evidence: `library/src/main/java/com/bumptech/glide/load/engine/Engine.java`)
- Load engine → Disk cache: uses cache (evidence: `library/src/main/java/com/bumptech/glide/load/engine/Engine.java`)
- Glide annotations → Annotation processor: processed by
- Annotation processor → API generators: uses generators (evidence: `annotation/compiler/src/main/java/com/bumptech/glide/annotation/compiler/RequestManagerGenerator.java`)
- Load registry → HTTP integration: supports fetching
- Load registry → OkHttp adapter: optional adapter (evidence: `README.md`)
- Load registry → Volley adapter: optional adapter (evidence: `README.md`)
- Load registry → Cronet adapter: optional adapter
- Load registry → AVIF decoder: optional decoder
- Compose UI → Glide entry: uses Glide
- Journaled disk cache → Disk cache: cache adapter
