Back

Express serverless function

  • 0
  • Functions
banega
17 Sep, 2024, 11:42

Any suggestion how to create express server in appwrite function. I would like to avoid creating server on each function invocation but rather appwrite handles that for me like AWS use serverless-http library.

TL;DR
Developers created an Express-like logic for Appwrite functions with appexpress and appexpress-essentials. They are looking for suggestions on how to create an Express server in an Appwrite function without creating a server on each function invocation, similar to how AWS uses the serverless-http library.
darShan
17 Sep, 2024, 11:44

Containers stay active for 10/15s of minutes and you really don't have to manage anything around, the executor manages it for you.

I made something that mimics express like logic for appwrite functions, see -

  1. https://github.com/itznotabug/appexpress
  2. https://github.com/itznotabug/appexpress-essentials - has some middlewares and stuff
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more