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

Read the architecture guide →

List categories over gRPC

Returns all Catalog categories through the book.v1 gRPC contract.

Catalog Management

ListCategoriesGrpc invokes the internal book.v1.BookGrpcService/ListCategories 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 return all registered book categories without pagination. MCP ServerServicev1.0.0MCP ServerInternal stateless Streamable HTTP MCP service that exposes read-only Catalog lookup tools and reusable AI prompts. PublishesListBooksGrpc, GetBookDetailsGrpc +2Ownerai-capabilities-teamDiagramRepositoryOpen docs calls this RPC to power its list_categories tool.

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/ListCategories), Protobuf edition = "2023"
Gateway EndpointInternal gRPC RPC book.v1.BookGrpcService/ListCategories (not exposed via API Gateway)
Authentication & AuthorizationInternal service-to-service anonymous read
Idempotency / ConcurrencyRead-only and naturally idempotent
Rate Limit / CachingBacked by PostgreSQL and cached in L1 + Redis L2
Contract Version1.0.0

Request & Response Contract

Request Message (ListCategoriesRequest)

Empty Protobuf message with no fields.

Success Response (ListCategoriesResponse)

NameTypeRequiredConstraintsDescription
categoriesCategoryItem[]YesTag 1 (repeated)All catalog categories (empty collection if none exist)
categories[].idstring (uuid)YesTag 1Category UUID
categories[].namestringYesTag 2 (empty string if null)Category display name

Behavior & Side Effects

  • Read-through caching: Serves the category taxonomy from L1/Redis L2 cache, shared with List categoriesQueryv1.0.0List categoriesReturns all categories known to the Catalog.Ownercatalog-experience-teamSchemaDiagramOpen docs.
  • No state mutation: Pure read RPC with no database writes or integration events.

Error Responses

Status / CodeConditionClient Recovery Action
Unavailable (14)Catalog API is unreachableRetry within the budgeted resilience policy

List categories over gRPC schema

3 fields
Package:book.v1(2023)
Message:ListCategoriesRequest

No fields defined

Message:ListCategoriesResponse
categoriesrepeated CategoryItem= 1
Message:CategoryItem
idstring= 1
namestring= 2