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

Read the architecture guide →

Get books over gRPC

Returns multiple Catalog books by identifier through the book.v1 gRPC contract.

Catalog Management

GetBooksGrpc invokes the internal book.v1.BookGrpcService/GetBooks 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 fetch compact commercial summaries (ID, name, price, sale price, and stock status) for multiple books in a single round trip. Basket APIServicev1.0.0Basket APIInternal HTTP and gRPC service for managing customer-scoped shopping baskets, Catalog price enrichment, and post-checkou...PublishesGetBookGrpc, GetBooksGrpc +2SubscribesCreateBasket, UpdateBasket +4APIsOpenAPI, AsyncAPIOwnercommerce-fulfillment-teamDiagramRepositoryOpen docs calls this RPC to enrich basket items on read, and 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 it during checkout and order detail enrichment.

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/GetBooks), Protobuf edition = "2023"
Gateway EndpointInternal gRPC RPC book.v1.BookGrpcService/GetBooks (not exposed via API Gateway)
Authentication & AuthorizationInternal service-to-service anonymous read
Idempotency / ConcurrencyRead-only and naturally idempotent
Rate Limit / CachingDeduplicates book_ids, resolves hits per ID in L1 + Redis L2, and batch-queries PostgreSQL only for misses
Contract Version1.0.0
Note

GetBooks silently omits unknown book IDs rather than returning NotFound, and returns an empty GetBooksResponse when book_ids is empty. Callers must reconcile returned books against requested book_ids.

Request & Response Contract

Request Message (GetBooksRequest)

NameTypeRequiredConstraintsDescription
book_idsstring[] (uuid[])YesTag 1 (repeated); valid UUIDsList of book UUIDs to fetch (deduplicated server-side)

Success Response (GetBooksResponse)

NameTypeRequiredConstraintsDescription
booksGetBookResponse[]YesTag 1 (repeated)Matched book summaries in deduplicated request order
books[].idstring (uuid)YesTag 1Book UUID
books[].namestringYesTag 2Book title
books[].priceDecimalValueYesTag 3 (int64 units, sfixed32 nanos)Regular unit price
books[].price_saleDecimalValueNoTag 4 (omitted when no sale applies)Promotional sale price
books[].statusBookStatusYesTag 5 (BOOK_STATUS_IN_STOCK = 1, BOOK_STATUS_OUT_OF_STOCK = 2)Current stock availability status

Behavior & Side Effects

  • Per-ID cache batching: Resolves cached book summaries first and batch-queries PostgreSQL only for cache misses, populating cache entries for subsequent reads.
  • No state mutation: Pure read RPC with no database writes or integration events.

Error Responses

Status / CodeConditionClient Recovery Action
Unknown (2)Any entry in book_ids is not a valid UUIDValidate all UUIDs before calling
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.
  • BookEntityv1.0.0BookCanonical sellable title in the product catalog, encapsulating descriptive metadata, pricing, stock availability, taxono...Ownercatalog-experience-teamOpen docs — Book entity model.
  • Get basketQueryv1.0.0Get basketReturns the current basket and its item details.Ownercommerce-fulfillment-teamSchemaDiagramOpen docs — Basket API endpoint that enriches items via GetBooks.
  • Get orderQueryv1.0.0Get orderReturns Order details, including the recorded item quantities and prices.Ownercommerce-fulfillment-teamSchemaDiagramOpen docs — Ordering API endpoint that enriches order line-item names via GetBooks.
  • Get book over gRPCQueryv1.0.0Get book over gRPCReturns one Catalog book by identifier through the book.v1 gRPC contract.Ownercatalog-experience-teamSchemaDiagramOpen docs — Single-book compact gRPC RPC.

Get books over gRPC schema

9 fields
Package:book.v1(2023)
Message:GetBooksRequest
book_idsrepeated string= 1
Message:GetBooksResponse
booksrepeated GetBookResponse= 1
Message:GetBookResponse
idstring= 1
namestring= 2
priceDecimalValue= 3
price_saleDecimalValue= 4
statusBookStatus= 5
Allowed values: BOOK_STATUS_UNSPECIFIED BOOK_STATUS_IN_STOCK BOOK_STATUS_OUT_OF_STOCK
Message:DecimalValue
unitsint64= 1
nanossfixed32= 2
Enum:BookStatus
Allowed values: BOOK_STATUS_UNSPECIFIED BOOK_STATUS_IN_STOCK BOOK_STATUS_OUT_OF_STOCK