Webhook listener | Community
Skip to main content
Level 2
August 10, 2021
Question

Webhook listener

  • August 10, 2021
  • 1 reply
  • 2540 views

Hi,

 

Can we create custom webhook listener using runtime? If its can anyone direct to documentation or setup guidelines? Is there any limitations? 

Also, events will be triggered from non-adobe applications.

 

Thanks

Naveen

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

Adobe Employee
August 24, 2021

Hi @naveen_srinivas - if you want to make your Runtime action a webhook listener, the only requirement is to make it a web action which can be called via HTTP. See https://www.adobe.io/apis/experienceplatform/runtime/docs.html#!adobedocs/adobeio-runtime/master/guides/creating_actions.md#invoking-web-actions.

I assume you don't use I/O Events for these non-Adobe triggers. If they are through I/O Events, there could be better alternatives than webhook listeners, namely Journal API and Runtime action listener (without making it a web action), depending on your specific needs.

Level 2
August 24, 2021

Thanks for your reply,

 

I had built web-actions but am not able to see all invokes. Also non-adobe application is triggering 25calls/sec. 

 

Thanks

Naveen

Adobe Employee
August 26, 2021

Its can be constant. I had dropped a message to Kanika.

 

On storing part, apart from files is there any other alternative? Also, how long files will be stored, accessible and I need to write into a file in asynchronously way. Need more information on file management do we have more documentation on this sdk?

 

await files.write is not helping to writing in asynchronously after making couple of simultaneous calls I can see only few data are loaded.

 

Thanks

Naveen

 

 


We also support aio-lib-state for key-value store. However that is not a good place for JSON data.

If you are writing / reading data asynchronously, you should store them in separate files. I'm not sure how complex your data retrieval will be, but the OOTB Files / State SDK in Firefly are only for simple stuff (not querying, filtering). Instead you may want to bring your own storage solution (Azure Cosmos DB, AWS DynamoDB, etc.)

When you go to the Github repo of those SDKs, lots of docs are available in Readme. For an overview of state management in Firefly, this is a good one: https://www.adobe.io/project-firefly/docs/guides/application_state/.