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

Read the architecture guide →

Get book over gRPC

Returns one Catalog book by identifier through the book.v1 gRPC contract.

Catalog Management

GetBookGrpc invokes the internal book.v1.BookGrpcService/GetBook 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 compact commercial summary (ID, name, regular price, sale price, and stock status) for a single book. While 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 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 wire client methods for this RPC, active checkout and enrichment flows use the batch Get books over gRPCQueryv1.0.0Get books over gRPCReturns multiple Catalog books by identifier through the book.v1 gRPC contract.Ownercatalog-experience-teamSchemaDiagramOpen docs RPC instead.

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

Request & Response Contract

Request Message (GetBookRequest)

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

Success Response (GetBookResponse)

NameTypeRequiredConstraintsDescription
idstring (uuid)YesTag 1Book UUID
namestringYesTag 2Book title
priceDecimalValueYesTag 3 (int64 units, sfixed32 nanos)Regular unit price
price_saleDecimalValueNoTag 4 (omitted when no sale applies)Promotional sale price
statusBookStatusYesTag 5 (BOOK_STATUS_IN_STOCK = 1, BOOK_STATUS_OUT_OF_STOCK = 2)Current stock availability status

Behavior & Side Effects

  • Read-through caching: Resolves book summaries from L1/Redis L2 cache before querying PostgreSQL.
  • No state mutation: Pure read RPC with no database writes or integration events.
Note

Supplying a malformed book_id returns gRPC Unknown (2) rather than InvalidArgument (3); callers must validate UUID formatting before invoking this RPC.

Error Responses

Status / CodeConditionClient Recovery Action
NotFound (5)No active book exists with the supplied book_idTreat the book as unavailable; do not retry unchanged
Unknown (2)book_id is not a valid UUIDValidate UUID format before calling
Unavailable (14)Catalog API is unreachableRetry within the budgeted resilience policy

Get book over gRPC schema

8 fields
Package:book.v1(2023)
Message:GetBookRequest
book_idstring= 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