Setup pub/sub connection in Next.js
I have a t3-based next.js app, and a separate server for running various jobs. I can send jobs to this server with BullMQ and Redis, but how do I send data back to the next.js app? I need to set up some sort of listener or webhook. How are these things done in Next.js? I must admit, the "serverless" nature of next.js is a bit of a question mark here and I am wondering if I should drop it completely.
2 Replies
Do you want to receive realtime updates in your t3 app? You can use pusher.com or the opensource alternative soketi.app.
Thanks! That's a good idea