Back

any open source Faas servers ?

  • 0
  • General
steve jobs
18 May, 2023, 04:03

can anyone suggest a self hostable Faas server which can be used to run dart functions and return output back to client ??

TL;DR
OP is looking for a self-hostable Faas server to run Dart functions and return output to the client. They are experiencing issues with the stability and freezing of the function container when calling the function in sync mode from multiple simultaneous clients. One suggestion is to try using Appwrite to run Dart functions, as it is capable of handling multiple requests. However, there may be a bottleneck issue. They have also tried using Dartfrog as a server, which worked well for concurrent requests. They are connecting their Appwrite function to their Appwrite instance and not using the database endpoint for data manipulation.
🍜Udon🍜
18 May, 2023, 04:09

You can run dart on appwrite

D5
18 May, 2023, 05:03

You can have dart functions with appwrite

D5
18 May, 2023, 05:04

So why do you want another separate server?

steve jobs
18 May, 2023, 09:54

if i call the function in sync mode from a few simultaneous clients., the function container becomes unstable and freezes and throws timeout error.

steve jobs
18 May, 2023, 09:55

cannot use it in production out of the box.. or is there any hacks to solve it?

Vedsaga
18 May, 2023, 11:36

umm, making is sync would surely put burden on server, I wonder why not try async?

Binyamin
18 May, 2023, 11:49

In what language is your function is written in?

Binyamin
18 May, 2023, 11:51

At is own Appwrite function are able to process no matter the number of requests you're sending to it. The only problem I've had so far is when Appwrite function call Appwrite itself again, in those use-cases Appwrite client freezes and you get that timeout.

I've tried many ways to mitigate it, bo so far no success. I have few ideas in which I'm gonna try later and let you know.

steve jobs
18 May, 2023, 11:52

but the server should handle or else there is no point right?? now i tried, dartfrog, kind of NodeJS of Dart.. and created a simple server which replies after 2 second and then used python to sent 1000 concurrent request at a single instant to the server. and calculated the response time. it took only 2.02 seconds for every response. and none of the 1000 request failed.. tried the same with appwrite function and both of it failed and i couldn't sent any fuinction call for the proceeding 1 minute.

Binyamin
18 May, 2023, 11:52

Yes, I know there is some bottle neck that make it all stuck.

steve jobs
18 May, 2023, 11:56

and as dart frog is natively dart, i could use the same cloud code i wrote for appwrite functions (but have to write lots of boiler plat for authentication). hope the appwrite functions will be more efficient and scalable soon.

steve jobs
18 May, 2023, 11:57

dart

Binyamin
18 May, 2023, 11:57

And is your Appwrite function is for general use or you're connecting to your Appwrite instance?

steve jobs
18 May, 2023, 11:57

using dart for backend is beneficial as lots of codes can be re used and shared in between..

Binyamin
18 May, 2023, 11:57

Agreed

steve jobs
18 May, 2023, 11:59

connecting to appwrite instance.. im not using database end point for data fetching or data manipulation as i dont want to embed the business logic in the app. only API end points should be visible at the client app/webapp side.

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