tommanzur/instagram-bot

Task 6.1.1: Define streaming protocol (e.g., WebSockets, SSE).

Opened this issue · 0 comments

Identify and select an appropriate streaming protocol that will be used to facilitate real-time text streaming from the backend to the frontend. This involves evaluating the needs of our clinical records project, considering factors such as latency, scalability, and compatibility with both the Flask backend and the frontend framework Matías is working on.

Subtasks:

Research Available Streaming Protocols: Investigate the most common streaming protocols such as WebSockets and Server-Sent Events (SSE). Understand their pros and cons in the context of real-time data transmission, particularly for text streaming scenarios.
Evaluate Project Requirements: Assess the specific requirements of our clinical records project, including expected load, real-time interaction needs, and infrastructure constraints. Consider the ease of integration with Flask for the backend and how it will interface with the frontend technology stack.
Prototype and Testing: Based on the initial research, prototype with the selected protocol(s) to test feasibility, performance, and reliability. This may involve setting up a simple Flask application that streams text data using the chosen protocol and a basic frontend to receive and display the streamed data.
Documentation: Document the decision-making process, including why the selected protocol is the best fit for our project's needs. Include any setup instructions, limitations, and recommendations for future development phases.