Question

API Watcher in real time


Badge +2

Hello World,

 

I have access to an API where I can download features from a database.

We want to be warned each time there is a new feature in it. In live.

Is there some kind of API Watcher in FME Server I could do that?

Running a workbench each minute isn't the best option for us though.

 

Thanks!


2 replies

Badge +2

Hi @philippeb

 

 

I think this is something that you'd have to set up on the database and use triggers to get the database to notify FME Server every time there is a new feature. You can check how to do it by searching online for your '<databaseType> triggers to webhook'. You might need to use another tool to allow the database to send data to a webhook.

 

 

We have a few articles on database triggers but I don't think they have been updated in a while.

 

 

If you don't have access to the database like that, unfortunately a regular scheduled job may be your best approach.
Userlevel 4
Badge +26

Automatons has an HTTP call option - not sure if this can be of uses on a 1 min schedule.

 

 

otherwise you should check out node red: https://nodered.org/

 

 

You can probably use this to process the response and send a request to FME Server. Only problem is you need to install node. But it's free...

Reply