Design an in-memory data structure for delayed retries of failed events.
Unlock detailed company stats for this questionUpgrade
In backend systems, webhooks or payment callbacks often fail and need to be retried after specific delays (e.g. 5 seconds, then 15 seconds). Implement public void scheduleRetry(String eventId, long executeAtTimestamp) and public List<String> getEventsToExecuteNow(long currentTimestamp) efficiently.
Format · Walmart SDE3 DS+coding round.
Community answers
No answers contributed by the community yet.
Related questions
Design a data structure that supports insert, delete, search, and retrieve in constant time.Design an LRU Cache and explain the choice of data structures.Design a data structure for employee ratings with add, max query and delete by index.Related courses

Course

Course
Course
