QStash vs Custom Solution?

Hi all, In an app I'm building, I have a use case where Vercel is offloading some more complex processing to an AWS Lambda function via the JS SDK. Currently, the Vercel serverless function is waiting for the Lambda function to return as the return value contains needed data. With this solution, I have been running into issues regarding Vercel funciton timeouts (on the pro plan). In my research on how I could fix this, I came across QStash which looks like a very good product and I think it would solve my issues, but it also got me thinking whether I would need it at all.. Would it be feasible for the Vercel function to call the Lambda function then exit, then the Lambda function send its return value to an API endpoint on my app for the further processing required? I've never built functionality like this before so there may be more to it than I can currently see, but in my head this should work, are there any obvious problems going with my proposed "custom" solution?
3 Replies
MALEV0L3NT
MALEV0L3NT•12mo ago
Bumping this.. Any ideas if this would work?
Sturlen
Sturlen•12mo ago
qstash is probably the better option if you're not experienced with glueing together cloud services stuff like this also heavily depends on the specifics of how you use the service e.g. number of requests, size of requests, regions, etc.
MALEV0L3NT
MALEV0L3NT•12mo ago
Ok got it, thanks for the advice 🙂
Want results from more Discord servers?
Add your server
More Posts
Create-if-not-exists multiple explicit many-to-many relations(note: I'm new to using Prisma and unfamiliar with the syntax) I have `Playlist` and `Video` models,Trying to setup NextAuth with middleware.tsx file - login is happening but always returns to loginTrying to setup NextAuth with middleware.tsx file - login is happening and session is created in datthrowing error is server action is not working in productioni am trying to throw error from server action and catching it in client it is working on developmentHow do you get query params in Next13, app router w/ route.ts file?https://nextjs.org/docs/app/api-reference/file-conventions/route#parameters I am unsure of how you React table filter type error (.toLowerCase)ts```<CommandItem key={option.label} onSelect={() => { Prettier TailwindCSS not working with Next?I just did a fresh create next app and i followed the instructions on the tailwindcss docs but its nWhite flashbang for millisecond before page loadSo I'm noticing an issue where when swapping between pages on my site (/about, /home, etc.) it'll modoes activating SSR on tRPC mean requests no longer run on client?let's say I have I am calculating a date in a tRPC procedure, without SSR enabled in tRPC config it Adding Infinite Scroll to Theo's T3 Tutorial appHi All, I was able to replicate Theo's T3 Tutorial app and I am now adding new features to it. I havimpossible to force (property) as (method)?```ts { (method) open(a: boolean): string (property) close: (a: boolean) => string } ``` how to