# Integrating Prodigy with Custom Platform and adding raw data dynamically without restarting Server

**URL:** <https://support.prodi.gy/t/integrating-prodigy-with-custom-platform-and-adding-raw-data-dynamically-without-restarting-server/5388>\
**Category:** Uncategorized\
**Tags:** usage, streams\
**Created:** [February 25, 2022, 10:35pm UTC](https://support.prodi.gy/t/integrating-prodigy-with-custom-platform-and-adding-raw-data-dynamically-without-restarting-server/5388 "2022-02-25T22:35:56Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![ines](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/ines/32/3_2.png) [@ines](https://support.prodi.gy/u/ines)\
**Post date:** [March 1, 2022, 8:39pm UTC](https://support.prodi.gy/t/integrating-prodigy-with-custom-platform-and-adding-raw-data-dynamically-without-restarting-server/5388/2 "2022-03-01T20:39:42Z")

</div>

Hi! If you're annotating data for different tasks, you typically want to do this in different instances so you can keep state in memory, load a model if needed, save the different annotation types to separate datasets you can run training experiments with etc. We'd also recommend running longer annotation sessions at a time instead of annotating a single example at a time, which often isn't that useful.

So a better approach might be to include a feature to flag an example for annotation, and then periodically annotating the selected examples in batches.

> [@tanmayag78](#):
>
> I am not able to understand how to handle the stream of data. How to add text dynamically without restarting the server.

If you want to implement this, you could have a loader that periodically queries from an external source, like an API or your database containing the flagged examples for annotation. Here are some basic examples loading from a file path or a custom source: [Loaders and Input Data · Prodigy · An annotation tool for AI, Machine Learning & NLP](https://prodi.gy/docs/api-loaders#loaders-custom) – only that in your case, you'd make a request to your database or similar, and wrap in in `while True:` so it keeps looping until new data is available. New examples will then be queued up when you refresh the browser.

---

_[View the full topic](https://support.prodi.gy/t/integrating-prodigy-with-custom-platform-and-adding-raw-data-dynamically-without-restarting-server/5388)._
