# Updating the replica

{% hint style="success" %}
This is the official documentation of the `@forestadmin/agent` Node.js agent.
{% endhint %}

In the [minimal example](https://docs.forestadmin.com/developer-guide-agents-nodejs/data-sources/custom/replication/..#minimal-example), we've seen that data was loaded once, never to be updated again.

This is unlikely to be the case in a real-world scenario, as you may want your Forest Admin agent to display up-to-date data.

Three ways to achieve this are available, they can be used independently or in combination:

* [Refetch all records periodically](https://docs.forestadmin.com/developer-guide-agents-nodejs/data-sources/custom/replication/updates/scheduled-rebuild)
* [Change polling (using Forest Admin events)](https://docs.forestadmin.com/developer-guide-agents-nodejs/data-sources/custom/replication/updates/change-polling)
* [Change pushing (using target API events)](https://docs.forestadmin.com/developer-guide-agents-nodejs/data-sources/custom/replication/updates/push)
