How nasa/common-metadata-repository works
CMR is NASA’s earth-science metadata repository; its Search API exposes repository metadata. The tree shows distinct services for ingest, metadata persistence, indexing, search, access control, bootstrap, virtual products, subscriptions, and operational reindexing. The reindexer excerpts support a detailed request-to-dispatch workflow; the Clojure service excerpts are limited, so their internal call relationships are not asserted. Some repository-wide connections are documented only by the README’s description of a multi-service system.
Main entry points: worker.py Reindex throttler · dynamo.py Reindex database · reindex.py Reindex requests · status.py Job status API
Components 24
Metadata lifecycle
- Ingest API
ingest-app/src/cmr/ingest/api/routes.clj - Ingest services
ingest-app/src/cmr/ingest/services/ingest_service.clj - Metadata validation
ingest-app/src/cmr/ingest/validation/validation.clj - Metadata API
metadata-db-app/src/cmr/metadata_db/api/routes.clj - Concept persistence
metadata-db-app/src/cmr/metadata_db/services/concept_service.clj - Oracle concept store
metadata-db-app/src/cmr/metadata_db/data/oracle/concepts.clj
Search and access
- Search API
search-app/src/cmr/search/api/routes.clj - Query service
search-app/src/cmr/search/services/query_service.clj - Query translation
search-app/src/cmr/search/data/query_to_elastic.clj - Elasticsearch search
elastic-utils-lib/src/cmr/elastic_utils/search/query_execution.clj - Access-control API
access-control-app/src/cmr/access_control/api/routes.clj - ACL search
access-control-app/src/cmr/access_control/services/acl_search_service.clj
Index operations
- Reindex requests
reindexer/app/routers/reindex.py - Reindex throttler
reindexer/app/throttler/worker.py - Reindex database
reindexer/app/db/dynamo.py - SQS queues
reindexer/app/sqs/client.py - Job status API
reindexer/app/routers/status.py
Platform services
- Bootstrap API
bootstrap-app/src/cmr/bootstrap/api/routes.clj - Bootstrap service
bootstrap-app/src/cmr/bootstrap/services/bootstrap_service.clj - Virtual products
virtual-product-app/src/cmr/virtual_product/services/virtual_product_service.clj
Notifications and proxy
- Search proxy
search-proxy/src/proxy/app.py - Subscription worker
subscription/src/subscription_worker.py - SNS notifications
subscription/src/sns.py
Other components
- API client
Connections 9
- API client → Search API: queries
- Reindex requests → Reindex database: creates jobs
reindexer/app/routers/reindex.py - Reindex throttler → Reindex database: tracks checkpoints
reindexer/app/throttler/worker.py - Reindex throttler → SQS queues: reads and publishes
reindexer/app/throttler/worker.py - Reindex requests → Reindex throttler: schedules work
reindexer/app/routers/reindex.py - Job status API → Reindex database: reads job state
reindexer/app/routers/status.py - Job status API → SQS queues: checks queue depth
reindexer/app/routers/status.py - Subscription worker → SNS notifications: publishes notices
subscription/src/subscription_worker.py - Search proxy → API client: returns response