2022-08-25
I recently worked on an assignment where I had to periodically fetch data from different APIs and store it in a unified format in a database. To avoid duplication and only write one GenServer module for triggering the API calls and database operations, I used Behaviours, aka the Adapter Pattern. more