Back

Appwrite alternative to AWS Lambda + API Gateway

  • 0
  • Functions
  • Web
  • Realtime
D5
23 Sep, 2023, 06:17

Such 60 requests per second are just per user, so you can have thousands of executions

TL;DR
The user is looking for an alternative to AWS Lambda + API Gateway and is seeking information on Appwrite's Execute Access and how to properly curl a function by domain. They are encountering an execution error and are wondering if they can have custom domains for individual functions. There is a feature request for this functionality. The user also asks if using functions or FastAPI is the best way to create an API for users. The support team recommends using functions for most cases, but server-side code with an API key should be used in cases with excessive requests. The limit of 60 requests per second is per user.
D5
23 Sep, 2023, 06:25

In the vast majority of cases that should be enough, however in some applications like server side triggering (for example, a server triggers multiple times a function, exceeding 60 requests) in such case you should use server side code with an API key who will not be limited

Farg0
23 Sep, 2023, 07:43

what is the best way to create an Api for users? Functions or fastAPI?

VincentGe
23 Sep, 2023, 13:50

Now we do!

VincentGe
23 Sep, 2023, 13:50

Functions!

VincentGe
23 Sep, 2023, 13:50

Appwrite functions now support domains, making them RESTful

Matej
23 Sep, 2023, 14:14

Nice

Matej
23 Sep, 2023, 14:14

πŸ™Œ

Matej
23 Sep, 2023, 14:29

Is it in the cloud?

safwan
23 Sep, 2023, 14:29

Yep!

safwan
23 Sep, 2023, 14:30

RESTful functions were introduced in 1.4.

safwan
23 Sep, 2023, 14:30

Appwrite cloud is on 1.4.3, which means it's available πŸ˜„

Matej
23 Sep, 2023, 14:30

Ok so this is restful endpoint for cloud func here?

safwan
23 Sep, 2023, 14:30

Yep exactly

Matej
23 Sep, 2023, 14:30

Nice

Matej
23 Sep, 2023, 14:30

Was wondering what that is

Matej
23 Sep, 2023, 14:30

Wasn't really obvious at first πŸ˜„

Matej
23 Sep, 2023, 14:33

Need to write issue for feature on this. πŸ˜„

VincentGe
23 Sep, 2023, 15:36

Yeaahhhhh

VincentGe
23 Sep, 2023, 15:36

Yeah, you can even have custom domain for individual functions

williamCardoso
7 Oct, 2023, 14:46

How can I proper curl an function by domain? I am trying following this example:

curl -X POST https://64d4d22db370ae41a32e.appwrite.global
\ -H "X-Custom-Header: 123"
\ -H "Content-Type: application/json"
\ -d '{"data":"this is json data"}'

from here: https://appwrite.io/docs/products/functions/execution#permission

adding in the header: X-Appwrite-Key X-Appwrite-Project

but I am getting: Execution error: No permissions provided for action

williamCardoso
7 Oct, 2023, 14:49

the api key has all rigths on functions section

darShan
7 Oct, 2023, 16:06

what's the Execute Access?

VincentGe
11 Oct, 2023, 18:37
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