Is it possible to host a Panel app on AWS Lambda

Is it possible to host a Panel app on AWS Lambda, I’ve been trying a few examples…but so far no luck.

Ideally host the app via Lambda function and expose it through API Gateway

Regards
Chris

1 Like

Hi Crhis. Can you post links to the examples you have tried so far?

Can you tell us a bit more about the nature of your application and what your requirements are?

Did you have a look at the example in the Panel docs? AWS: Amazon Web Services — Panel v1.7.4

Although that does no use Lambda.

In principle, it should not be different from hosting any Python application on AWS / Lambda.

Unfortunately there’s no clean way to make this work. Panel relies on an active Websocket connection, so the transient nature of a lambda won’t work with this approach.