# Test Driving OTP - creating a registry with expiring entries

**URL:** <https://forum.devtalk.com/t/test-driving-otp-creating-a-registry-with-expiring-entries/7988>\
**Category:** Blogs/Articles/Talks/Podcasts\
**Tags:** test-driven, elixir, otp\
**Created:** [18 March 2021 12:15 UTC](https://forum.devtalk.com/t/test-driving-otp-creating-a-registry-with-expiring-entries/7988 "2021-03-18T12:15:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![paulanthonywilson](https://forum.devtalk.com/user_avatar/forum.devtalk.com/paulanthonywilson/32/2494_2.png) [@paulanthonywilson](https://forum.devtalk.com/u/paulanthonywilson)\
**Post date:** [18 March 2021 12:15 UTC](https://forum.devtalk.com/t/test-driving-otp-creating-a-registry-with-expiring-entries/7988/1 "2021-03-18T12:15:24Z")

</div>

> **[Test Driving OTP - creating a registry with expiring entries](https://furlough.merecomplexities.com/elixir/otp/tdd/2021/03/18/test-driving-otp-creating-a-registry-with-expiring-entries.html)**
>
> Previously I wrote about using multicasting to advertise a node’s existence, and receive notifications of the existence of other nodes. What if we wanted to keep a record of these other friendly nodes? I think that:

Following up on the previous post on using UDP multicasting to broadcast and detect peers on a network, I create a registry of those peers - expiring those that we have not heard from recently.

This posts leans quite heavily into iterating to a solution using Test Driven Development.
