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

Read the architecture guide →

List books over gRPC

Searches and lists Catalog books with full metadata through the book.v1 gRPC contract.

Catalog Management

ListBooksGrpc invokes the internal book.v1.BookGrpcService/ListBooks 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 search and list books with full metadata (descriptions, images, pricing, stock status, relationships, and rating summaries). 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 search_catalog 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/ListBooks), Protobuf edition = "2023"
Gateway EndpointInternal gRPC RPC book.v1.BookGrpcService/ListBooks (not exposed via API Gateway)
Authentication & AuthorizationInternal service-to-service anonymous read
Idempotency / ConcurrencyRead-only and naturally idempotent
Rate Limit / CachingHybrid vector search (cached 5 min) when search is non-empty; filtered page cached 60s
Contract Version1.0.0
Note

This RPC uses fixed defaults (pageIndex = 1, pageSize = 20, orderBy = "Name", isDescending = false) and does not expose paging parameters. Callers requiring multi-page traversal or price/relationship filters must use HTTP List booksQueryv1.0.0List booksReturns a filterable collection of books with pricing, availability, relationships, and rating summaries.Ownercatalog-experience-teamSchemaDiagramOpen docs.

Request & Response Contract

Request Message (ListBooksRequest)

NameTypeRequiredConstraintsDescription
searchstringNoTag 1; blank/whitespace treated as nullFree-text search term executed via hybrid vector search

Success Response (ListBooksResponse)

NameTypeRequiredConstraintsDescription
booksBookItem[]YesTag 1 (repeated); max 20 itemsMatching books with full metadata (empty collection if zero matches). See Get book details over gRPCQueryv1.0.0Get book details over gRPCReturns full Catalog book details by identifier through the book.v1 gRPC contract.Ownercatalog-experience-teamSchemaDiagramOpen docs for BookItem fields.

Behavior & Side Effects

  • Hybrid search & caching: When search is non-empty, executes hybrid vector search against Qdrant and filters matching books from PostgreSQL.
  • No state mutation: Pure read RPC with no database writes or integration events.

Error Responses

Status / CodeConditionClient Recovery Action
Unavailable (14)Catalog API (or backing Qdrant/PostgreSQL dependency during an uncached search) is unreachableRetry within the budgeted resilience policy

List books over gRPC schema

22 fields
Package:book.v1(2023)
Message:ListBooksRequest
searchstring= 1
Message:ListBooksResponse
booksrepeated BookItem= 1
Message:BookItem
idstring= 1
namestring= 2
descriptionstring= 3
image_urlstring= 4
priceDecimalValue= 5
price_saleDecimalValue= 6
statusBookStatus= 7
Allowed values: BOOK_STATUS_UNSPECIFIED BOOK_STATUS_IN_STOCK BOOK_STATUS_OUT_OF_STOCK
categoryCategoryItem= 8
publisherPublisherItem= 9
authorsrepeated AuthorItem= 10
average_ratingdouble= 11
total_reviewsint32= 12
Message:DecimalValue
unitsint64= 1
nanossfixed32= 2
Message:CategoryItem
idstring= 1
namestring= 2
Message:PublisherItem
idstring= 1
namestring= 2
Message:AuthorItem
idstring= 1
namestring= 2
Enum:BookStatus
Allowed values: BOOK_STATUS_UNSPECIFIED BOOK_STATUS_IN_STOCK BOOK_STATUS_OUT_OF_STOCK