Back

[SOLVED] 6MB limit in functions

  • 0
  • Functions
ZachHandley
30 Sep, 2023, 16:33

No, I will be

TL;DR
User is concerned about a 6MB limit in functions. They suggest adding a check for version mismatches between the server and hosting. The issue has been solved. User also mentions concerns about the limit and suggests using websockets or storing large files instead. Appwrite support suggests using storage for large inputs.
ZachHandley
30 Sep, 2023, 16:34

The thing is when I send the data it depends on what it is, but I wrote a sports writer e.g. https://dailymatchup.com which takes an XML that can be 150,000 characters

ZachHandley
30 Sep, 2023, 16:34

Sometimes shorter sometimes longer but that’s just one use case

ZachHandley
30 Sep, 2023, 16:34

I don’t think there should be a limit for my own functions, I’d like complete control if that’s the route we’re going down

ZachHandley
30 Sep, 2023, 16:35

Much like Cloudflares arbitrary 100s timeout, it’ll just become something annoying that I cancel out Appwrite for if I reach that use case

Drake
30 Sep, 2023, 16:47

That's 150KB.

ZachHandley
30 Sep, 2023, 16:52

Right but consider a situation where I need to upload large amounts of text that is beyond that, I just was trying to offer a situation but

ZachHandley
30 Sep, 2023, 16:53

Plus that’s before processing the file into arbitrary stats

ZachHandley
30 Sep, 2023, 16:53

Meh

ZachHandley
30 Sep, 2023, 16:54

Might not be worth it right now

Drake
30 Sep, 2023, 16:54

If you really need to have input that big, I suggest using storage.

This is the same with any other function that requires large input

ZachHandley
30 Sep, 2023, 16:54

I just worry about the future where I do reach that limit but it’s okay, like giving a function a file to upload or something but I can do that too

ZachHandley
30 Sep, 2023, 16:54

Yeah

ZachHandley
30 Sep, 2023, 16:54

I would agree overall, my apologies, I felt like this mattered but it doesn’t, I appreciate the hell out of you and all the time you’ve put into Appwrite Steven ❤️

ZachHandley
30 Sep, 2023, 16:54

[SOLVED] 6MB limit in functions

Drake
30 Sep, 2023, 16:56

Besides that limit...are you having any other troubles? I know dependencies was a problem before. Did you figure that out?

ZachHandley
30 Sep, 2023, 17:01

I did end up figuring that out, I also found the global vars, my only real concern is on Cloud I’ve had moments where it’s gone down, so I’m gonna be migrating to self hosted. Out of curiosity there’s one issue I think a lot of people are going to have and I’m curious if it’s possible to solve

ZachHandley
30 Sep, 2023, 17:02

Cloudflare has that 100s timeout

ZachHandley
30 Sep, 2023, 17:02

It would be cool to find a way around that with websockets per function or idk but I’ve had to disable the proxy a few times with AI applications due to that

ZachHandley
30 Sep, 2023, 17:03

Otherwise things are going great, super happy, I need to work more with the functions but I’m amped and excited

ZachHandley
30 Sep, 2023, 17:03

Loving all the new features I keep finding

Drake
30 Sep, 2023, 17:03

What was the solution?

ZachHandley
30 Sep, 2023, 17:04

The CLI was out of date and wasn’t even running NPM install, IMO you guys could add a check to the CLI for breaking version mismatches between the server and hosting

ZachHandley
30 Sep, 2023, 17:04

But right now you’re just updating and keeping that under maintenance which is probably enough work as is

ZachHandley
30 Sep, 2023, 17:06

Idk why it didn’t update either, I tried updating the CLI a few times

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