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

Read the architecture guide →

Get book details over gRPC

Returns full Catalog book details by identifier through the book.v1 gRPC contract.

Catalog Management

GetBookDetailsGrpc invokes the internal book.v1.BookGrpcService/GetBookDetails 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 a single book’s complete projection, including description, cover image URI, pricing, stock status, category, publisher, authors, and derived rating summary. 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 get_book 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/GetBookDetails), Protobuf edition = "2023"
Gateway EndpointInternal gRPC RPC book.v1.BookGrpcService/GetBookDetails (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 (GetBookDetailsRequest)

NameTypeRequiredConstraintsDescription
book_idstring (uuid)YesTag 1; valid UUIDUnique identifier of the book to retrieve

Success Response (GetBookDetailsResponse / book.*)

GetBookDetailsResponse wraps a single book (BookItem) field (tag 1).

NameTypeRequiredConstraintsDescription
idstring (uuid)YesTag 1Book UUID
namestringYesTag 2 (empty string if null)Book title
descriptionstringYesTag 3 (empty string if null)Book description
image_urlstringYesTag 4 (empty string if null)Cover image URI
priceDecimalValueYesTag 5 (int64 units, sfixed32 nanos)Regular unit price
price_saleDecimalValueNoTag 6 (omitted when no sale applies)Promotional sale price
statusBookStatusYesTag 7 (BOOK_STATUS_IN_STOCK = 1, BOOK_STATUS_OUT_OF_STOCK = 2)Current stock availability status
categoryCategoryItemNoTag 8 (id, name)Optional category
publisherPublisherItemNoTag 9 (id, name)Optional publisher
authorsAuthorItem[]YesTag 10 (repeated; id, name)Authors associated with the book
average_ratingdoubleYesTag 11; >= 0Derived average rating projected from Reviews
total_reviewsint32YesTag 12; >= 0Derived total feedback count projected from Reviews

Behavior & Side Effects

  • Read-through caching: Delegates to the same cached projection used by Get bookQueryv1.0.0Get bookReturns one book and its catalog relationships by identifier.Ownercatalog-experience-teamSchemaDiagramOpen docs (L1 + Redis L2).
  • No state mutation: Pure read RPC with no database writes or integration events.

Error Responses

Status / CodeConditionClient Recovery Action
InvalidArgument (3)book_id is not a valid UUIDValidate the UUID before calling; do not retry unchanged
NotFound (5)No active book exists with the supplied book_idSurface a not-found result to the caller
Unavailable (14)Catalog API is unreachableRetry within the budgeted resilience policy

Get book details over gRPC schema

22 fields
Package:book.v1(2023)
Message:GetBookDetailsRequest
book_idstring= 1
Message:GetBookDetailsResponse
bookBookItem= 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