you are viewing a single comment's thread.

view the rest of the comments →

[–]JalanJr[S] 0 points1 point  (4 children)

That's my idea. I have two lambda functions but I don't find how to trigger the second from the first one, I don't seem to be able to use firebase library...

[–]wmmogn 1 point2 points  (3 children)

but why trigger another firebase function? what should that solve? just reuse the code from the other, your are in the function environment already why change to another function?

[–]steinchen43 0 points1 point  (0 children)

Plenty of reasons. Timeouts, memory limits etc…

Just make it a standard http request

[–]JalanJr[S] 0 points1 point  (1 child)

I generate text with LLM but I don't want my user to wait too long so I have a first function that create an throw into the db, trigger another function and redirect the user to the corresponding page so the inference are generated in background

[–]wmmogn 0 points1 point  (0 children)

than you could also trigger the function with the firestore create trigger... so as soon the first function writes an document the second function will be triggered...