Solved

Hosting a web-hook endpoint in a cognite function

  • 25 August 2023
  • 2 replies
  • 46 views

Badge

Hi, is it possible to host a web-hook endpoint in a Cognite function?
And is it a good idea?

icon

Best answer by Ivar Stangeby 30 August 2023, 11:03

View original

2 replies

Hello Czach! 

When you say “host a web-hook endpoint”, do you mean spinning up an API endpoint in the Cognite Function, for instance using Flask or FastAPI? Can you help me understand your specific use case? 

You won’t be able to keep this server alive, as each Cognite Function invocation has a specific execution time limit. 

Regards, 
Ivar Stangeby

Userlevel 3

Hi @czach, would you be able to help out with some details? 

Reply