I’m facing an issue with the Realtime Stream Chunks Overloaded problem. I’m using the OpenAI chatcomplete API in my function and getting the response as streaming chunks. When I receive the chunks, I update a specific document on the DB and subscribe it in the client at every change. The issue I’m facing here is that updating the document for every chunk takes longer than getting all chunks without updating it. For example, if I get the chunks without updating the stream document for the real-time connection, it takes only 3 seconds. However, when I use Realtime, it takes about 13 seconds. Can I use another way to handle real-time without updating and writing the chunks in Appwrite, such as websockets or something else?
However, when I use Realtime, it takes about 13 seconds.
Can you clarify what exactly is the 13 seconds? Is that the time it takes to update the document and receive all the chunks (in the function)?
It's the time it takes to update the document only for all chunks. My problem is that I need to establish a real-time connection between the server and the client directly without writing to the database but the available channels on Appwrite are limited. Therefore, I chose to write to a specific document in the database and subscribe to it at the client.
This operation takes more time during function execution and needlessly burdens the server with additional operations. So is there a way to establish a real-time connection between the server and the client directly for every user?
??
no
Recommended threads
- Sub-minute server-side execution for rea...
Hey — I'm building a real-time auction app on Appwrite Cloud and running into a timing limitation I'd please love some clarity on. My use case: when a bidding ...
- Realtime: Listener not triggered on upda...
I self host appwrite 1.8.1. The genereal functionallity works fine. But my realtime subscription isn't updating. I see "Received heartbeat response from realtim...
- Realtime for files() works almost well, ...
I have been trying to make use of realtime, today (14.03.26) I have pulled all the latest versions of docker images, and sdk available. Whats working: - Conn...