- Given an API response which returns a list of transactions, aggregate (sum) the transactions'
amount
s of a specific type- The aggregation function will run either daily or weekly, must return the correct response either way
- How would you optimize this function?
API Endpoint: https://530a-5-107-84-27.ngrok.io/transactions
-
Given the same API method above, write a function which returns the counts of each transaction type
-
Extend the function written in Question #1 to allow multiple runs without recounting values already aggregated
- For example, if running the function once on type = 'Interest Payout' yeilds a response of 10, running it again immediately should return 0 since all the previous transactions were already considered.
-
Write a cron scheduler to run daily
-
How would you design a payment processing (specifically billing) system for an e-commerce website?
- Describe the endpoints necessary
- Describe the data models necessary
- Describe the code services necessary
- The system should also deal with creating the order
-
How would you implement a Postgres Joins optimizer?