Back to problems

Crypto Order Management (Kafka Consumer)

Algorithm · Coinbase · Medium

Examples Example 1 Example 2 Requirements Create OrderService() with two operations: consumeMessage(message) accepts a Kafka record and mutates an in-memory order registry. getOrderStatus(orderId) retrieves an order's latest status. You must decode the message contents yourself; no parsing utility is supplied. Each record uses this layout: Apply these status rules: A first nonzero fill changes NEW into IN_PROGRESS. When total FILLED quantity reaches the quantity from the…

Checking your access…