Get book over gRPC
Returns one Catalog book by identifier through the book.v1 gRPC contract.
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
| Property | Value |
|---|---|
| Bounded Context | Catalog |
| Owner Service | 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 |
| Protocol / Format | gRPC unary RPC (book.v1.BookGrpcService/GetBook), Protobuf edition = "2023" |
| Gateway Endpoint | Internal gRPC RPC book.v1.BookGrpcService/GetBook (not exposed via API Gateway) |
| Authentication & Authorization | Internal service-to-service anonymous read |
| Idempotency / Concurrency | Read-only and naturally idempotent |
| Rate Limit / Caching | Cached in L1 + Redis L2 keyed by book summary |
| Contract Version | 1.0.0 |
Request & Response Contract
Request Message (GetBookRequest)
| Name | Type | Required | Constraints | Description |
|---|---|---|---|---|
book_id | string (uuid) | Yes | Tag 1; valid UUID | Unique identifier of the book to retrieve |
Success Response (GetBookResponse)
| Name | Type | Required | Constraints | Description |
|---|---|---|---|---|
id | string (uuid) | Yes | Tag 1 | Book UUID |
name | string | Yes | Tag 2 | Book title |
price | DecimalValue | Yes | Tag 3 (int64 units, sfixed32 nanos) | Regular unit price |
price_sale | DecimalValue | No | Tag 4 (omitted when no sale applies) | Promotional sale price |
status | BookStatus | Yes | Tag 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.
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 / Code | Condition | Client Recovery Action |
|---|---|---|
NotFound (5) | No active book exists with the supplied book_id | Treat the book as unavailable; do not retry unchanged |
Unknown (2) | book_id is not a valid UUID | Validate UUID format before calling |
Unavailable (14) | Catalog API is unreachable | Retry within the budgeted resilience policy |
Related Documentation
- 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 books over gRPCQueryv1.0.0Get books over gRPCReturns multiple Catalog books by identifier through the book.v1 gRPC contract.Ownercatalog-experience-teamSchemaDiagramOpen docs — Preferred batch gRPC RPC used by 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.
- 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 — Full-detail gRPC RPC returning complete book metadata.
Get book over gRPC schema
BOOK_STATUS_UNSPECIFIED BOOK_STATUS_IN_STOCK BOOK_STATUS_OUT_OF_STOCKBOOK_STATUS_UNSPECIFIED BOOK_STATUS_IN_STOCK BOOK_STATUS_OUT_OF_STOCK