Last active
May 29, 2022 17:57
-
-
Save mindbend0x/7a3e0d95f2c88ab423a99db3bcd6ac3d to your computer and use it in GitHub Desktop.
Revisions
-
Faisal Al-Tameemi revised this gist
May 29, 2022 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -4,7 +4,7 @@ * 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 2. Given the same API method above, write a function which returns the counts of each transaction type -
Faisal Al-Tameemi created this gist
Apr 27, 2022 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,25 @@ ## Coding Questions 1. 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://e5f7-217-165-229-71.ngrok.io/transactions 2. Given the same API method above, write a function which returns the counts of each transaction type 3. 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. 4. Write a cron scheduler to run daily ## Whiteboard Questions 1. 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 2. How would you implement a Postgres Joins optimizer?