Skip to main content
Solved

Hosting a web-hook endpoint in a cognite function


Forum|alt.badge.img

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

Best answer by Ivar Stangeby

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

View original
Did this topic help you find an answer to your question?

2 replies

  • Practitioner
  • 20 replies
  • Answer
  • August 30, 2023

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


  • Seasoned Practitioner
  • 223 replies
  • September 11, 2023

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


Reply


Cookie Policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings