Uber L5a Senior software engineer Depth in Specialization round for backend

Difficulty: MEDIUMCategory: InterviewExperienceFrequency: 1Asked On 2023-02-23Added By Anonymous
Source: Link

Company: Uber

Role: Senior Software Engineer

Interview Stage: Onsite


Original Post Content:


We are a very large e-commerce company. Presently, we have 3 microservices providing the CRUD functions on sellers, products and orders


———-SellerService————

sellerID (PK)

sellerName

paymentDetails[check/wire]


————ProductService————- all products that seller

productID (PK)

sellerID

sellerPrice -sp

buyerPrice


————OrderService————— customer purchases/booked products availabl in this service

orderID (PK)

buyerID

[]productsIDs

orderTimestamp


Design a seller-side payment system. Buyer-side system already exists. We only need to design the system to pay out sellers on our platform.


10 orders - 2 sellers (5 orders each)


-------------------


Info:

Payment gateway takes ~1 minute to process a payment

We are charged a fixed fee per transfer by the payment gateway


Requirements (in order of importance):

There should be an audit log of all payments made out to sellers

Sellers should be paid out, in their preferred form of payment, as soon as possible

Sellers will be calling up on the status of their payments!! Have a way to tell them the status of their payment, or steps required to fix any problems

Keep the payment gateway fees to a minimum

No payments should be dropped.

No duplicate payments should be made out.


The third party payment gateway’s interface looks like this,


interface service ThirdPartyPaymentGateway {

function sendCheck(checkDetails, amount) returns transactionId or error;

function sendWire(wireDetails, amount) returns transactionId or error;

}

Comments