Help Needed!! Low Level Design Question ----> Browserstack

Difficulty: EASYCategory: InterviewExperienceFrequency: 1Asked On 2021-08-08Added By Anonymous
Source: Link
Company: BrowserStack
Role: unknown
Interview Stage: unknown
Location: unknown
Year: unknown

Original Experience:

I was not able to solve upto the mark... Any help appreciated Implement functionality simillar to tail -f to fetch the latest logs from the given server and send it to all the clients Subtask 1 For the first part, we were not allowed to use tail command directly by creating a process from code. We will have to implement tail -f command programmatically, in such a way that whenever file is saved, only last changed data is getting displayed One more criteria, in almost all languages, default file readers start from line 0, which is also not helpful in our case. As the files might go to some TBs. Subtask 2 Once we have n lines ready, websockets can be used, to send the data to all the clients.
Comments