Skip to content
This repository has been archived by the owner on May 9, 2019. It is now read-only.

Latest commit

 

History

History
31 lines (16 loc) · 722 Bytes

bidding-service.md

File metadata and controls

31 lines (16 loc) · 722 Bytes

Bidding service

Manages bids on items.

Queries handled

  • getBids - Gets all the bids for an item.

Events emitted

  • BidPlaced - When a bid is placed, in response to placeBid.
  • BiddingFinished - When bidding has finished, in response to finishBidding.

Commands handled

External (user)

  • placeBid - Places a bid, if the bid is greater than the current bid, emits BidPlaced.

Internal

  • finishBidding - Triggered by scheduled task that polls a read side view of auctions to finish, emits BiddingFinished

Events consumed

Item service

  • AuctionStarted - Creates a new auction for the item
  • AuctionCancelled - Completes an auction prematurely