Buy me a coffee! https://buymeacoffee.com/lucasbarake
Repository: https://github.com/lucas-barake/react-interview-test-queues-and-streams/tree/main
Rough solution w/o Effect: https://gist.github.com/lucas-barake/262ef4cb01f7040f2cfd765829e7dbb9
00:00 Intro
00:52 App & Challenge Overview
02:12 Detailed Requirements
05:03 Project Structure
07:53 Scaffolding the Queue + Stream
14:56 Offering Elements to the Queue
16:52 Creating the useMarkMessagesAsRead Hook
22:17 Consuming the Hook
24:09 Testing the Batch Processing
25:31 Creating the sendBatch Computation w/ Exponential Retries & Concurrency
30:01 Handling the Focus State
32:46 Graceful Error Handling
33:24 Network Monitor: Queuing up Requests if Offline
40:52 Testing the Network Latch