r/Firebase • • Oct 29 '26

Cloud Functions Anybody have any experience using Dart cloud functions?

I'm interested in trying out the experimental support for Dart cloud functions, but before I do I'm interested if anyone has tried it out, what the experience has been, pitfalls, etc. I have a Flutter app with a small user base, so it's a good candidate for trying it out, but I'm also hesitant that long-term support is lacking given its experimental status.

4 Upvotes

5 comments sorted by

3

u/mohit-deepspace Oct 29 '26

the docs list the main pitfalls: only onRequest and onCall can be deployed (firestore and other triggers only run in the emulator), onCall has to be called with httpsCallableFromURL and the cloud run url instead of httpsCallable, and deployed dart functions show up on the cloud run functions page rather than the firebase console

1

u/ImmediateCat975 21d ago

yeah the lack of database triggers outside the emulator is the real dealbreaker right now imo

0

u/Appropriate-Panic683 Oct 29 '26

that's the quantitative feedback. I've read the docs, but I guess I'm more interested in developer experience, performance, ease of use, etc. the kinds of things the docs don't tell you.

1

u/NeoDev08 Nov 02 '26

That follow-up makes sense — the docs tell you what is supported, but not how it feels day to day.

For a small Flutter app, the main draw is staying in one language and sharing types and validation between the app and the backend, which can cut down on back-and-forth when a data model is still changing. The trade-off is the experimental status: the trigger set is limited, so it is worth checking early whether the triggers you actually need are supported in production, not just in the emulator.

A low-risk way to try it is to start with one self-contained function — something like a small callable or HTTP endpoint that is not in the critical path — and keep the rest of the backend as it is. That way you can judge cold starts, debugging, and the deploy flow on a real workload, and if a limitation shows up you are swapping out one function, not reworking the app.

What kind of function were you thinking of starting with? That would probably determine how much of the rough edge you run into.

1

u/Myndi_Himburg 24d ago

Are you planning to use them for prod features later?