"The core of this design is to allow millions of users to send comments simultaneously, save them to the database, and broadcast them to all users in real-time during the live session. If you think about it, it is very similar to a streaming service like Kafka.
Fault Tolerance with Write-Ahead Log:
Kafka's write-ahead log ensures durability and fault tolerance. Every comment is persisted to Kafka's log before being processed, ensuring no data is lost even if a service crashes.
Fast I/"
Abhi M. - "The core of this design is to allow millions of users to send comments simultaneously, save them to the database, and broadcast them to all users in real-time during the live session. If you think about it, it is very similar to a streaming service like Kafka.
Fault Tolerance with Write-Ahead Log:
Kafka's write-ahead log ensures durability and fault tolerance. Every comment is persisted to Kafka's log before being processed, ensuring no data is lost even if a service crashes.
Fast I/"See full answer
"My leadership style is flexible and adaptive, it varies depending on the team members and the needs of the company. My leadership goal is to empower the team and inspire and grow leaders. In order to achieve that, I combine transformational, democratic and coaching leadership styles.
Usually when we are facing a new type of challenge, or at the early stage of a project, I like to adapt the transformational leadership which allows me to listen to all the suggestions from the team members and sta"
onering2ruleall - "My leadership style is flexible and adaptive, it varies depending on the team members and the needs of the company. My leadership goal is to empower the team and inspire and grow leaders. In order to achieve that, I combine transformational, democratic and coaching leadership styles.
Usually when we are facing a new type of challenge, or at the early stage of a project, I like to adapt the transformational leadership which allows me to listen to all the suggestions from the team members and sta"See full answer
"Use an index, two pointers, and a set to keep track of elements that you've seen.
pseudo code follows:
for i, elem in enumerate(array):
if elem in set return False
if i > N:
set.remove(array[i-N])"
Michael B. - "Use an index, two pointers, and a set to keep track of elements that you've seen.
pseudo code follows:
for i, elem in enumerate(array):
if elem in set return False
if i > N:
set.remove(array[i-N])"See full answer
"Understand gaps team by interviewing on 1:1, reading past performance reviews and talking to old managers/cross functional
Identify Goals and use the SMART framework to set those goals (Specific, Measurable, Attainable, relevant, time related)
Share with team and make sure they understand them. Clarify questions if needed.
Explain WHY these goals matter. Tie to company goals/mission/culture.
Put together an action plan TOGETHER- give often feedback: "pinches no punches"
Chantal C. - "Understand gaps team by interviewing on 1:1, reading past performance reviews and talking to old managers/cross functional
Identify Goals and use the SMART framework to set those goals (Specific, Measurable, Attainable, relevant, time related)
Share with team and make sure they understand them. Clarify questions if needed.
Explain WHY these goals matter. Tie to company goals/mission/culture.
Put together an action plan TOGETHER- give often feedback: "pinches no punches"See full answer
Engineering Manager
Program Sense
+1 more
🧠Want an expert answer to a question? Saving questions lets us know what content to make next.
"Yes to peer manager from stackholder team the problem was every time she wanted say something she used to have three way connect with me and my manager"
Graig - "Yes to peer manager from stackholder team the problem was every time she wanted say something she used to have three way connect with me and my manager"See full answer
"Start your stream
Use the Post tab to: Choose where to post your live broadcast. Write a description. Select a camera, mic and screen (if screen sharing). Add a title for your live broadcast (optional). Select the primary language of the stream. ...
Once everything is set, select Go Live."
Abdurhman M. - "Start your stream
Use the Post tab to: Choose where to post your live broadcast. Write a description. Select a camera, mic and screen (if screen sharing). Add a title for your live broadcast (optional). Select the primary language of the stream. ...
Once everything is set, select Go Live."See full answer
"Functional requirement's:
partial search while searching for users, products any keywords in the search.
additional keywords in the filter
Black listed words in the search.
Non functional requirements:
low latency,
search through 2 Billion records
recent search should be cached.
Design:
high reads,
we should have caching enabled over the primary db storages.
caching cluster can be added when the search load increases.
read ahead. - check in cache
(periodic cache refresh), lfu, lru
"
Sandeep Y. - "Functional requirement's:
partial search while searching for users, products any keywords in the search.
additional keywords in the filter
Black listed words in the search.
Non functional requirements:
low latency,
search through 2 Billion records
recent search should be cached.
Design:
high reads,
we should have caching enabled over the primary db storages.
caching cluster can be added when the search load increases.
read ahead. - check in cache
(periodic cache refresh), lfu, lru
"See full answer
"I product manage customer care - while I belong to the ecommerce platform team. customer care is not a direct contributor for revenue and the feedback i received during my career progression was unless i contribute to revenue i cannot be on promotion track. this is difficult feedback to act on as its not by job responsibility. worked with my manager on 2 fronts - 1) create a succession plan so i can take on additional responsibility that contributes to revenue and 2) create a plan on how care ca"
Gomathi S. - "I product manage customer care - while I belong to the ecommerce platform team. customer care is not a direct contributor for revenue and the feedback i received during my career progression was unless i contribute to revenue i cannot be on promotion track. this is difficult feedback to act on as its not by job responsibility. worked with my manager on 2 fronts - 1) create a succession plan so i can take on additional responsibility that contributes to revenue and 2) create a plan on how care ca"See full answer
"Clarification
What category of Marketplace are we setting a goal for as there are several sub-marketplaces? —> We are looking at overall Marketplace
Are we focused globally or in the US? —> Lets limit to the US
To set the Goal for FB marketplace I will start by describing the product, go over goals for the users (buyers / sellers) and the business (FB), review user actions, list metrics and then summarize our goal for marketplace and choose a few keys metrics to track our progress towa"
stash - "Clarification
What category of Marketplace are we setting a goal for as there are several sub-marketplaces? —> We are looking at overall Marketplace
Are we focused globally or in the US? —> Lets limit to the US
To set the Goal for FB marketplace I will start by describing the product, go over goals for the users (buyers / sellers) and the business (FB), review user actions, list metrics and then summarize our goal for marketplace and choose a few keys metrics to track our progress towa"See full answer
"Clarifying and definition of the metrics
By creations down by 5%, how do you calculate the drop? the how % user create stories has dropped, or the overal stories being created fewer, could be average stories created by a user drops. Basically, how do you calculate the creation and drop? They have similarities, but it reveals diffrent type user behahviors.
Assume they say fewer people create fewer stories , both,
Just to be confirm that, we saw a 5% change/dig in how many user"
Scarlett S. - "Clarifying and definition of the metrics
By creations down by 5%, how do you calculate the drop? the how % user create stories has dropped, or the overal stories being created fewer, could be average stories created by a user drops. Basically, how do you calculate the creation and drop? They have similarities, but it reveals diffrent type user behahviors.
Assume they say fewer people create fewer stories , both,
Just to be confirm that, we saw a 5% change/dig in how many user"See full answer
"Problem: Given a modified binary tree, where each node also has a pointer to it's parent, find the first common ancestor of two nodes.
Answer: As it happens, the structure that we're looking at is actually a linked list (one pointer up), so the problem is identical to trying to find if two linked lists share a common node.
How this works is by stacking the two chains of nodes together so they're the same length.
chain1 = node1
chain2= node2
while True:
chain1 = chain1.next
chain2=chain"
Michael B. - "Problem: Given a modified binary tree, where each node also has a pointer to it's parent, find the first common ancestor of two nodes.
Answer: As it happens, the structure that we're looking at is actually a linked list (one pointer up), so the problem is identical to trying to find if two linked lists share a common node.
How this works is by stacking the two chains of nodes together so they're the same length.
chain1 = node1
chain2= node2
while True:
chain1 = chain1.next
chain2=chain"See full answer
"Facebook's mission is to bring people closer. And sports is common language connecting people across the world.
The joy of enjoying watching sports is with friends who also support the same team, cheer for them and trade facts about them.
The product I would build is a live interactive sports app that a group of friends, though they are apart physically, can join into, chat and share happiness. The interactive sports app will stream live sports and allow users to create a community or group"
Rishi P. - "Facebook's mission is to bring people closer. And sports is common language connecting people across the world.
The joy of enjoying watching sports is with friends who also support the same team, cheer for them and trade facts about them.
The product I would build is a live interactive sports app that a group of friends, though they are apart physically, can join into, chat and share happiness. The interactive sports app will stream live sports and allow users to create a community or group"See full answer
"Clarifying questions:
What are we defining as "participation"? Does it include creating a live stream? Or is it just viewing a stream? Engaging (commenting/reacting) with other viewers during a live stream? ["Participation" = Watching, commenting, or reacting to a live stream as it's being broadcast, not during replays]
Are these live streams from major broadcasters expecting large audiences? Or individuals making use of live broadcasting from their phones? [Across the board]
"
Ian S. - "Clarifying questions:
What are we defining as "participation"? Does it include creating a live stream? Or is it just viewing a stream? Engaging (commenting/reacting) with other viewers during a live stream? ["Participation" = Watching, commenting, or reacting to a live stream as it's being broadcast, not during replays]
Are these live streams from major broadcasters expecting large audiences? Or individuals making use of live broadcasting from their phones? [Across the board]
"See full answer
"const ops = {
'+': (a, b) => a+b,
'-': (a, b) => a-b,
'/': (a, b) => a/b,
'': (a, b) => ab,
};
function calc(expr) {
// Search for + or -
for (let i=expr.length-1; i >= 0; i--) {
const char = expr.charAt(i);
if (['+', '-'].includes(char)) {
return opschar), calc(expr.slice(i+1)));
}
}
// Search for / or *
for (let i=expr.length-1; i >= 0; i--) {
const char = expr.charAt(i);
if"
Tiago R. - "const ops = {
'+': (a, b) => a+b,
'-': (a, b) => a-b,
'/': (a, b) => a/b,
'': (a, b) => ab,
};
function calc(expr) {
// Search for + or -
for (let i=expr.length-1; i >= 0; i--) {
const char = expr.charAt(i);
if (['+', '-'].includes(char)) {
return opschar), calc(expr.slice(i+1)));
}
}
// Search for / or *
for (let i=expr.length-1; i >= 0; i--) {
const char = expr.charAt(i);
if"See full answer