montevideo-tech / hybrid-meetup-platform

Summer Camp WebRTC challenge. This project can be used to host and run hybrid meetups for the video community. Built by video-dev for video-devs 💚
Apache License 2.0
5 stars 2 forks source link

SPIKE: Investigate Chat Alternatives within Supabase #158

Open felipeYoungi opened 1 year ago

felipeYoungi commented 1 year ago

We need to investigate chat alternatives available within the Supabase ecosystem. This task involves researching and evaluating different solutions that can be integrated with our current Supabase backend. The goal is to identify a suitable chat soution that is compatible with our technology stack, meets our requirements, and can be implemented efficiently.

marcovidonis commented 1 year ago

I think this relates to #6. As I mentioned there, WebRTC can do chat through the data channel, and there are some projects that will give you that (both open source and vendors).

I think Supabase has a real-time database, which could also be used for chat, but might risk incurring in the limits of the free tier there.

Personally, I believe using a WebRTC provider for this would be the preferable option.

JonaQuaLabs commented 1 year ago

Real-time Chat with Supabase: One of the main benefits of using Supabase for real-time chat is its ability to deliver messages to all connected clients instantly. With Supabase's real-time functionality, chat messages can be transmitted between clients in milliseconds, providing a seamless and fast chat experience. Additionally, Supabase provides a scalable infrastructure that can handle a large number of concurrent connections, making it suitable for applications with high chat volumes.

Another advantage of using Supabase for real-time chat is its ease of use. Supabase provides a simple API that makes it easy to set up and manage real-time chat functionality without the need for complex coding. This simplicity is particularly useful for developers who want to implement chat functionality quickly and efficiently.

Supabase also provides end-to-end encryption for real-time chat messages, which ensures that messages are secure and private. This feature is essential for applications that handle sensitive data or require privacy.

While there are many advantages to using Supabase for real-time chat, there are also some limitations to be aware of when using the free-tier plan.

One of the main limitations of the free-tier plan is the limited number of real-time messages that can be sent per day. The free-tier plan allows for up to 2 Million real-time messages per month, which may not be sufficient for applications with high chat volumes.

Conclusion: In conclusion, implementing real-time chat functionality using Supabase offers several benefits, including fast message delivery, scalability, ease of use, and end-to-end encryption. These benefits make Supabase an excellent choice for developers who want to implement real-time chat in their applications, there are limitations to consider. These limitations include a limited number of messages per day, a lack of advanced features.