InterviewDB
Question
Check Aliveness: Distributed Node Health Monitoring via Heartbeat Timestamps
Onsite
Question Details
Problem You are building a health monitor for a distributed system. Nodes send heartbeat pings to a central registry. Implement a class that tracks heartbeats and answers liveness queries: ping(node_id, timestamp) — record that node_id was alive at timestamp. is_alive(node_id, timestamp, timeout) — return True if the node sent a ping within [timestamp - timeout, timestamp]. get_dead_nodes(timestamp, timeout) — return all nodes that have NOT pinged within the timeout window. Follow-ups Nodes can…
Full Details
🔒
Unlock all Confluent questions
Full insider details, leaked discussions, and candidate experiences.
Get full access — $100 a year, unlimited accessAbout This Question
This is a reported interview question from a confluent interview during the onsite round.
It covers the following topics: System Design, Coding, Onsite .