Storefront has been decoupled into micro-frontends with a dedicated commerce app and shared shell.

Read the architecture guide →

Get catalog dashboard over gRPC

Returns Catalog totals and category counts through the admin-protected book.v1 gRPC contract.

Catalog Management

GetDashboardGrpc invokes the admin-protected book.v1.BookGrpcService/GetDashboard gRPC unary RPC on Catalog APIServicev1.0.0Catalog APIInternal HTTP and gRPC service for Catalog product management, hybrid discovery, and authoritative book metadata. PublishesBookUpdatedRatingFailedIntegrationEventSubscribesCreatePublisher, UpdatePublisher +24APIsOpenAPI, AsyncAPIOwnercatalog-experience-teamDiagramRepositoryOpen docs to retrieve total catalog book counts and per-category book counts. Order APIServicev1.0.0Order APIAuthenticated Ordering service for Buyer profiles and the Order lifecycle, creating Orders from baskets, snapshotting pr...PublishesGetBasketGrpc, GetBookGrpc +5SubscribesCreateOrder, CompleteOrder +11APIsOpenAPI, AsyncAPI, Carrier Service LevelsOwnercommerce-fulfillment-teamDiagramRepositoryOpen docs calls this RPC with an exchanged Microsoft Entra ID administrator token when refreshing the Backoffice dashboard.

Overview

PropertyValue
Bounded ContextCatalog
Owner ServiceCatalog APIServicev1.0.0Catalog APIInternal HTTP and gRPC service for Catalog product management, hybrid discovery, and authoritative book metadata. PublishesBookUpdatedRatingFailedIntegrationEventSubscribesCreatePublisher, UpdatePublisher +24APIsOpenAPI, AsyncAPIOwnercatalog-experience-teamDiagramRepositoryOpen docs
Protocol / FormatgRPC unary RPC (book.v1.BookGrpcService/GetDashboard), Protobuf edition = "2023"
Gateway EndpointInternal gRPC RPC book.v1.BookGrpcService/GetDashboard (not exposed via API Gateway)
Authentication & AuthorizationMicrosoft Entra ID JWT — admin policy (admin role and catalog_read/catalog_write scopes) via Authorization: Bearer <token> metadata
Idempotency / ConcurrencyRead-only and naturally idempotent
Rate Limit / CachingCached in L1 + Redis L2 for 15 seconds
Contract Version1.0.0

Request & Response Contract

Request Message (GetDashboardRequest)

Empty Protobuf message with no fields.

Success Response (GetDashboardResponse)

NameTypeRequiredConstraintsDescription
total_booksint64YesTag 1; >= 0Sum of book counts across all categories
categoriesDashboardCategory[]YesTag 2 (repeated)Per-category book counts
categories[].namestringYesTag 1Category display name
categories[].valueint64YesTag 2; >= 0Number of books assigned to the category

Behavior & Side Effects

  • Short-lived aggregation cache: Aggregates book counts per category from PostgreSQL and caches the result for 15 seconds.
  • No state mutation: Pure read RPC with no database writes or integration events.

Error Responses

Status / CodeConditionClient Recovery Action
Unauthenticated (16)Missing, expired, or invalid Entra ID bearer token in gRPC metadataExchange a valid administrator token scoped for Catalog API and retry
PermissionDenied (7)Authenticated caller does not satisfy the admin policyAuthenticate with an admin role principal
Unavailable (14)Catalog API is unreachableRetry within the budgeted resilience policy
  • Catalog APIServicev1.0.0Catalog APIInternal HTTP and gRPC service for Catalog product management, hybrid discovery, and authoritative book metadata. PublishesBookUpdatedRatingFailedIntegrationEventSubscribesCreatePublisher, UpdatePublisher +24APIsOpenAPI, AsyncAPIOwnercatalog-experience-teamDiagramRepositoryOpen docs — Service overview, persistence, and gRPC services.
  • Order APIServicev1.0.0Order APIAuthenticated Ordering service for Buyer profiles and the Order lifecycle, creating Orders from baskets, snapshotting pr...PublishesGetBasketGrpc, GetBookGrpc +5SubscribesCreateOrder, CompleteOrder +11APIsOpenAPI, AsyncAPI, Carrier Service LevelsOwnercommerce-fulfillment-teamDiagramRepositoryOpen docs — Primary caller hosting the administrative dashboard.
  • List categories over gRPCQueryv1.0.0List categories over gRPCReturns all Catalog categories through the book.v1 gRPC contract.Ownercatalog-experience-teamSchemaDiagramOpen docs — Anonymous gRPC category listing.

Get catalog dashboard over gRPC schema

4 fields
Package:book.v1(2023)
Message:GetDashboardRequest

No fields defined

Message:GetDashboardResponse
total_booksint64= 1
categoriesrepeated DashboardCategory= 2
Message:DashboardCategory
namestring= 1
valueint64= 2